Encrypted ext2 fs

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

 



Hi,

I'm new in linux file system and I'm trying to modify the ext2 fs to
encrypt/decrypt files on the fly without using cryptoloop.

I think I can intercept write/read file operations to encrypt/decrypt
inner/outer buffer.

Maybe another solution is to encrypt/decrypt page just before/after the
page is written to/read from the block device:
Sync_page:
{
	If (page will be written)
		Encrypt_page
		Send_blockdev_request
		Decrypt_page to get decrypted page in cache
	Else (page will be read)
		Send_blockdev_request
		Decrypt_page
}
In this case I'm wondering if I can just intercept the sync_page
operation to do such a work. As the request block operations are
buffered in a queue what could happen when a read and a write request
are performed in same time (I don't known if it could occur)? 
What do you thing about that ? Could you help me please ?

Thanks,

David



-
Linux-crypto:  cryptography in and on the Linux system
Archive:       http://mail.nl.linux.org/linux-crypto/



[Index of Archives]     [Kernel]     [Linux Crypto]     [Gnu Crypto]     [Gnu Classpath]     [Netfilter]     [Bugtraq]
  Powered by Linux