summaryrefslogtreecommitdiff
path: root/fs/nfsd/auth.c
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2013-04-16 00:03:46 +0400
committerJ. Bruce Fields <bfields@redhat.com>2013-04-27 00:18:15 +0400
commitaa387d6ce15330e09037947147c5a5a2ba42a0e8 (patch)
treeab9ec0cbd2636e3089db7a10ec49756cce702820 /fs/nfsd/auth.c
parent030d794bf49855f5e2a9e8dfbfad34211d1eb08b (diff)
downloadlinux-aa387d6ce15330e09037947147c5a5a2ba42a0e8.tar.xz
nfsd: fix EXDEV checking in rename
We again check for the EXDEV a little later on, so the first check is redundant. This check is also slightly racier, since a badly timed eviction from the export cache could leave us with the two fh_export pointers pointing to two different cache entries which each refer to the same underlying export. It's better to compare vfsmounts as the later check does, but that leaves a minor security hole in the case where the two exports refer to two different directories especially if (for example) they have different root-squashing options. So, compare ex_path.dentry too. Reported-by: Joe Habermann <joe.habermann@gmail.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/auth.c')
0 files changed, 0 insertions, 0 deletions