mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 06:03:36 -04:00
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>
This commit is contained in:
parent
22aa425dec
commit
32c3263221
5 changed files with 9 additions and 2 deletions
|
|
@ -62,6 +62,7 @@ struct fanotify_event_metadata {
|
|||
__u32 vers;
|
||||
__s32 fd;
|
||||
__u64 mask;
|
||||
__s64 pid;
|
||||
} __attribute__ ((packed));
|
||||
|
||||
/* Helper functions to deal with fanotify_event_metadata buffers */
|
||||
|
|
|
|||
|
|
@ -221,6 +221,7 @@ struct fsnotify_event {
|
|||
u32 sync_cookie; /* used to corrolate events, namely inotify mv events */
|
||||
char *file_name;
|
||||
size_t name_len;
|
||||
struct pid *tgid;
|
||||
|
||||
struct list_head private_data_list; /* groups can store private data here */
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue