Skip to content

Commit

Permalink
fix more define based issues
Browse files Browse the repository at this point in the history
  • Loading branch information
RH-steve-grubb committed Nov 18, 2017
1 parent 3b52217 commit 4dcdb8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/policy.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 2 additions & 0 deletions src/rules.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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)
Expand Down

0 comments on commit 4dcdb8c

Please sign in to comment.