Lines Matching refs:thread
487 struct task_struct *thread, *caller; in seccomp_can_sync_threads() local
494 for_each_thread(caller, thread) { in seccomp_can_sync_threads()
498 if (thread == caller) in seccomp_can_sync_threads()
501 if (thread->seccomp.mode == SECCOMP_MODE_DISABLED || in seccomp_can_sync_threads()
502 (thread->seccomp.mode == SECCOMP_MODE_FILTER && in seccomp_can_sync_threads()
503 is_ancestor(thread->seccomp.filter, in seccomp_can_sync_threads()
508 failed = task_pid_vnr(thread); in seccomp_can_sync_threads()
584 struct task_struct *thread, *caller; in seccomp_sync_threads() local
591 for_each_thread(caller, thread) { in seccomp_sync_threads()
593 if (thread == caller) in seccomp_sync_threads()
604 __seccomp_filter_release(thread->seccomp.filter); in seccomp_sync_threads()
607 smp_store_release(&thread->seccomp.filter, in seccomp_sync_threads()
609 atomic_set(&thread->seccomp.filter_count, in seccomp_sync_threads()
619 task_set_no_new_privs(thread); in seccomp_sync_threads()
627 if (thread->seccomp.mode == SECCOMP_MODE_DISABLED) in seccomp_sync_threads()
628 seccomp_assign_mode(thread, SECCOMP_MODE_FILTER, in seccomp_sync_threads()