diff options
author | Amir Goldstein <amir73il@gmail.com> | 2018-10-04 00:25:37 +0300 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2018-10-04 14:30:03 +0300 |
commit | bdd5a46fe30653cb4d26c7c787a22159bf79eed9 (patch) | |
tree | 4a6560e20f63bd8142925ccf5d9971e3f8374af0 /include/linux/fanotify.h | |
parent | a39f7ec41766118bf836d266224505741570ada6 (diff) | |
download | linux-bdd5a46fe30653cb4d26c7c787a22159bf79eed9.tar.xz |
fanotify: add BUILD_BUG_ON() to count the bits of fanotify constants
Also define the FANOTIFY_EVENT_FLAGS consisting of the extra flags
FAN_ONDIR and FAN_ON_CHILD.
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'include/linux/fanotify.h')
-rw-r--r-- | include/linux/fanotify.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/fanotify.h b/include/linux/fanotify.h index 4519b0988afe..caf55c67fc6c 100644 --- a/include/linux/fanotify.h +++ b/include/linux/fanotify.h @@ -41,11 +41,17 @@ /* Events that require a permission response from user */ #define FANOTIFY_PERM_EVENTS (FAN_OPEN_PERM | FAN_ACCESS_PERM) +/* Extra flags that may be reported with event or control handling of events */ +#define FANOTIFY_EVENT_FLAGS (FAN_EVENT_ON_CHILD | FAN_ONDIR) + /* Events that may be reported to user */ #define FANOTIFY_OUTGOING_EVENTS (FANOTIFY_EVENTS | \ FANOTIFY_PERM_EVENTS | \ FAN_Q_OVERFLOW) +#define ALL_FANOTIFY_EVENT_BITS (FANOTIFY_OUTGOING_EVENTS | \ + FANOTIFY_EVENT_FLAGS) + /* Do not use these old uapi constants internally */ #undef FAN_ALL_CLASS_BITS #undef FAN_ALL_INIT_FLAGS |