diff options
Diffstat (limited to 'include/linux/fanotify.h')
| -rw-r--r-- | include/linux/fanotify.h | 9 | 
1 files changed, 8 insertions, 1 deletions
| diff --git a/include/linux/fanotify.h b/include/linux/fanotify.h index eec3b7c40811..616af2ea20f3 100644 --- a/include/linux/fanotify.h +++ b/include/linux/fanotify.h @@ -84,13 +84,20 @@ extern struct ctl_table fanotify_table[]; /* for sysctl */   */  #define FANOTIFY_DIRENT_EVENTS	(FAN_MOVE | FAN_CREATE | FAN_DELETE) +/* Events that can be reported with event->fd */ +#define FANOTIFY_FD_EVENTS (FANOTIFY_PATH_EVENTS | FANOTIFY_PERM_EVENTS) +  /* Events that can only be reported with data type FSNOTIFY_EVENT_INODE */  #define FANOTIFY_INODE_EVENTS	(FANOTIFY_DIRENT_EVENTS | \  				 FAN_ATTRIB | FAN_MOVE_SELF | FAN_DELETE_SELF) +/* Events that can only be reported with data type FSNOTIFY_EVENT_ERROR */ +#define FANOTIFY_ERROR_EVENTS	(FAN_FS_ERROR) +  /* Events that user can request to be notified on */  #define FANOTIFY_EVENTS		(FANOTIFY_PATH_EVENTS | \ -				 FANOTIFY_INODE_EVENTS) +				 FANOTIFY_INODE_EVENTS | \ +				 FANOTIFY_ERROR_EVENTS)  /* Events that require a permission response from user */  #define FANOTIFY_PERM_EVENTS	(FAN_OPEN_PERM | FAN_ACCESS_PERM | \ |