DragonFly users List (threaded) for 2008-07
DragonFly BSD
DragonFly users List (threaded) for 2008-07
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: HAMMER encryption

From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Tue, 22 Jul 2008 09:46:34 -0700 (PDT)

:Are there any plans to add encryption to HAMMER?
:Matt, could you provide a quick overview (for potential  HAMMER encryption
:developers) of where, when and how you believe the encryption layer
:can/should be added to HAMMER?
:G. Mirov

    Well, general whole-disk encryption would best be done in a block
    device driver.

    Per-file encryption could be done for file data and file names,
    but I wouldn't recommend it for the inode data structure (file size,
    modes, ownership, etc).  File data is pretty straight forward,
    everything runs through the buffer cache so hammer_vop_read() and
    hammer_vop_write() would be the place.  A bio_done call-back would
    have to be used to decrypt direct-read data.  Encrypting file names
    could be done in the various hammer_vop_*() procedures that deal with
    file names (remove, rename, create, resolve, etc), and readdir would
    have to deal with decrypting names.

    There is one issue with decryption and that is the buffer cache buffer
    might map bogus pages for areas the kernel does not want to overwrite.
    Since bogus pages are just one shared page for the entire system
    they might contain garbage after a read.

					Matthew Dillon 

[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]