projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d2201d
)
ima: differentiate between EVM failures in the audit log
author
Mimi Zohar
<zohar@linux.ibm.com>
Wed, 2 Jun 2021 20:33:39 +0000
(16:33 -0400)
committer
Mimi Zohar
<zohar@linux.ibm.com>
Thu, 10 Jun 2021 20:36:41 +0000
(16:36 -0400)
Differentiate between an invalid EVM portable signature failure
from other EVM HMAC/signature failures.
Reviewed-by: Roberto Sassu <roberto.sassu@huawei.com>
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
security/integrity/ima/ima_appraise.c
patch
|
blob
|
history
diff --git
a/security/integrity/ima/ima_appraise.c
b/security/integrity/ima/ima_appraise.c
index 940695e7b5356d5692784c78ac5b1fe8cd3b010b..ef9dcfce45d45c45ebddbba47f293ed5903fa28a 100644
(file)
--- a/
security/integrity/ima/ima_appraise.c
+++ b/
security/integrity/ima/ima_appraise.c
@@
-422,7
+422,8
@@
int ima_appraise_measurement(enum ima_hooks func,
goto out;
case INTEGRITY_FAIL_IMMUTABLE:
set_bit(IMA_DIGSIG, &iint->atomic_flags);
- fallthrough;
+ cause = "invalid-fail-immutable";
+ goto out;
case INTEGRITY_FAIL: /* Invalid HMAC/signature. */
cause = "invalid-HMAC";
goto out;