]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
NFS: Be more careful about mapping file permissions
authorTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 11 Jul 2017 21:54:35 +0000 (17:54 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Fri, 21 Jul 2017 15:51:19 +0000 (11:51 -0400)
commitecbb903c56745d59c301db26dd7d8b74b520eb84
tree882b94947ed7bae985aa9535066452a74d01d404
parentbd8b2441742b49c76bec707757bd9c028ea9838e
NFS: Be more careful about mapping file permissions

When mapping a directory, we want the MAY_WRITE permissions to reflect
whether or not we have permission to modify, add and delete the directory
entries. MAY_EXEC must map to lookup permissions.

On the other hand, for files, we want MAY_WRITE to reflect a permission
to modify and extend the file.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/dir.c