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 /fs/notify/fanotify/fanotify.c | |
parent | 9e66e4233db9c7e31e9ee706be2c9ddd54cf99b3 (diff) | |
download | linux-b2d879096ac799722e6017ee82c0586f0d101c9c.tar.gz linux-b2d879096ac799722e6017ee82c0586f0d101c9c.tar.bz2 linux-b2d879096ac799722e6017ee82c0586f0d101c9c.zip |
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 'fs/notify/fanotify/fanotify.c')
-rw-r--r-- | fs/notify/fanotify/fanotify.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/notify/fanotify/fanotify.c b/fs/notify/fanotify/fanotify.c index 52d0a55a249e..bbcfccd4a8ea 100644 --- a/fs/notify/fanotify/fanotify.c +++ b/fs/notify/fanotify/fanotify.c @@ -114,6 +114,9 @@ static int fanotify_get_response_from_access(struct fsnotify_group *group, event->response = 0; spin_unlock(&event->lock); + pr_debug("%s: group=%p event=%p about to return ret=%d\n", __func__, + group, event, ret); + return ret; } #endif |