linux/fs/ecryptfs
Michael Halcrow 746f1e558b eCryptfs: Privileged kthread for lower file opens
eCryptfs would really like to have read-write access to all files in the
lower filesystem.  Right now, the persistent lower file may be opened
read-only if the attempt to open it read-write fails.  One way to keep
from having to do that is to have a privileged kthread that can open the
lower persistent file on behalf of the user opening the eCryptfs file;
this patch implements this functionality.

This patch will properly allow a less-privileged user to open the eCryptfs
file, followed by a more-privileged user opening the eCryptfs file, with
the first user only being able to read and the second user being able to
both read and write.  eCryptfs currently does this wrong; it will wind up
calling vfs_write() on a file that was opened read-only.  This is fixed in
this patch.

Signed-off-by: Michael Halcrow <mhalcrow@us.ibm.com>
Cc: Dave Kleikamp <shaggy@austin.ibm.com>
Cc: Serge Hallyn <serue@us.ibm.com>
Cc: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-07-24 10:47:30 -07:00
..
crypto.c ecryptfs: fix missed mutex_unlock 2008-05-24 09:56:07 -07:00
debug.c eCryptfs: update comment and debug statement 2007-10-16 09:43:11 -07:00
dentry.c eCryptfs: Swap dput() and mntput() 2008-03-19 18:53:36 -07:00
ecryptfs_kernel.h eCryptfs: Privileged kthread for lower file opens 2008-07-24 10:47:30 -07:00
file.c eCryptfs: Privileged kthread for lower file opens 2008-07-24 10:47:30 -07:00
inode.c ecryptfs: clean up (un)lock_parent 2008-05-13 08:02:23 -07:00
keystore.c eCryptfs: integrate eCryptfs device handle into the module. 2008-04-29 08:06:07 -07:00
kthread.c eCryptfs: Privileged kthread for lower file opens 2008-07-24 10:47:30 -07:00
main.c eCryptfs: Privileged kthread for lower file opens 2008-07-24 10:47:30 -07:00
Makefile eCryptfs: Privileged kthread for lower file opens 2008-07-24 10:47:30 -07:00
messaging.c eCryptfs: make key module subsystem respect namespaces 2008-04-29 08:06:07 -07:00
miscdev.c ecryptfs: remove unnecessary mux from ecryptfs_init_ecryptfs_miscdev() 2008-07-04 10:40:05 -07:00
mmap.c ecryptfs: replace remaining __FUNCTION__ occurrences 2008-04-29 08:06:06 -07:00
netlink.c eCryptfs: make key module subsystem respect namespaces 2008-04-29 08:06:07 -07:00
read_write.c eCryptfs: remove unnecessary page decrypt call 2008-06-06 11:29:09 -07:00
super.c ecryptfs: remove debug as mount option, and warn if set via modprobe 2008-02-06 10:41:12 -08:00