From 4dcdb8c8a481087e1f03e657e95baedb59b4f3f5 Mon Sep 17 00:00:00 2001 From: Steve Grubb Date: Sat, 18 Nov 2017 11:41:20 -0500 Subject: [PATCH] fix more define based issues --- src/policy.h | 1 + src/rules.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/policy.h b/src/policy.h index ddaf8949..cd09629e 100644 --- a/src/policy.h +++ b/src/policy.h @@ -37,6 +37,7 @@ #define FAN_ENABLE_AUDIT 0x00000040 #endif #else +#define AUDIT 0x0 #endif typedef enum { NO_OPINION = 0, ALLOW = FAN_ALLOW, DENY = FAN_DENY, diff --git a/src/rules.c b/src/rules.c index 44f44e43..5ec72b45 100644 --- a/src/rules.c +++ b/src/rules.c @@ -652,6 +652,7 @@ decision_t rule_evaluate(lnode *r, event_t *e) void rules_unsupport_audit(llist *l) { +#ifdef USE_AUDIT register lnode *current = l->head; int warn = 0; @@ -666,6 +667,7 @@ void rules_unsupport_audit(llist *l) "Rules with audit events are not supported by the kernel"); msg(LOG_NOTICE, "Converting rules to non-audit rules"); } +#endif } void rules_clear(llist *l)