]> Pileus Git - ~andy/linux/commitdiff
fanotify: Introduce FAN_NOFD
authorLino Sanfilippo <LinoSanfilippo@gmx.de>
Wed, 24 Nov 2010 17:22:09 +0000 (18:22 +0100)
committerEric Paris <eparis@redhat.com>
Tue, 7 Dec 2010 21:14:23 +0000 (16:14 -0500)
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>
include/linux/fanotify.h

index bdbf9bb29b54535cd565bf162b57097c0de1a51a..c73224315aee6fc92a26268172a9d4fcab5a01a2 100644 (file)
@@ -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))