]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd: add support for the umask attribute
authorAndreas Gruenbacher <agruenba@redhat.com>
Tue, 12 Jan 2016 19:24:14 +0000 (20:24 +0100)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 16 Dec 2016 01:42:48 +0000 (20:42 -0500)
commit6e683c1514ee4e298694268191362fe2e34fdf46
treea908af6dc69beb0f1d2cc6745a10a6a9f9bc4225
parentf0da1e927a6b8e9b5c4467bfaa31c0da69743d1e
nfsd: add support for the umask attribute

Clients can set the umask attribute when creating files to cause the
server to apply it always except when inheriting permissions from the
parent directory.  That way, the new files will end up with the same
permissions as files created locally.

See https://tools.ietf.org/html/draft-ietf-nfsv4-umask-02 for more
details.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4proc.c
fs/nfsd/nfs4xdr.c
fs/nfsd/nfsd.h
fs/nfsd/nfssvc.c
include/linux/nfs4.h