OSDN Git Service

NFS: nfs_setattr_update_inode() should clear the suid/sgid bits
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 13 Apr 2021 00:08:00 +0000 (20:08 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 13 Apr 2021 00:11:44 +0000 (20:11 -0400)
commit1f9f4328155a6944903e2364f38bb6ed1e1ea9e9
tree56e597c4a4b92d18c60a37991bbf95371bae2f9f
parent63cdd7edfd2871e63f4ca001ff6b8e1e166a74ae
NFS: nfs_setattr_update_inode() should clear the suid/sgid bits

When we do a 'chown' or 'chgrp', the server will clear the suid/sgid
bits. Ensure that we mirror that in nfs_setattr_update_inode().

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/inode.c