summaryrefslogtreecommitdiffstats
path: root/include/linux/fanotify.h
diff options
context:
space:
mode:
authorLino Sanfilippo <LinoSanfilippo@gmx.de>2010-11-24 18:22:09 +0100
committerEric Paris <eparis@redhat.com>2010-12-07 16:14:23 -0500
commite9a3854fd4ff3907e6c200a3980e19365ee695e9 (patch)
tree277f689ce362ad24bb1b5a9423567358a89c2cfd /include/linux/fanotify.h
parent26379198937fcc9bbe7be76be695d06df8334eaa (diff)
downloadop-kernel-dev-e9a3854fd4ff3907e6c200a3980e19365ee695e9.zip
op-kernel-dev-e9a3854fd4ff3907e6c200a3980e19365ee695e9.tar.gz
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>
Diffstat (limited to 'include/linux/fanotify.h')
-rw-r--r--include/linux/fanotify.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/fanotify.h b/include/linux/fanotify.h
index bdbf9bb..c732243 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))
OpenPOWER on IntegriCloud