diff options
author | Michael Halcrow <[email protected]> | 2008-01-08 15:33:02 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2008-01-08 16:10:36 -0800 |
commit | caeeeecfdaeada2998eb3c29c3ebd59afb79ef06 (patch) | |
tree | 22b7931ba119d10fb9c76bc54b500ce1d43d505c /net/unix/sysctl_net_unix.c | |
parent | c51b1a160b63304720d49479986915e4c475a2cf (diff) |
eCryptfs: fix dentry handling on create error, unlink, and inode destroy
This patch corrects some erroneous dentry handling in eCryptfs.
If there is a problem creating the lower file, then there is nothing that
the persistent lower file can do to really help us. This patch makes a
vfs_create() failure in the lower filesystem always lead to an
unconditional do_create failure in eCryptfs.
Under certain sequences of operations, the eCryptfs dentry can remain in
the dcache after an unlink. This patch calls d_drop() on the eCryptfs
dentry to correct this.
eCryptfs has no business calling d_delete() directly on a lower
filesystem's dentry. This patch removes the call to d_delete() on the
lower persistent file's dentry in ecryptfs_destroy_inode().
(Thanks to David Kleikamp, Eric Sandeen, and Jeff Moyer for helping
identify and resolve this issue)
Signed-off-by: Michael Halcrow <[email protected]>
Cc: Dave Kleikamp <[email protected]>
Cc: Eric Sandeen <[email protected]>
Cc: Jeff Moyer <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions