linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* when and where shall I encrypt dentry?
@ 2005-02-02 13:49 Vineet Joglekar
  2005-02-02 14:14 ` linux-os
  0 siblings, 1 reply; 2+ messages in thread
From: Vineet Joglekar @ 2005-02-02 13:49 UTC (permalink / raw)
  To: linux-kernel; +Cc: linux-c-programming


Hi all,



I am trying to add some cryptographic functionality to ext2 file system for my masters project. I am working with kernel 2.4.21



Along with regular files, I intend to encrypt directory contents too. For reading I guess the function ext2_get_page in fs/ext2/dir.c is used. Hence I can put my decryption routine in that function. Is that correct?



I was trying to look for the routine which writes the dentry on disk, but was unable to find it. I found out that the function d_instantiate is used to fill in inode information for a dentry, but unable to see when it is written on disk. I suppose that I have to encrypt the dentry just before writing on to the disk, as if i encrypt it before, other functions using it wont be able to access until they decrypt. So please help me with this, that when and where shall I encrypt the directory contents.



Thanks and regards,



Vineet

_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!

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

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

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-02 13:49 when and where shall I encrypt dentry? Vineet Joglekar
2005-02-02 14:14 ` linux-os

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).