diff options
author | Bruno Meneguele <bmeneg@redhat.com> | 2020-09-04 16:40:57 -0300 |
---|---|---|
committer | Mimi Zohar <zohar@linux.ibm.com> | 2020-09-08 22:02:57 -0400 |
commit | 4afb28ab03d5d811b369af4472f3941557928569 (patch) | |
tree | f6f6163755a2855658d12dbe53c2f0e5e97d85bf /security/integrity/ima/ima_appraise.c | |
parent | e44f128768bf28c17a5c0a35b5942bd04a8a64b0 (diff) |
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>
Diffstat (limited to 'security/integrity/ima/ima_appraise.c')
-rw-r--r-- | security/integrity/ima/ima_appraise.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/security/integrity/ima/ima_appraise.c b/security/integrity/ima/ima_appraise.c index 372d16382960..580b771e3458 100644 --- a/security/integrity/ima/ima_appraise.c +++ b/security/integrity/ima/ima_appraise.c @@ -31,6 +31,8 @@ static int __init default_appraise_setup(char *str) ima_appraise = IMA_APPRAISE_LOG; else if (strncmp(str, "fix", 3) == 0) ima_appraise = IMA_APPRAISE_FIX; + else if (strncmp(str, "enforce", 7) == 0) + ima_appraise = IMA_APPRAISE_ENFORCE; #endif return 1; } |