All of lore.kernel.org
 help / color / mirror / Atom feed
* Plugin for corruption resistance?
@ 2005-02-11 18:58 Gregory Maxwell
  2005-02-11 20:39 ` Jake Maciejewski
                   ` (4 more replies)
  0 siblings, 5 replies; 16+ messages in thread
From: Gregory Maxwell @ 2005-02-11 18:58 UTC (permalink / raw)
  To: reiserfs-list

Anyone ever given a though to adding support to reiserfs to store a
cryptographic checksum along with a file?


The idea is that files get a hidden attribute that contains their SHA1 hash.
If the file is modified, the hash is marked as 'unclean'. A trusted
cleaner comes by eventually and hashes the file, OR the file is hashed
right away if someone tried to read the attribute while the file is
unclean.

Fsck could be optionally told to go check the hash on every file.
Files could also be tested via a background process that randomly
tests some files every night.

Why would this be useful?

1. Lots of applications today (such a P2P sharing systems) need the
hashes of files.. it's inefficient to keep recomputing them.  The file
system always knows when a file changes, so it can be setup to always
return the correct hash.

2. Random disk corruption can go undetected (even if the drives ECC is
sufficient to prevent corruption there could be memory, bus, or kernel
issues the corrupt data, a hash will help it be detected).

3. Although there are encrypted block devices available in Linux, none
of them can provide authentication.. So it's possible for an attacker
(with access to your disk) to replace hunks of files with random (and
potentially chosen depending on the chaining mode) crud without
detection.

4. It could greatly speed up casual verification of files for changes
(if you don't trust the kernel to report the true hash, then you
couldn't trust it to return the real file to some userspace file
verifier either).... it could also be used to help locate duplicates
in a very efficient manner..

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

end of thread, other threads:[~2005-02-19  3:28 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-11 18:58 Plugin for corruption resistance? Gregory Maxwell
2005-02-11 20:39 ` Jake Maciejewski
2005-02-11 20:53 ` Tom Vier
2005-02-12  5:19   ` David Masover
2005-02-13  3:48 ` Esben Stien
2005-02-14  2:01 ` Reiser 4 Apple Michael James
2005-02-14 18:49   ` Hans Reiser
2005-02-14 17:45 ` Plugin for corruption resistance? Hans Reiser
2005-02-15 20:42   ` Adam
2005-02-17  4:10     ` David Masover
2005-02-17 10:53       ` Christian Iversen
2005-02-18  3:43         ` David Masover
2005-02-18  4:28           ` Valdis.Kletnieks
2005-02-18 13:36             ` Gregory Maxwell
2005-02-18 22:09               ` Valdis.Kletnieks
2005-02-19  3:28                 ` Gregory Maxwell

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.