aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/fsnotify_backend.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/fsnotify_backend.h')
-rw-r--r--include/linux/fsnotify_backend.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/fsnotify_backend.h b/include/linux/fsnotify_backend.h
index c34728e7d8cb..b0d00fd6bfad 100644
--- a/include/linux/fsnotify_backend.h
+++ b/include/linux/fsnotify_backend.h
@@ -160,6 +160,14 @@ struct fsnotify_group {
160 struct user_struct *user; 160 struct user_struct *user;
161 } inotify_data; 161 } inotify_data;
162#endif 162#endif
163#ifdef CONFIG_FANOTIFY_ACCESS_PERMISSIONS
164 struct fanotify_group_private_data {
165 /* allows a group to block waiting for a userspace response */
166 struct mutex access_mutex;
167 struct list_head access_list;
168 wait_queue_head_t access_waitq;
169 } fanotify_data;
170#endif
163 }; 171 };
164}; 172};
165 173
@@ -227,6 +235,10 @@ struct fsnotify_event {
227 size_t name_len; 235 size_t name_len;
228 struct pid *tgid; 236 struct pid *tgid;
229 237
238#ifdef CONFIG_FANOTIFY_ACCESS_PERMISSIONS
239 __u32 response; /* userspace answer to question */
240#endif /* CONFIG_FANOTIFY_ACCESS_PERMISSIONS */
241
230 struct list_head private_data_list; /* groups can store private data here */ 242 struct list_head private_data_list; /* groups can store private data here */
231}; 243};
232 244