[LTP] tst_security.sh: Use enforce toggle to trigger SELinux measurement
linuxtestproject.agent@gmail.com
linuxtestproject.agent@gmail.com
Mon Jun 15 15:17:54 CEST 2026
Hi Avinesh,
On Mon, 15 Jun 2026 13:13:57 +0200, Avinesh Kumar wrote:
> tst_security.sh: Use enforce toggle to trigger SELinux measurement
Verdict - Reviewed
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".
---
Note:
The agent can sometimes produce false positives although often its
findings are genuine. If you find issues with the review, please
comment this email or ignore the suggestions.
Regards,
LTP AI Reviewer
More information about the ltp
mailing list