[LTP] [PATCH v2] tst_security.sh: Use enforce toggle to trigger SELinux measurement
Andrea Cervesato
andrea.cervesato@suse.com
Tue Jun 16 10:34:00 CEST 2026
Hi Avinesh,
The patch looks good. For some reason we didn't receive the
agent review which spotted a bug in the test as well.
I think this is wroth to fix on a separate patch as well.
WDYT?
---
Pre-existing issue (not introduced by this patch):
tst_disable_selinux() at line 122 uses "cat 0 > $f", which tries
to read a file named "0" rather than writing the value 0 to the
enforce file. This should be "echo 0 > $f".
--
Andrea Cervesato
SUSE QE Automation Engineer Linux
andrea.cervesato@suse.com
More information about the ltp
mailing list