[PATCH] knfsd: nfsd4: acls: fix handling of zero-length acls
authorJ.Bruce Fields <bfields@fieldses.org>
Wed, 4 Oct 2006 09:16:14 +0000 (02:16 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 4 Oct 2006 14:55:20 +0000 (07:55 -0700)
commitb66285cee3f9abad26cca6c9b848e1ad6b792d94
tree504c36192cd4c255b7082b7b68a526a5fe118527
parentf3b64eb6efb1ef46f6629b66a429e7f2b5955003
[PATCH] knfsd: nfsd4: acls: fix handling of zero-length acls

It is legal to have zero-length NFSv4 acls; they just deny everything.

Also, nfs4_acl_nfsv4_to_posix will always return with pacl and dpacl set on
success, so the caller doesn't need to check this.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/nfsd/nfs4acl.c
fs/nfsd/vfs.c