mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-23 15:11:16 +00:00
fanotify: Introduce FAN_NOFD
FAN_NOFD is used in fanotify events that do not provide an open file descriptor (like the overflow_event). Signed-off-by: Lino Sanfilippo <LinoSanfilippo@gmx.de> Signed-off-by: Eric Paris <eparis@redhat.com>
This commit is contained in:
parent
2637919893
commit
e9a3854fd4
1 changed files with 2 additions and 0 deletions
|
@ -101,6 +101,8 @@ struct fanotify_response {
|
||||||
/* Legit userspace responses to a _PERM event */
|
/* Legit userspace responses to a _PERM event */
|
||||||
#define FAN_ALLOW 0x01
|
#define FAN_ALLOW 0x01
|
||||||
#define FAN_DENY 0x02
|
#define FAN_DENY 0x02
|
||||||
|
/* No fd set in event */
|
||||||
|
#define FAN_NOFD -1
|
||||||
|
|
||||||
/* Helper functions to deal with fanotify_event_metadata buffers */
|
/* Helper functions to deal with fanotify_event_metadata buffers */
|
||||||
#define FAN_EVENT_METADATA_LEN (sizeof(struct fanotify_event_metadata))
|
#define FAN_EVENT_METADATA_LEN (sizeof(struct fanotify_event_metadata))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue