mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
LSM: Create lsm_list_modules system call
Create a system call to report the list of Linux Security Modules that are active on the system. The list is provided as an array of LSM ID numbers. The calling application can use this list determine what LSM specific actions it might take. That might include choosing an output format, determining required privilege or bypassing security module specific behavior. Signed-off-by: Casey Schaufler <casey@schaufler-ca.com> Reviewed-by: Kees Cook <keescook@chromium.org> Reviewed-by: Serge Hallyn <serge@hallyn.com> Reviewed-by: John Johansen <john.johansen@canonical.com> Reviewed-by: Mickaël Salaün <mic@digikod.net> Signed-off-by: Paul Moore <paul@paul-moore.com>
This commit is contained in:
committed by
Paul Moore
parent
a04a119808
commit
ad4aff9ec2
@@ -173,6 +173,7 @@ COND_SYSCALL(fadvise64_64);
|
||||
COND_SYSCALL_COMPAT(fadvise64_64);
|
||||
COND_SYSCALL(lsm_get_self_attr);
|
||||
COND_SYSCALL(lsm_set_self_attr);
|
||||
COND_SYSCALL(lsm_list_modules);
|
||||
|
||||
/* CONFIG_MMU only */
|
||||
COND_SYSCALL(swapon);
|
||||
|
||||
Reference in New Issue
Block a user