summaryrefslogtreecommitdiff
path: root/security/capability.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2014-08-04 07:06:29 (GMT)
committerAl Viro <viro@zeniv.linux.org.uk>2014-08-07 18:40:10 (GMT)
commitb8faf035ea9d0011b04856a8198e2e212d93346a (patch)
treefe06d46ee4a2d659f05740e331a8c823d62d5e3a /security/capability.c
parent7c33d5972ce382bcc506d16235f1e9b7d22cbef8 (diff)
downloadlinux-b8faf035ea9d0011b04856a8198e2e212d93346a.tar.xz
VFS: allow ->d_manage() to declare -EISDIR in rcu_walk mode.
In REF-walk mode, ->d_manage can return -EISDIR to indicate that the dentry is not really a mount trap (or even a mount point) and that any mounts or any DCACHE_NEED_AUTOMOUNT flag should be ignored. RCU-walk mode doesn't currently support this, so if there is a dentry with DCACHE_NEED_AUTOMOUNT set but which shouldn't be a mount-trap, lookup_fast() will always drop in REF-walk mode. With this patch, an -EISDIR from ->d_manage will always cause mounts and automounts to be ignored, both in REF-walk and RCU-walk. Bug-fixed-by: Dan Carpenter <dan.carpenter@oracle.com> Cc: Ian Kent <raven@themaw.net> Signed-off-by: NeilBrown <neilb@suse.de> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'security/capability.c')
0 files changed, 0 insertions, 0 deletions