Lines Matching refs:thread
279 struct task_struct *thread, *caller; in seccomp_can_sync_threads() local
286 for_each_thread(caller, thread) { in seccomp_can_sync_threads()
290 if (thread == caller) in seccomp_can_sync_threads()
293 if (thread->seccomp.mode == SECCOMP_MODE_DISABLED || in seccomp_can_sync_threads()
294 (thread->seccomp.mode == SECCOMP_MODE_FILTER && in seccomp_can_sync_threads()
295 is_ancestor(thread->seccomp.filter, in seccomp_can_sync_threads()
300 failed = task_pid_vnr(thread); in seccomp_can_sync_threads()
320 struct task_struct *thread, *caller; in seccomp_sync_threads() local
327 for_each_thread(caller, thread) { in seccomp_sync_threads()
329 if (thread == caller) in seccomp_sync_threads()
339 put_seccomp_filter(thread); in seccomp_sync_threads()
340 smp_store_release(&thread->seccomp.filter, in seccomp_sync_threads()
350 task_set_no_new_privs(thread); in seccomp_sync_threads()
358 if (thread->seccomp.mode == SECCOMP_MODE_DISABLED) in seccomp_sync_threads()
359 seccomp_assign_mode(thread, SECCOMP_MODE_FILTER); in seccomp_sync_threads()