Searched hist:"11 c2a8700cdcabf9b639b7204a1e38e2a0b6798e" (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/fs/ |
H A D | attr.c | diff 11c2a8700cdcabf9b639b7204a1e38e2a0b6798e Mon Oct 17 10:06:34 CDT 2022 Christian Brauner <brauner@kernel.org> attr: add in_group_or_capable()
In setattr_{copy,prepare}() we need to perform the same permission checks to determine whether we need to drop the setgid bit or not. Instead of open-coding it twice add a simple helper the encapsulates the logic. We will reuse this helpers to make dropping the setgid bit during write operations more consistent in a follow up patch.
Reviewed-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Christian Brauner (Microsoft) <brauner@kernel.org>
|
H A D | internal.h | diff 11c2a8700cdcabf9b639b7204a1e38e2a0b6798e Mon Oct 17 10:06:34 CDT 2022 Christian Brauner <brauner@kernel.org> attr: add in_group_or_capable()
In setattr_{copy,prepare}() we need to perform the same permission checks to determine whether we need to drop the setgid bit or not. Instead of open-coding it twice add a simple helper the encapsulates the logic. We will reuse this helpers to make dropping the setgid bit during write operations more consistent in a follow up patch.
Reviewed-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Christian Brauner (Microsoft) <brauner@kernel.org>
|
H A D | inode.c | diff 11c2a8700cdcabf9b639b7204a1e38e2a0b6798e Mon Oct 17 10:06:34 CDT 2022 Christian Brauner <brauner@kernel.org> attr: add in_group_or_capable()
In setattr_{copy,prepare}() we need to perform the same permission checks to determine whether we need to drop the setgid bit or not. Instead of open-coding it twice add a simple helper the encapsulates the logic. We will reuse this helpers to make dropping the setgid bit during write operations more consistent in a follow up patch.
Reviewed-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Christian Brauner (Microsoft) <brauner@kernel.org>
|