]> git.hungrycats.org Git - linux/commit
[PATCH] kNFSd: v4 exclusive open fix.
authorAndrew Morton <akpm@osdl.org>
Thu, 26 Feb 2004 14:46:20 +0000 (06:46 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 26 Feb 2004 14:46:20 +0000 (06:46 -0800)
commit06f78b9548158069eb1c075ca09cefce50b8286b
tree19df35f1a90793aed61ef285458c04e78f932588
parent1bba2ff86b2d15125e629b0007ea78081c7c0984
[PATCH] kNFSd: v4 exclusive open fix.

From: NeilBrown <neilb@cse.unsw.edu.au>

Exclusive creates were failing with permission errors, because they don't set
the mode on the newly created file, and the permission check in fh_verify
(called at the end of do_open_lookup) was failing.  So pass in the
MAY_OWNER_OVERRIDE flag to allow the owner of the file to override the
permission check.
fs/nfsd/nfs4proc.c