commit | e243e3f94c804ecca9a8241b5babe28f35258ef4 | [log] [tgz] |
---|---|---|
author | Christian Brauner <brauner@kernel.org> | Mon Oct 17 17:06:35 2022 +0200 |
committer | Christian Brauner (Microsoft) <brauner@kernel.org> | Tue Oct 18 10:09:46 2022 +0200 |
tree | fc09ac739fbc79f29e93facad741477ec38b84be | |
parent | 11c2a8700cdcabf9b639b7204a1e38e2a0b6798e [diff] |
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>