[LTP] [PATCH 3/7] Add lsm_get_self_attr02 test
Andrea Cervesato
andrea.cervesato@suse.com
Wed Jan 8 14:13:47 CET 2025
Hi Cyril,
On 1/8/25 13:58, Cyril Hrubis wrote:
> Shouldn't we just look at the /sys/kernel/security/lsm file and if it
> exists and it's not empty there is a lsm on the system and the syscall
> will not fail in that case?
Unfortunately not, selinux, apparmor and smack are the only ones which
are supported by LSM_ATTR_CURRENT.
https://docs.kernel.org/userspace-api/lsm.html
Andrea
More information about the ltp
mailing list