diff options
author | 2022-10-17 17:06:34 +0200 | |
---|---|---|
committer | 2022-10-18 10:09:43 +0200 | |
commit | 11c2a8700cdcabf9b639b7204a1e38e2a0b6798e (patch) | |
tree | f98a38095132d6d55b9f718ad07d3a3824998bdd /scripts/generate_rust_analyzer.py | |
parent | Linux 6.1-rc1 (diff) | |
download | linux-rng-11c2a8700cdcabf9b639b7204a1e38e2a0b6798e.tar.xz linux-rng-11c2a8700cdcabf9b639b7204a1e38e2a0b6798e.zip |
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>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions