[PATCH] open_namei cleanup, nfsctl permission check fix
authorAlexander Viro <viro@math.psu.edu>
Tue, 9 Apr 2002 10:09:44 +0000 (03:09 -0700)
committerLinus Torvalds <torvalds@penguin.transmeta.com>
Tue, 9 Apr 2002 10:09:44 +0000 (03:09 -0700)
commit46a2da0c13b4b5aa9c2718180dea99814d128b9e
tree4134997a71a23159579cd286a8e2b76f4b2b9b13
parent4f9af68104c7d8fb854c7f576eb0e1478e2fa9a7
[PATCH] open_namei cleanup, nfsctl permission check fix

a) part of open_namei() done after we'd found vfsmount/dentry of
the object we want to open had been split into a helper - may_open().

b) do_open() in fs/nfsctl.c didn't do any permission checks on
the nfsd file it was opening - sudden idiocy attack on my part (I missed
the fact that dentry_open() doesn't do permission checks - open_namei()
does).  Fixed by adding obvious may_open() calls.
fs/namei.c
fs/nfsctl.c
include/linux/fs.h