• Home
  • Raw
  • Download

Lines Matching refs:event

54 static int fanotify_event_info_len(struct fanotify_event *event)  in fanotify_event_info_len()  argument
56 if (!fanotify_event_has_fid(event)) in fanotify_event_info_len()
60 sizeof(struct file_handle) + event->fh_len, in fanotify_event_info_len()
100 struct fanotify_event *event, in create_fd() argument
106 pr_debug("%s: group=%p event=%p\n", __func__, group, event); in create_fd()
118 if (event->path.dentry && event->path.mnt) in create_fd()
119 new_file = dentry_open(&event->path, in create_fd()
146 struct fanotify_perm_event *event, in finish_permission_event() argument
153 event->response = response; in finish_permission_event()
154 if (event->state == FAN_EVENT_CANCELED) in finish_permission_event()
157 event->state = FAN_EVENT_ANSWERED; in finish_permission_event()
160 fsnotify_destroy_event(group, &event->fae.fse); in finish_permission_event()
166 struct fanotify_perm_event *event; in process_access_response() local
192 list_for_each_entry(event, &group->fanotify_data.access_list, in process_access_response()
194 if (event->fd != fd) in process_access_response()
197 list_del_init(&event->fae.fse.list); in process_access_response()
198 finish_permission_event(group, event, response); in process_access_response()
207 static int copy_fid_to_user(struct fanotify_event *event, char __user *buf) in copy_fid_to_user() argument
212 size_t fh_len = event->fh_len; in copy_fid_to_user()
213 size_t len = fanotify_event_info_len(event); in copy_fid_to_user()
224 info.fsid = event->fid.fsid; in copy_fid_to_user()
230 handle.handle_type = event->fh_type; in copy_fid_to_user()
241 fh = fanotify_event_fh(event); in copy_fid_to_user()
264 struct fanotify_event *event; in copy_event_to_user() local
270 event = container_of(fsn_event, struct fanotify_event, fse); in copy_event_to_user()
275 metadata.mask = event->mask & FANOTIFY_OUTGOING_EVENTS; in copy_event_to_user()
276 metadata.pid = pid_vnr(event->pid); in copy_event_to_user()
278 if (fanotify_event_has_path(event)) { in copy_event_to_user()
279 fd = create_fd(group, event, &f); in copy_event_to_user()
282 } else if (fanotify_event_has_fid(event)) { in copy_event_to_user()
283 metadata.event_len += fanotify_event_info_len(event); in copy_event_to_user()
298 if (fanotify_is_perm_event(event->mask)) in copy_event_to_user()
301 if (fanotify_event_has_path(event)) { in copy_event_to_user()
303 } else if (fanotify_event_has_fid(event)) { in copy_event_to_user()
304 ret = copy_fid_to_user(event, buf + FAN_EVENT_METADATA_LEN); in copy_event_to_user()
443 struct fanotify_perm_event *event; in fanotify_release() local
459 event = list_first_entry(&group->fanotify_data.access_list, in fanotify_release()
461 list_del_init(&event->fae.fse.list); in fanotify_release()
462 finish_permission_event(group, event, FAN_ALLOW); in fanotify_release()