diff options
author | Eric Paris <eparis@redhat.com> | 2009-12-17 21:24:34 -0500 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2010-07-28 09:59:02 -0400 |
commit | b2d879096ac799722e6017ee82c0586f0d101c9c (patch) | |
tree | 3628e99772d2bf51ce736a775a056bffaae44e8c /include | |
parent | 9e66e4233db9c7e31e9ee706be2c9ddd54cf99b3 (diff) |
fanotify: userspace interface for permission responses
fanotify groups need to respond to events which include permissions types.
To do so groups will send a response using write() on the fanotify_fd they
have open.
Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/fanotify.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/fanotify.h b/include/linux/fanotify.h index 02f80676c238..f0949a57ca9d 100644 --- a/include/linux/fanotify.h +++ b/include/linux/fanotify.h | |||
@@ -75,6 +75,11 @@ struct fanotify_event_metadata { | |||
75 | __s64 pid; | 75 | __s64 pid; |
76 | } __attribute__ ((packed)); | 76 | } __attribute__ ((packed)); |
77 | 77 | ||
78 | struct fanotify_response { | ||
79 | __s32 fd; | ||
80 | __u32 response; | ||
81 | } __attribute__ ((packed)); | ||
82 | |||
78 | /* Legit userspace responses to a _PERM event */ | 83 | /* Legit userspace responses to a _PERM event */ |
79 | #define FAN_ALLOW 0x01 | 84 | #define FAN_ALLOW 0x01 |
80 | #define FAN_DENY 0x02 | 85 | #define FAN_DENY 0x02 |