Lines Matching refs:seccomp_filter

177 static inline bool seccomp_cache_check_allow(const struct seccomp_filter *sfilter,  in seccomp_cache_check_allow()
183 static inline void seccomp_cache_prepare(struct seccomp_filter *sfilter) in seccomp_cache_prepare()
224 struct seccomp_filter { struct
230 struct seccomp_filter *prev; argument
367 static inline bool seccomp_cache_check_allow(const struct seccomp_filter *sfilter, in seccomp_cache_check_allow()
405 struct seccomp_filter **match) in seccomp_run_filters()
409 struct seccomp_filter *f = in seccomp_run_filters()
467 static int is_ancestor(struct seccomp_filter *parent, in is_ancestor()
468 struct seccomp_filter *child) in is_ancestor()
524 static inline void seccomp_filter_free(struct seccomp_filter *filter) in seccomp_filter_free()
532 static void __seccomp_filter_orphan(struct seccomp_filter *orig) in __seccomp_filter_orphan()
541 static void __put_seccomp_filter(struct seccomp_filter *orig) in __put_seccomp_filter()
545 struct seccomp_filter *freeme = orig; in __put_seccomp_filter()
551 static void __seccomp_filter_release(struct seccomp_filter *orig) in __seccomp_filter_release()
572 struct seccomp_filter *orig; in seccomp_filter_release()
669 static struct seccomp_filter *seccomp_prepare_filter(struct sock_fprog *fprog) in seccomp_prepare_filter()
671 struct seccomp_filter *sfilter; in seccomp_prepare_filter()
721 static struct seccomp_filter *
725 struct seccomp_filter *filter = ERR_PTR(-EFAULT); in seccomp_prepare_user_filter()
832 static void seccomp_cache_prepare_bitmap(struct seccomp_filter *sfilter, in seccomp_cache_prepare_bitmap()
874 static void seccomp_cache_prepare(struct seccomp_filter *sfilter) in seccomp_cache_prepare()
907 struct seccomp_filter *filter) in seccomp_attach_filter()
910 struct seccomp_filter *walker; in seccomp_attach_filter()
958 static void __get_seccomp_filter(struct seccomp_filter *filter) in __get_seccomp_filter()
966 struct seccomp_filter *orig = tsk->seccomp.filter; in get_seccomp_filter()
1095 static u64 seccomp_next_notify_id(struct seccomp_filter *filter) in seccomp_next_notify_id()
1139 static bool should_sleep_killable(struct seccomp_filter *match, in should_sleep_killable()
1146 struct seccomp_filter *match, in seccomp_do_user_notification()
1247 struct seccomp_filter *match = NULL; in __seccomp_filter()
1435 static void seccomp_notify_free(struct seccomp_filter *filter) in seccomp_notify_free()
1441 static void seccomp_notify_detach(struct seccomp_filter *filter) in seccomp_notify_detach()
1476 struct seccomp_filter *filter = file->private_data; in seccomp_notify_release()
1485 find_notification(struct seccomp_filter *filter, u64 id) in find_notification()
1508 static int recv_wait_event(struct seccomp_filter *filter) in recv_wait_event()
1536 static long seccomp_notify_recv(struct seccomp_filter *filter, in seccomp_notify_recv()
1609 static long seccomp_notify_send(struct seccomp_filter *filter, in seccomp_notify_send()
1656 static long seccomp_notify_id_valid(struct seccomp_filter *filter, in seccomp_notify_id_valid()
1680 static long seccomp_notify_set_flags(struct seccomp_filter *filter, in seccomp_notify_set_flags()
1696 static long seccomp_notify_addfd(struct seccomp_filter *filter, in seccomp_notify_addfd()
1813 struct seccomp_filter *filter = file->private_data; in seccomp_notify_ioctl()
1842 struct seccomp_filter *filter = file->private_data; in seccomp_notify_poll()
1875 static struct file *init_listener(struct seccomp_filter *filter) in init_listener()
1910 static bool has_duplicate_listener(struct seccomp_filter *new_child) in has_duplicate_listener()
1912 struct seccomp_filter *cur; in has_duplicate_listener()
1944 struct seccomp_filter *prepared = NULL; in seccomp_set_mode_filter()
2151 static struct seccomp_filter *get_nth_filter(struct task_struct *task, in get_nth_filter()
2154 struct seccomp_filter *orig, *filter; in get_nth_filter()
2200 struct seccomp_filter *filter; in seccomp_get_filter()
2239 struct seccomp_filter *filter; in seccomp_get_metadata()
2517 struct seccomp_filter *f; in proc_pid_seccomp_cache()