[PATCH] nfsd4: fix open-create permissions
authorJ. Bruce Fields <bfields@fieldses.org>
Thu, 9 Nov 2006 01:44:40 +0000 (17:44 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 9 Nov 2006 02:29:23 +0000 (18:29 -0800)
commit81ac95c5569d7a60ab5db6c1ccec56c12b3ebcb5
treec28ac039697a462527e2aedc4f0c7575d76fbbb1
parentaf85852de0b32d92b14295aa6f5ba3a9ad044cf6
[PATCH] nfsd4: fix open-create permissions

In the case where an open creates the file, we shouldn't be rechecking
permissions to open the file; the open succeeds regardless of what the new
file's mode bits say.

This patch fixes the problem, but only by introducing yet another parameter
to nfsd_create_v3.  This is ugly.  This will be fixed by later patches.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Acked-by: Neil Brown <neilb@suse.de>
Cc: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/nfsd/nfs3proc.c
fs/nfsd/nfs4proc.c
fs/nfsd/vfs.c
include/linux/nfsd/nfsd.h