]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4.2: Don't send mode again in post-EXCLUSIVE4_1 SETATTR with umask
authorBenjamin Coddington <bcodding@redhat.com>
Fri, 2 Jun 2017 15:21:34 +0000 (11:21 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 5 Jun 2017 16:23:15 +0000 (12:23 -0400)
commit9b38f05c292399e0a8c31fca123fa66dc5a7ecb1
tree46df650388e7118f33780997d6d03b1599ae6b42
parent49c17db395f90900cd2ed628cca4eaf1e62979b9
NFSv4.2: Don't send mode again in post-EXCLUSIVE4_1 SETATTR with umask

Now that we have umask support, we shouldn't re-send the mode in a SETATTR
following an exclusive CREATE, or we risk having the same problem fixed in
commit acfdb376289f ("NFS: Send attributes in OPEN request for
NFS4_CREATE_EXCLUSIVE4_1"), which is that files with S_ISGID will have that
bit stripped away.

Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
Fixes: 83ba82b8da32 ("nfs: add support for the umask attribute")
Cc: stable@vger.kernel.org # v4.10+
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/nfs4proc.c