aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/fanotify.h
diff options
context:
space:
mode:
authorEric Paris <eparis@redhat.com>2009-12-17 21:24:33 -0500
committerEric Paris <eparis@redhat.com>2010-07-28 09:59:00 -0400
commitb9e4e3bd0495fea9e8f8e712889c9cd8ffa43c94 (patch)
tree914a16f5098cf0ee3e01e6d47e6c7c9bf3613899 /include/linux/fanotify.h
parent32a4df13b88afef2a7d869bb7586a7beba90961f (diff)
fanotify: allow users to set an ignored_mask
Change the sys_fanotify_mark() system call so users can set ignored_masks on inodes. Remember, if a user new sets a real mask, and only sets ignored masks, the ignore will never be pinned in memory. Thus ignored_masks can be lost under memory pressure and the user may again get events they previously thought were ignored. Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'include/linux/fanotify.h')
-rw-r--r--include/linux/fanotify.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/fanotify.h b/include/linux/fanotify.h
index 90e59b24fd04..b8daa9f9b560 100644
--- a/include/linux/fanotify.h
+++ b/include/linux/fanotify.h
@@ -30,12 +30,14 @@
30#define FAN_MARK_DONT_FOLLOW 0x00000004 30#define FAN_MARK_DONT_FOLLOW 0x00000004
31#define FAN_MARK_ONLYDIR 0x00000008 31#define FAN_MARK_ONLYDIR 0x00000008
32#define FAN_MARK_MOUNT 0x00000010 32#define FAN_MARK_MOUNT 0x00000010
33#define FAN_MARK_IGNORED_MASK 0x00000020
33 34
34#define FAN_ALL_MARK_FLAGS (FAN_MARK_ADD |\ 35#define FAN_ALL_MARK_FLAGS (FAN_MARK_ADD |\
35 FAN_MARK_REMOVE |\ 36 FAN_MARK_REMOVE |\
36 FAN_MARK_DONT_FOLLOW |\ 37 FAN_MARK_DONT_FOLLOW |\
37 FAN_MARK_ONLYDIR |\ 38 FAN_MARK_ONLYDIR |\
38 FAN_MARK_MOUNT) 39 FAN_MARK_MOUNT |\
40 FAN_MARK_IGNORED_MASK)
39 41
40/* 42/*
41 * All of the events - we build the list by hand so that we can add flags in 43 * All of the events - we build the list by hand so that we can add flags in