fs: move should_remove_suid()

Move the helper from inode.c to attr.c. This keeps the the core of the
set{g,u}id stripping logic in one place when we add follow-up changes.
It is the better place anyway, since should_remove_suid() returns
ATTR_KILL_S{G,U}ID flags.

Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Christian Brauner (Microsoft) <brauner@kernel.org>
This commit is contained in:
Christian Brauner 2022-10-17 17:06:35 +02:00 • committed by Christian Brauner (Microsoft)
commit e243e3f94c
No known key found for this signature in database
GPG key ID: 91C61BC06578DCA2
2 changed files with 29 additions and 29 deletions