Skip to content

Commit 34e13f8

Browse files
committed
ima_violations.sh: Fix min kernel version for test4+
Although 79eb71f claims test[4-8] require kernel 6.14, it's actually for 6.15. 2 kernel commits were part of integrity-v6.15 and merged into mainline as a2d4f473df11. They will be part of 6.15-rc1. While at it, document these kernel commits. Fixes: 79eb71f ("ima_violations.sh: require kernel v6.14 for minimizing violations tests") Signed-off-by: Petr Vorel <pvorel@suse.cz>
1 parent 898cc14 commit 34e13f8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

testcases/kernel/security/integrity/ima/tests/ima_violations.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
# Author: Mimi Zohar <zohar@linux.ibm.com>
66
#
77
# Test whether ToMToU and open_writer violations invalidatethe PCR and are logged.
8+
# test[4-6] test 6.15 commit 5b3cd801155f ("ima: limit the number of open-writers integrity violations")
9+
# test[7-8] test 6.15 commit a414016218ca ("ima: limit the number of ToMToU integrity violations")
810

911
TST_SETUP="setup"
1012
TST_CLEANUP="cleanup"
@@ -176,8 +178,8 @@ test4()
176178
{
177179
tst_res TINFO "verify limiting single open writer violation"
178180

179-
if tst_kvcmp -lt 6.14; then
180-
tst_brk TCONF "Minimizing violations requires kernel 6.14 or newer"
181+
if tst_kvcmp -lt 6.15; then
182+
tst_brk TCONF "Minimizing violations requires kernel 6.15 or newer"
181183
fi
182184

183185
local search="open_writers"

0 commit comments

Comments
 (0)