Skip to content
Unverified Commit 4f704d9a authored by Christian Brauner's avatar Christian Brauner
Browse files

nfs: use vfs setgid helper



We've aligned setgid behavior over multiple kernel releases. The details
can be found in the following two merge messages:
cf619f89 ("Merge tag 'fs.ovl.setgid.v6.2')
426b4ca2 ("Merge tag 'fs.setgid.v6.0')
Consistent setgid stripping behavior is now encapsulated in the
setattr_should_drop_sgid() helper which is used by all filesystems that
strip setgid bits outside of vfs proper. Switch nfs to rely on this
helper as well. Without this patch the setgid stripping tests in
xfstests will fail.

Signed-off-by: default avatarChristian Brauner (Microsoft) <brauner@kernel.org>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Message-Id: <20230313-fs-nfs-setgid-v2-1-9a59f436cfc0@kernel.org>
Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
parent d98ffa1a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment