[PATCH] NFS: Fix handling of the umask when an NFSv3 default acl is present.
Andreas Gruenbacher authored

 NFSv3 has no concept of a umask on the server side: The client applies
 the umask locally, and sends the effective permissions to the server.
 This behavior is wrong when files are created in a directory that has a
 default ACL.  In this case, the umask is supposed to be ignored, and
 only the default ACL determines the file's effective permissions.

 Usually its the server's task to conditionally apply the umask.  But
 since the server knows nothing about the umask, we have to do it on the
 client side.  This patch tries to fetch the parent directory's default
 ACL before creating a new file, computes the appropriate create mode to
 send to the server, and finally sets the new file's access and default
 acl appropriately.

 Many thanks to Buck Huppmann <buchk@pobox.com> for sending the initial
 version of this patch, as well as for arguing why we need this change.
Signed-off-by: default avatarAndreas Gruenbacher <agruen@suse.de>
Acked-by: default avatarOlaf Kirch <okir@suse.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
055ffbea
Name Last commit Last update
..
Makefile [PATCH] NFS: Add support for NFSv3 ACLs
callback.c [PATCH] NFS: Header file cleanup...
callback.h Linux-2.6.12-rc2
callback_proc.c [PATCH] NFS: Header file cleanup...
callback_xdr.c [PATCH] NFS: Header file cleanup...
delegation.c [PATCH] NFS: Header file cleanup...
delegation.h Linux-2.6.12-rc2
dir.c [PATCH] NFS: Add support for NFSv3 ACLs
direct.c Linux-2.6.12-rc2
file.c [PATCH] NFS: Add support for NFSv3 ACLs
idmap.c [PATCH] NFS: Header file cleanup...
inode.c [PATCH] NFS: Fix handling of the umask when an NFSv3 default acl is present.
mount_clnt.c [PATCH] RPC: Make rpc_create_client() destroy the transport on failure.
nfs2xdr.c Linux-2.6.12-rc2
nfs3acl.c [PATCH] NFS: Fix handling of the umask when an NFSv3 default acl is present.
nfs3proc.c [PATCH] NFS: Fix handling of the umask when an NFSv3 default acl is present.
nfs3xdr.c [PATCH] NFS: Add support for NFSv3 ACLs
nfs4_fs.h [PATCH] NFSv4: Add {get,set,list}xattr methods for nfs4
nfs4proc.c [PATCH] NFSv4: client-side caching NFSv4 ACLs
nfs4renewd.c [PATCH] NFS: Header file cleanup...
nfs4state.c [PATCH] RPC: [PATCH] improve rpcauthauth_create error returns
nfs4xdr.c [PATCH] NFSv4: Client-side xdr for writing NFSv4 acls
nfsroot.c [PATCH] NFS: Add support for NFSv3 ACLs
pagelist.c [PATCH] NFS: cleanup: shrink struct nfs_open_context
proc.c [PATCH] NFS: Allow NFS versions to support different sets of inode operations.
read.c
symlink.c
unlink.c
write.c