diff options
author | Andreas Gruenbacher <agruenba@redhat.com> | 2016-01-12 20:24:14 +0100 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2016-12-15 20:42:48 -0500 |
commit | 47057abde515155a4fee53038e7772d6b387e0aa (patch) | |
tree | a908af6dc69beb0f1d2cc6745a10a6a9f9bc4225 /fs/nfsd/nfssvc.c | |
parent | 3eb15f2828464791f68b341ce87183012c509fc6 (diff) | |
download | linux-47057abde515155a4fee53038e7772d6b387e0aa.tar.bz2 |
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>
Diffstat (limited to 'fs/nfsd/nfssvc.c')
-rw-r--r-- | fs/nfsd/nfssvc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfsd/nfssvc.c b/fs/nfsd/nfssvc.c index a2b65fc56dd6..e6bfd96734c0 100644 --- a/fs/nfsd/nfssvc.c +++ b/fs/nfsd/nfssvc.c @@ -661,8 +661,8 @@ nfsd(void *vrqstp) mutex_lock(&nfsd_mutex); /* At this point, the thread shares current->fs - * with the init process. We need to create files with a - * umask of 0 instead of init's umask. */ + * with the init process. We need to create files with the + * umask as defined by the client instead of init's umask. */ if (unshare_fs_struct() < 0) { printk("Unable to start nfsd thread: out of memory\n"); goto out; |