[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <87hcxkpyas.fsf@willow.rfc1149.net>
Date: 31 Oct 2006 11:36:11 +0100
From: Samuel Tardieu <sam@...1149.net>
To: linux-ext4@...r.kernel.org
Subject: Shred mount option for ext4?
Sorry if this has been discussed already, I couldn't find anything in
the list archive about it. What about adding the possibility of
shredding or erasing free blocks on an ext4 filesystem?
I value my privacy and the privacy of the people I host, and I often
use shred(1) when erasing files from my server. The goal is to avoid
that either a hacker or a post-mortem analysis gets ancien data from
my disk. There are three problems with this approach:
- I may forget to use shred sometimes
- some files are automatically created and then removed (mails in
spool)
- data may be replicated in the journal and thus still present on
disk
I could use an encrypted filesystem everywhere, but in many countries,
one is required to reveal her encryption key to authorities if they
have a court order (UK for example).
I think it would be quite easy to add a mount time option to ext4
filesystems asking that freed blocks are cleared or erased with random
data? We could have for example:
- free=clear|zero|shred (default "clear", do nothing, "zero" means
writing zeroes over the block, useful against attackers trying to
recover data from a file system without physical access to it, and
"shred" useful against post-mortem analysis of the physical
surface)
- shred-passes=N (number of passes when using the "free=shred"
option, a negative number meaning writing values from 0 to -N onto
the block)
Some people (me included) would most likely accept the time penalty of
using this option on selected filesystems (as well as the reduced
lifetime of the disks because of the extra writes).
I would contribute a proof-of-concept code, but I'm going to leave for
a one-month vacation and will have a very bad connection until
December. However, if noone jumps on that, I will likely code that
when I go back unless someone beats me on it. In the meantime, I'd
like to get people thoughts about it.
Sam
--
Samuel Tardieu -- sam@...1149.net -- http://www.rfc1149.net/
-
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists