Skip to content

Commit 3089191

Browse files
committed
ima_setup.sh: Add digest index detection for ima-buf format
"ima-buf" will be used in following commit "IMA: Read required policy from file". Link: https://lore.kernel.org/ltp/20250114112915.610297-8-pvorel@suse.cz/ Reviewed-by: Mimi Zohar <zohar@linux.ibm.com> Signed-off-by: Petr Vorel <pvorel@suse.cz>
1 parent 5c0ca7b commit 3089191

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ set_digest_index()
209209
# parse digest index
210210
# https://www.kernel.org/doc/html/latest/security/IMA-templates.html#use
211211
case "$template" in
212-
ima|ima-ng|ima-sig) DIGEST_INDEX=4 ;;
212+
ima|ima-buf|ima-ng|ima-sig) DIGEST_INDEX=4 ;;
213213
*)
214214
# using ima_template_fmt kernel parameter
215215
local IFS="|"

0 commit comments

Comments
 (0)