Commit ba17059
committed
ima_violations.sh: Fix log detection
Fix TBROK on systems which does not have /var/log/messages
(any modern distro is using systemd) not auditd installed:
ima_violations 1 TBROK: log /var/log/messages does not exist (bug in detection?)
Instead TCONF with more meaningful message:
ima_violations 1 TCONF: log file not found, install auditd
Link: https://lore.kernel.org/ltp/20250114112915.610297-2-pvorel@suse.cz/
Fixes: #372
Reviewed-by: Mimi Zohar <zohar@linux.ibm.com>
Signed-off-by: Petr Vorel <pvorel@suse.cz>1 parent 9a88e8e commit ba17059
File tree
1 file changed
+4
-2
lines changed- testcases/kernel/security/integrity/ima/tests
1 file changed
+4
-2
lines changedLines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| |||
0 commit comments