All of lore.kernel.org
 help / color / mirror / Atom feed
* Where is ext2/3 secure delete ("s") attribute?
@ 2002-11-21 17:52 Kent Borg
  2002-11-21 18:24 ` Jeff Garzik
  2002-11-21 19:14 ` Jeff Garzik
  0 siblings, 2 replies; 21+ messages in thread
From: Kent Borg @ 2002-11-21 17:52 UTC (permalink / raw)
  To: linux-kernel

I happened upon the chattr command and was pleased to see that "s"
means to write zeros (or is it random data?) to the blocks of deleted
files.  Cool, except I can't see that it works.

First, deleting a large file with the "s" attribute happens far too
quickly.

Second, I can't see where any of this is implemented in the source
code (as of Red Hat's 2.4.18-17.7.x and straight 2.4.19).  The file
fs/ext2/CHANGES talks about how the zero writing was changed to
writing random data--but nothing seems to implement this.

What happened to this feature?  Was it too slow or buggy?  Did the
Federales force its removal?

(Would this be best implemented as a background scrub and I am missing
a daemon?)


Thanks,

-kb, the Kent who would like to have his notebook not be full of
easily undeletable files.

^ permalink raw reply	[flat|nested] 21+ messages in thread
* Where is ext2/3 secure delete ("s") attribute?
@ 2002-11-21 18:20 Marc-Christian Petersen
  2002-11-21 22:43 ` Harald Arnesen
  0 siblings, 1 reply; 21+ messages in thread
From: Marc-Christian Petersen @ 2002-11-21 18:20 UTC (permalink / raw)
  To: linux-kernel; +Cc: Kent Borg

Hi Kent,

> What happened to this feature?  Was it too slow or buggy?  Did the
> Federales force its removal?
dunno, but:

man 1 chattr:

BUGS AND LIMITATIONS
       As  of  Linux  2.2,  the  `c',  's',  and `u' attribute are not honored
       by the kernel filesystem code. These attributes will be implemented in
       a future ext2 fs version.

Curious to see when the future is ;)

ciao, Marc

^ permalink raw reply	[flat|nested] 21+ messages in thread
* Re: Where is ext2/3 secure delete ("s") attribute?
@ 2002-11-22  1:22 Albert D. Cahalan
  2002-11-22  1:30 ` Jeff Garzik
                   ` (3 more replies)
  0 siblings, 4 replies; 21+ messages in thread
From: Albert D. Cahalan @ 2002-11-22  1:22 UTC (permalink / raw)
  To: linux-kernel; +Cc: kentborg, alan, jgarzik


Alan Cox writes:
> On Thu, 2002-11-21 at 19:05, Kent Borg wrote:

>> Another example of why this needs to be done in the file system.  (And
>> that help is sometimes needed from the "disk" particularly in cases
>> like flash IDE rives.)
>
> The file system can't do it
> The flash device won't give you the info to do it
> The ide disk wont give you the info to do it

That's being an idealist. You can protect against everybody
except the NSA and the disk manufacturer. Most likely they'd
need to spend lots of money in a clean room to get your data.

Forget the shred program. It's less useful than having the
filesystem simply zero the blocks, because it's slow and you
can't be sure to hit the OS-visible blocks. Aside from encryption,
the useful options are:

1. plain old rm  (protect from users)
2. filesystem clears the blocks  (protect from root/kernel)
3. physically destroy the disk  (protect from NSA & manufacturer)

^ permalink raw reply	[flat|nested] 21+ messages in thread
* Re: Where is ext2/3 secure delete ("s") attribute?
@ 2002-11-24  6:40 Albert D. Cahalan
  0 siblings, 0 replies; 21+ messages in thread
From: Albert D. Cahalan @ 2002-11-24  6:40 UTC (permalink / raw)
  To: khc; +Cc: linux-kernel


Krzysztof Halasa writes:
> "Albert D. Cahalan" <acahalan@cs.uml.edu> writes:

>> Forget the shred program. It's less useful than having the
>> filesystem simply zero the blocks, because it's slow and you
>> can't be sure to hit the OS-visible blocks. Aside from encryption,
>> the useful options are:
>>
>> 1. plain old rm  (protect from users)
>> 2. filesystem clears the blocks  (protect from root/kernel)
>
> It won't protect you from the root.

Sure it will. Like this:

1. you're a user, possibly root, on your own machine
2. you zero the disk blocks of a file
3. somebody cracks root
4. they look for the file -- not there
5. they read /dev/hda to find the data -- not there
6. they modify the kernel -- nope, data still not there

As long as nobody physically opens the drive, it would take some
seriously bad luck involving bad sectors to make your data at all
vulnerable... to somebody with drive manufacturer trade secrets.
If this worries you, destroy the drive and/or make an appointment
with your mental health professional.

Nothing counts if root is already malicious, so that issue
wasn't being addressed. You'd have keyboard snooping,
encryption tools that save a copy, man-in-the middle attacks
on everything... forget it. It's not worth discussing.

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2002-11-24  6:33 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-21 17:52 Where is ext2/3 secure delete ("s") attribute? Kent Borg
2002-11-21 18:24 ` Jeff Garzik
2002-11-21 18:39   ` Kent Borg
2002-11-21 19:20     ` Alan Cox
2002-11-21 19:05       ` Kent Borg
2002-11-21 20:28         ` Alan Cox
2002-11-21 19:14 ` Jeff Garzik
  -- strict thread matches above, loose matches on Subject: below --
2002-11-21 18:20 Marc-Christian Petersen
2002-11-21 22:43 ` Harald Arnesen
2002-11-22  1:22 Albert D. Cahalan
2002-11-22  1:30 ` Jeff Garzik
2002-11-22  2:41   ` Albert D. Cahalan
2002-11-22  4:39     ` Jeff Garzik
2002-11-22  5:55       ` Albert D. Cahalan
2002-11-22  7:12   ` Ingo Oeser
2002-11-22 13:38   ` Alan Cox
2002-11-22 13:27     ` Nikita Danilov
2002-11-22  2:06 ` Mike Dresser
2002-11-22 14:13 ` Jesse Pollard
2002-11-22 21:31 ` Krzysztof Halasa
2002-11-24  6:40 Albert D. Cahalan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.