Skip to content

Commit

Permalink
Fix FAN_RESPONSE_MASK
Browse files Browse the repository at this point in the history
The mask as it is, was letting syslog notifications through. While the
bit it is using is undefined. One day it might be. So, correct the mask
to only provide the bits that the kernel understands.
  • Loading branch information
RH-steve-grubb committed Jul 20, 2020
1 parent 2b680ed commit 5833afe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/library/policy.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
#endif

#define SYSLOG 0x0020
#define FAN_RESPONSE_MASK 0x001F
#define FAN_RESPONSE_MASK FAN_ALLOW|FAN_DENY|FAN_AUDIT

typedef enum {
NO_OPINION = 0,
Expand Down

0 comments on commit 5833afe

Please sign in to comment.