[LTP] [PATCH v4 1/2] core: add tst_selinux_enabled() utility
Andrea Cervesato
andrea.cervesato@suse.com
Wed Jul 23 13:17:04 CEST 2025
On 7/22/25 3:48 PM, Stephen Smalley wrote:
> I guess my only question here is whether the tests all require SELinux
> to be enforcing or if some of them are just exercising SELinux
> functionality that would also pass when permissive. And whether you
> care about testing that case.
Hi Stephen,
this particular reproducer doesn't need more than knowing a LSM is up
and running, so we can trigger the bug on listxattr.
In our case, we chosen SELinux because it's popular and this approach is
more practical than checking every single LSM implementation in the
system, verifying if it's enabled or not, no matter SELinux is
configured in permissive or enforcing mode.
- Andrea
More information about the ltp
mailing list