diff options
author | Micah Morton <mortonm@chromium.org> | 2022-06-08 23:57:11 +0300 |
---|---|---|
committer | Micah Morton <mortonm@chromium.org> | 2022-07-15 21:21:49 +0300 |
commit | fcfe0ac2fcfae7d5fcad3d0375cb8ff38caf8aba (patch) | |
tree | 5cb709520c62f77b5a276d77d069a0238b2443ae /security/safesetid | |
parent | a1732d6898ced0523cb4073c7f02d236edf312b1 (diff) | |
download | linux-fcfe0ac2fcfae7d5fcad3d0375cb8ff38caf8aba.tar.xz |
security: Add LSM hook to setgroups() syscall
Give the LSM framework the ability to filter setgroups() syscalls. There
are already analagous hooks for the set*uid() and set*gid() syscalls.
The SafeSetID LSM will use this new hook to ensure setgroups() calls are
allowed by the installed security policy. Tested by putting print
statement in security_task_fix_setgroups() hook and confirming that it
gets hit when userspace does a setgroups() syscall.
Acked-by: Casey Schaufler <casey@schaufler-ca.com>
Reviewed-by: Serge Hallyn <serge@hallyn.com>
Signed-off-by: Micah Morton <mortonm@chromium.org>
Diffstat (limited to 'security/safesetid')
0 files changed, 0 insertions, 0 deletions