ima: fix up #endif comments
authorTycho Andersen <tycho@docker.com>
Fri, 5 May 2017 17:15:47 +0000 (11:15 -0600)
committerMimi Zohar <zohar@linux.vnet.ibm.com>
Wed, 21 Jun 2017 18:37:12 +0000 (14:37 -0400)
While reading the code, I noticed that these #endif comments don't match
how they're actually nested. This patch fixes that.

Signed-off-by: Tycho Andersen <tycho@docker.com>
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
security/integrity/ima/ima.h

index b563fbd4d122c24450f98dc7c6aaffd6235c451f..d26a30e37d13a1ac0c049dd27dc9586aba9c9315 100644 (file)
@@ -306,12 +306,12 @@ static inline int security_filter_rule_match(u32 secid, u32 field, u32 op,
 {
        return -EINVAL;
 }
-#endif /* CONFIG_IMA_TRUSTED_KEYRING */
+#endif /* CONFIG_IMA_LSM_RULES */
 
 #ifdef CONFIG_IMA_READ_POLICY
 #define        POLICY_FILE_FLAGS       (S_IWUSR | S_IRUSR)
 #else
 #define        POLICY_FILE_FLAGS       S_IWUSR
-#endif /* CONFIG_IMA_WRITE_POLICY */
+#endif /* CONFIG_IMA_READ_POLICY */
 
 #endif /* __LINUX_IMA_H */