Lines Matching refs:seccomp
400 READ_ONCE(current->seccomp.filter); in seccomp_run_filters()
429 if (current->seccomp.mode && current->seccomp.mode != seccomp_mode) in seccomp_may_assign_mode()
443 task->seccomp.mode = seccomp_mode; in seccomp_assign_mode()
494 if (thread->seccomp.mode == SECCOMP_MODE_DISABLED || in seccomp_can_sync_threads()
495 (thread->seccomp.mode == SECCOMP_MODE_FILTER && in seccomp_can_sync_threads()
496 is_ancestor(thread->seccomp.filter, in seccomp_can_sync_threads()
497 caller->seccomp.filter))) in seccomp_can_sync_threads()
557 struct seccomp_filter *orig = tsk->seccomp.filter; in seccomp_filter_release()
560 tsk->seccomp.filter = NULL; in seccomp_filter_release()
594 __seccomp_filter_release(thread->seccomp.filter); in seccomp_sync_threads()
597 smp_store_release(&thread->seccomp.filter, in seccomp_sync_threads()
598 caller->seccomp.filter); in seccomp_sync_threads()
599 atomic_set(&thread->seccomp.filter_count, in seccomp_sync_threads()
600 atomic_read(&caller->seccomp.filter_count)); in seccomp_sync_threads()
617 if (thread->seccomp.mode == SECCOMP_MODE_DISABLED) in seccomp_sync_threads()
867 for (walker = current->seccomp.filter; walker; walker = walker->prev) in seccomp_attach_filter()
893 filter->prev = current->seccomp.filter; in seccomp_attach_filter()
895 current->seccomp.filter = filter; in seccomp_attach_filter()
896 atomic_inc(¤t->seccomp.filter_count); in seccomp_attach_filter()
913 struct seccomp_filter *orig = tsk->seccomp.filter; in get_seccomp_filter()
1032 current->seccomp.mode = SECCOMP_MODE_DEAD; in __secure_computing_strict()
1040 int mode = current->seccomp.mode; in secure_computing_strict()
1261 current->seccomp.mode = SECCOMP_MODE_DEAD; in __seccomp_filter()
1298 int mode = current->seccomp.mode; in __secure_computing()
1327 return current->seccomp.mode; in prctl_get_seccomp()
1766 for (cur = current->seccomp.filter; cur; cur = cur->prev) { in has_duplicate_listener()
1949 SYSCALL_DEFINE3(seccomp, unsigned int, op, unsigned int, flags, in SYSCALL_DEFINE3() argument
2002 if (task->seccomp.mode != SECCOMP_MODE_FILTER) { in get_nth_filter()
2007 orig = task->seccomp.filter; in get_nth_filter()
2044 current->seccomp.mode != SECCOMP_MODE_DISABLED) { in seccomp_get_filter()
2082 current->seccomp.mode != SECCOMP_MODE_DISABLED) { in seccomp_get_metadata()