diff --git a/include/linux/fanotify.h b/include/linux/fanotify.h index bdbf9bb29b54535cd565bf162b57097c0de1a51a..c73224315aee6fc92a26268172a9d4fcab5a01a2 100644 --- a/include/linux/fanotify.h +++ b/include/linux/fanotify.h @@ -101,6 +101,8 @@ struct fanotify_response { /* Legit userspace responses to a _PERM event */ #define FAN_ALLOW 0x01 #define FAN_DENY 0x02 +/* No fd set in event */ +#define FAN_NOFD -1 /* Helper functions to deal with fanotify_event_metadata buffers */ #define FAN_EVENT_METADATA_LEN (sizeof(struct fanotify_event_metadata))