mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
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>
This commit is contained in:
committed by
Mimi Zohar
parent
155ca952c7
commit
e11afdbb22
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user