aboutsummaryrefslogtreecommitdiffstats
path: root/security/smack
diff options
context:
space:
mode:
Diffstat (limited to 'security/smack')
-rw-r--r--security/smack/smack_lsm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/security/smack/smack_lsm.c b/security/smack/smack_lsm.c
index 6bfaba6177c2..0278bc083044 100644
--- a/security/smack/smack_lsm.c
+++ b/security/smack/smack_lsm.c
@@ -2691,7 +2691,7 @@ static int smack_audit_rule_init(u32 field, u32 op, char *rulestr, void **vrule)
2691 if (field != AUDIT_SUBJ_USER && field != AUDIT_OBJ_USER) 2691 if (field != AUDIT_SUBJ_USER && field != AUDIT_OBJ_USER)
2692 return -EINVAL; 2692 return -EINVAL;
2693 2693
2694 if (op != AUDIT_EQUAL && op != AUDIT_NOT_EQUAL) 2694 if (op != Audit_equal && op != Audit_not_equal)
2695 return -EINVAL; 2695 return -EINVAL;
2696 2696
2697 *rule = smk_import(rulestr, 0); 2697 *rule = smk_import(rulestr, 0);
@@ -2755,9 +2755,9 @@ static int smack_audit_rule_match(u32 secid, u32 field, u32 op, void *vrule,
2755 * both pointers will point to the same smack_known 2755 * both pointers will point to the same smack_known
2756 * label. 2756 * label.
2757 */ 2757 */
2758 if (op == AUDIT_EQUAL) 2758 if (op == Audit_equal)
2759 return (rule == smack); 2759 return (rule == smack);
2760 if (op == AUDIT_NOT_EQUAL) 2760 if (op == Audit_not_equal)
2761 return (rule != smack); 2761 return (rule != smack);
2762 2762
2763 return 0; 2763 return 0;