Skip to content

Commit e11afdb

Browse files
stefanbergermimizohar
authored andcommitted
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>
1 parent 155ca95 commit e11afdb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

security/integrity/evm/evm_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ static enum integrity_status evm_verify_current_integrity(struct dentry *dentry)
436436
struct inode *inode = d_backing_inode(dentry);
437437

438438
if (!evm_key_loaded() || !S_ISREG(inode->i_mode) || evm_fixmode)
439-
return 0;
439+
return INTEGRITY_PASS;
440440
return evm_verify_hmac(dentry, NULL, NULL, 0, NULL);
441441
}
442442

0 commit comments

Comments
 (0)