Skip to content

Commit 4afb28a

Browse files
bmenegmimizohar
authored andcommitted
ima: add check for enforced appraise option
The "enforce" string is allowed as an option for ima_appraise= kernel paramenter per kernel-paramenters.txt and should be considered on the parameter setup checking as a matter of completeness. Also it allows futher checking on the options being passed by the user. Signed-off-by: Bruno Meneguele <bmeneg@redhat.com> Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
1 parent e44f128 commit 4afb28a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

security/integrity/ima/ima_appraise.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ static int __init default_appraise_setup(char *str)
3131
ima_appraise = IMA_APPRAISE_LOG;
3232
else if (strncmp(str, "fix", 3) == 0)
3333
ima_appraise = IMA_APPRAISE_FIX;
34+
else if (strncmp(str, "enforce", 7) == 0)
35+
ima_appraise = IMA_APPRAISE_ENFORCE;
3436
#endif
3537
return 1;
3638
}

0 commit comments

Comments
 (0)