aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2009-12-17 21:24:27 -0500
committerEric Paris <eparis@redhat.com>2010-07-28 09:58:56 -0400
commit32c3263221bd63316815286dccacdc7abfd7f3c4 (patch)
tree9dad12d5b966cf42d7506e10fb2e3c8d955415d3 /include
parent22aa425dec9e47051624714ae283eb2b6a473013 (diff)
fanotify: Add pids to events
Pass the process identifiers of the triggering processes to fanotify listeners: this information is useful for event filtering and logging. Signed-off-by: Andreas Gruenbacher <agruen@suse.de> Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/fanotify.h1
-rw-r--r--include/linux/fsnotify_backend.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/fanotify.h b/include/linux/fanotify.h
index c1c66162a46c..5f633af4d1b0 100644
--- a/include/linux/fanotify.h
+++ b/include/linux/fanotify.h
@@ -62,6 +62,7 @@ struct fanotify_event_metadata {
62 __u32 vers; 62 __u32 vers;
63 __s32 fd; 63 __s32 fd;
64 __u64 mask; 64 __u64 mask;
65 __s64 pid;
65} __attribute__ ((packed)); 66} __attribute__ ((packed));
66 67
67/* Helper functions to deal with fanotify_event_metadata buffers */ 68/* Helper functions to deal with fanotify_event_metadata buffers */
diff --git a/include/linux/fsnotify_backend.h b/include/linux/fsnotify_backend.h
index ff654c1932f2..7d93572ec568 100644
--- a/include/linux/fsnotify_backend.h
+++ b/include/linux/fsnotify_backend.h
@@ -221,6 +221,7 @@ struct fsnotify_event {
221 u32 sync_cookie; /* used to corrolate events, namely inotify mv events */ 221 u32 sync_cookie; /* used to corrolate events, namely inotify mv events */
222 char *file_name; 222 char *file_name;
223 size_t name_len; 223 size_t name_len;
224 struct pid *tgid;
224 225
225 struct list_head private_data_list; /* groups can store private data here */ 226 struct list_head private_data_list; /* groups can store private data here */
226}; 227};