aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/fsnotify_backend.h
diff options
context:
space:
mode:
authorEric Paris <eparis@redhat.com>2009-12-17 20:12:04 -0500
committerEric Paris <eparis@redhat.com>2010-07-28 09:58:16 -0400
commite9fd702a58c49dbb14481dca88dad44758da393a (patch)
treec944771328e35ea36cf4e0e332b8402113878b3c /include/linux/fsnotify_backend.h
parentae7b8f4108bcffb42173f867ce845268c7202d48 (diff)
audit: convert audit watches to use fsnotify instead of inotify
Audit currently uses inotify to pin inodes in core and to detect when watched inodes are deleted or unmounted. This patch uses fsnotify instead of inotify. Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'include/linux/fsnotify_backend.h')
-rw-r--r--include/linux/fsnotify_backend.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/fsnotify_backend.h b/include/linux/fsnotify_backend.h
index 4d6f47b51189..8f8341e9f021 100644
--- a/include/linux/fsnotify_backend.h
+++ b/include/linux/fsnotify_backend.h
@@ -58,9 +58,12 @@
58 FS_MOVED_FROM | FS_MOVED_TO | FS_CREATE |\ 58 FS_MOVED_FROM | FS_MOVED_TO | FS_CREATE |\
59 FS_DELETE) 59 FS_DELETE)
60 60
61#define FS_MOVE (FS_MOVED_FROM | FS_MOVED_TO)
62
61/* listeners that hard code group numbers near the top */ 63/* listeners that hard code group numbers near the top */
62#define DNOTIFY_GROUP_NUM UINT_MAX 64#define DNOTIFY_GROUP_NUM UINT_MAX
63#define INOTIFY_GROUP_NUM (DNOTIFY_GROUP_NUM-1) 65#define AUDIT_WATCH_GROUP_NUM (DNOTIFY_GROUP_NUM-1)
66#define INOTIFY_GROUP_NUM (AUDIT_WATCH_GROUP_NUM-1)
64 67
65struct fsnotify_group; 68struct fsnotify_group;
66struct fsnotify_event; 69struct fsnotify_event;