diff options
author | Mimi Zohar <zohar@linux.vnet.ibm.com> | 2013-02-24 23:42:36 -0500 |
---|---|---|
committer | James Morris <james.l.morris@oracle.com> | 2013-02-25 10:46:38 -0500 |
commit | a2c2c3a71c25627e4840795b3c269918d0e71b28 (patch) | |
tree | f643772b0087e7bf5a9801ed07580ee8d5ce93c9 | |
parent | ab7826595e9ec51a51f622c5fc91e2f59440481a (diff) |
ima: "remove enforce checking duplication" merge fix
Commit "750943a ima: remove enforce checking duplication" combined
the 'in IMA policy' and 'enforcing file integrity' checks. For
the non-file, kernel module verification, a specific check for
'enforcing file integrity' was not added. This patch adds the
check.
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
Signed-off-by: James Morris <james.l.morris@oracle.com>
-rw-r--r-- | security/integrity/ima/ima_main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/security/integrity/ima/ima_main.c b/security/integrity/ima/ima_main.c index 5127afcc4b89..5b14a0946d6e 100644 --- a/security/integrity/ima/ima_main.c +++ b/security/integrity/ima/ima_main.c | |||
@@ -284,7 +284,8 @@ int ima_module_check(struct file *file) | |||
284 | { | 284 | { |
285 | if (!file) { | 285 | if (!file) { |
286 | #ifndef CONFIG_MODULE_SIG_FORCE | 286 | #ifndef CONFIG_MODULE_SIG_FORCE |
287 | if (ima_appraise & IMA_APPRAISE_MODULES) | 287 | if ((ima_appraise & IMA_APPRAISE_MODULES) && |
288 | (ima_appraise & IMA_APPRAISE_ENFORCE)) | ||
288 | return -EACCES; /* INTEGRITY_UNKNOWN */ | 289 | return -EACCES; /* INTEGRITY_UNKNOWN */ |
289 | #endif | 290 | #endif |
290 | return 0; /* We rely on module signature checking */ | 291 | return 0; /* We rely on module signature checking */ |