diff options
author | Eric Paris <eparis@redhat.com> | 2010-07-28 10:18:37 -0400 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2010-07-28 10:18:50 -0400 |
commit | 80af2588676483ac4e998b5092e9d008dab3ab62 (patch) | |
tree | 6bff012a185f55b27f601e50b2f2ad53e9fc9f63 /include/linux/fsnotify_backend.h | |
parent | 20dee624ca40db227aa70cb3f44d2d6cb4fdbab4 (diff) |
fanotify: groups can specify their f_flags for new fd
Currently fanotify fds opened for thier listeners are done with f_flags
equal to O_RDONLY | O_LARGEFILE. This patch instead takes f_flags from the
fanotify_init syscall and uses those when opening files in the context of
the listener.
Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'include/linux/fsnotify_backend.h')
-rw-r--r-- | include/linux/fsnotify_backend.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/linux/fsnotify_backend.h b/include/linux/fsnotify_backend.h index a46355db1e47..a83859d7d36e 100644 --- a/include/linux/fsnotify_backend.h +++ b/include/linux/fsnotify_backend.h | |||
@@ -169,14 +169,17 @@ struct fsnotify_group { | |||
169 | struct user_struct *user; | 169 | struct user_struct *user; |
170 | } inotify_data; | 170 | } inotify_data; |
171 | #endif | 171 | #endif |
172 | #ifdef CONFIG_FANOTIFY_ACCESS_PERMISSIONS | 172 | #ifdef CONFIG_FANOTIFY |
173 | struct fanotify_group_private_data { | 173 | struct fanotify_group_private_data { |
174 | #ifdef CONFIG_FANOTIFY_ACCESS_PERMISSIONS | ||
174 | /* allows a group to block waiting for a userspace response */ | 175 | /* allows a group to block waiting for a userspace response */ |
175 | struct mutex access_mutex; | 176 | struct mutex access_mutex; |
176 | struct list_head access_list; | 177 | struct list_head access_list; |
177 | wait_queue_head_t access_waitq; | 178 | wait_queue_head_t access_waitq; |
179 | #endif /* CONFIG_FANOTIFY_ACCESS_PERMISSIONS */ | ||
180 | int f_flags; | ||
178 | } fanotify_data; | 181 | } fanotify_data; |
179 | #endif | 182 | #endif /* CONFIG_FANOTIFY */ |
180 | }; | 183 | }; |
181 | }; | 184 | }; |
182 | 185 | ||