]> err.no Git - linux-2.6/commit
[PATCH] nfsd: check for read-only exports before setting acls
authorAndreas Gruenbacher <agruen@suse.de>
Tue, 20 Dec 2005 15:29:05 +0000 (16:29 +0100)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 20 Dec 2005 18:31:33 +0000 (10:31 -0800)
commitb7964c3d88668cef57e1a99861477168eeff4743
tree8672bb2693fccdb97eaad46c7d59ef3c2ff069bf
parent9e28393998d3d0733097306762f6d1c083fc92c6
[PATCH] nfsd: check for read-only exports before setting acls

We must check for MAY_SATTR before setting acls, which includes checking
for read-only exports: the lower-level setxattr operation that
eventually sets the acl cannot check export-level restrictions.

Bug reported by Martin Walter <mawa@uni-freiburg.de>.

Signed-off-by: Andreas Gruenbacher <agruen@suse.de>
Acked-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/nfsd/nfs2acl.c
fs/nfsd/nfs3acl.c