summaryrefslogtreecommitdiff
path: root/drivers/message
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2012-12-07 15:40:55 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-11 09:06:55 -0800
commit59d6ce4370c17dbd3db789740a036f158e8ba9a0 (patch)
tree24691f3b5974f964c13088c0c51acf522b8f6e18 /drivers/message
parent4cbb3d03810a50cb5d9eab0a6cfe3152a65911f2 (diff)
downloadlwn-59d6ce4370c17dbd3db789740a036f158e8ba9a0.tar.gz
lwn-59d6ce4370c17dbd3db789740a036f158e8ba9a0.zip
nfsd: avoid permission checks on EXCLUSIVE_CREATE replay
commit 7007c90fb9fef593b4aeaeee57e6a6754276c97c upstream. With NFSv4, if we create a file then open it we explicit avoid checking the permissions on the file during the open because the fact that we created it ensures we should be allow to open it (the create and the open should appear to be a single operation). However if the reply to an EXCLUSIVE create gets lots and the client resends the create, the current code will perform the permission check - because it doesn't realise that it did the open already.. This patch should fix this. Note that I haven't actually seen this cause a problem. I was just looking at the code trying to figure out a different EXCLUSIVE open related issue, and this looked wrong. (Fix confirmed with pynfs 4.0 test OPEN4--bfields) Signed-off-by: NeilBrown <neilb@suse.de> [bfields: use OWNER_OVERRIDE and update for 4.1] Signed-off-by: J. Bruce Fields <bfields@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/message')
0 files changed, 0 insertions, 0 deletions