android_kernel_xiaomi_sm8350/fs/ecryptfs
Michael Halcrow 391b52f98c eCryptfs: Make all persistent file opens delayed
There is no good reason to immediately open the lower file, and that can
cause problems with files that the user does not intend to immediately
open, such as device nodes.

This patch removes the persistent file open from the interpose step and
pushes that to the locations where eCryptfs really does need the lower
persistent file, such as just before reading or writing the metadata
stored in the lower file header.

Two functions are jumping to out_dput when they should just be jumping to
out on error paths.  This patch also fixes these.

Signed-off-by: Michael Halcrow <mhalcrow@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-07-24 10:47:31 -07:00
..
crypto.c ecryptfs: crypto.c use unaligned byteorder helpers 2008-07-24 10:47:31 -07:00
debug.c
dentry.c
ecryptfs_kernel.h eCryptfs: Make all persistent file opens delayed 2008-07-24 10:47:31 -07:00
file.c eCryptfs: Make all persistent file opens delayed 2008-07-24 10:47:31 -07:00
inode.c eCryptfs: Make all persistent file opens delayed 2008-07-24 10:47:31 -07:00
keystore.c ecryptfs: propagate key errors up at mount time 2008-07-24 10:47:31 -07:00
kthread.c eCryptfs: Privileged kthread for lower file opens 2008-07-24 10:47:30 -07:00
main.c eCryptfs: Make all persistent file opens delayed 2008-07-24 10:47:31 -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: discard ecryptfsd registration messages in miscdev 2008-07-24 10:47:31 -07:00
mmap.c ecryptfs: inode.c mmap.c use unaligned byteorder helpers 2008-07-24 10:47:31 -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