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: NCasey Schaufler <casey@schaufler-ca.com> Reviewed-by: NSerge Hallyn <serge@hallyn.com> Signed-off-by: NMicah Morton <mortonm@chromium.org>
Showing
想要评论请 注册 或 登录