Skip to contentSkip to conversation

evm: Return INTEGRITY_PASS for enum integrity_status value '0'

PATCH New Stefan Berger 1 participant 1 message May 12, 2022

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 evm: Return INTEGRITY_PASS for enum integrity_status value '0'

Return INTEGRITY_PASS for the enum integrity_status rather than 0.

---
 security/integrity/evm/evm_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
security/integrity/evm/evm_main.c +1 -1
index 7d87772f0ce6..cc88f02c7562 100644
@@ -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);
 }
 
Signature · 1 line
2.35.1