summaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorStefan Berger <stefanb@linux.ibm.com>2022-05-12 07:43:07 -0400
committerMimi Zohar <zohar@linux.ibm.com>2022-05-16 08:14:38 -0400
commite11afdbb22a39807e1f0cb707974ddd2c03e90a4 (patch)
tree22ae93e4df86111860dd029d6cb6060979fce0f6 /security
parent155ca952c7ca19aa32ecfb7373a32bbc2e1ec6eb (diff)
downloadlinux-stable-e11afdbb22a39807e1f0cb707974ddd2c03e90a4.tar.gz
linux-stable-e11afdbb22a39807e1f0cb707974ddd2c03e90a4.tar.bz2
linux-stable-e11afdbb22a39807e1f0cb707974ddd2c03e90a4.zip
evm: Return INTEGRITY_PASS for enum integrity_status value '0'
Return INTEGRITY_PASS for the enum integrity_status rather than 0. Signed-off-by: Stefan Berger <stefanb@linux.ibm.com> Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
Diffstat (limited to 'security')
-rw-r--r--security/integrity/evm/evm_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/integrity/evm/evm_main.c b/security/integrity/evm/evm_main.c
index 7d87772f0ce6..cc88f02c7562 100644
--- a/security/integrity/evm/evm_main.c
+++ b/security/integrity/evm/evm_main.c
@@ -436,7 +436,7 @@ static enum integrity_status evm_verify_current_integrity(struct dentry *dentry)
struct inode *inode = d_backing_inode(dentry);
if (!evm_key_loaded() || !S_ISREG(inode->i_mode) || evm_fixmode)
- return 0;
+ return INTEGRITY_PASS;
return evm_verify_hmac(dentry, NULL, NULL, 0, NULL);
}