]> Git Repo - linux.git/commitdiff
evm: Return INTEGRITY_PASS for enum integrity_status value '0'
authorStefan Berger <[email protected]>
Thu, 12 May 2022 11:43:07 +0000 (07:43 -0400)
committerMimi Zohar <[email protected]>
Mon, 16 May 2022 12:14:38 +0000 (08:14 -0400)
Return INTEGRITY_PASS for the enum integrity_status rather than 0.

Signed-off-by: Stefan Berger <[email protected]>
Signed-off-by: Mimi Zohar <[email protected]>
security/integrity/evm/evm_main.c

index 7d87772f0ce681971db412ad606a0e84ab1d7a51..cc88f02c7562159c258e0de27dc5f4868144d8a1 100644 (file)
@@ -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);
 }
 
This page took 0.056242 seconds and 4 git commands to generate.