Lines Matching refs:current
72 struct task_struct *task = current; in populate_seccomp_data()
178 struct seccomp_filter *f = ACCESS_ONCE(current->seccomp.filter); in seccomp_run_filters()
210 assert_spin_locked(¤t->sighand->siglock); in seccomp_may_assign_mode()
212 if (current->seccomp.mode && current->seccomp.mode != seccomp_mode) in seccomp_may_assign_mode()
259 BUG_ON(!mutex_is_locked(¤t->signal->cred_guard_mutex)); in seccomp_can_sync_threads()
260 assert_spin_locked(¤t->sighand->siglock); in seccomp_can_sync_threads()
263 caller = current; in seccomp_can_sync_threads()
300 BUG_ON(!mutex_is_locked(¤t->signal->cred_guard_mutex)); in seccomp_sync_threads()
301 assert_spin_locked(¤t->sighand->siglock); in seccomp_sync_threads()
304 caller = current; in seccomp_sync_threads()
366 if (!task_no_new_privs(current) && in seccomp_prepare_filter()
470 assert_spin_locked(¤t->sighand->siglock); in seccomp_attach_filter()
474 for (walker = current->seccomp.filter; walker; walker = walker->prev) in seccomp_attach_filter()
492 filter->prev = current->seccomp.filter; in seccomp_attach_filter()
493 current->seccomp.filter = filter; in seccomp_attach_filter()
545 info.si_call_addr = (void __user *)KSTK_EIP(current); in seccomp_send_sigsys()
549 force_sig_info(SIGSYS, &info, current); in seccomp_send_sigsys()
592 int mode = current->seccomp.mode; in secure_computing_strict()
635 syscall_set_return_value(current, task_pt_regs(current), in __seccomp_phase1_filter()
641 syscall_rollback(current, task_pt_regs(current)); in __seccomp_phase1_filter()
691 int mode = current->seccomp.mode; in seccomp_phase1()
693 syscall_get_nr(current, task_pt_regs(current)); in seccomp_phase1()
718 struct pt_regs *regs = task_pt_regs(current); in seccomp_phase2()
724 audit_seccomp(syscall_get_nr(current, regs), 0, action); in seccomp_phase2()
727 if (!ptrace_event_enabled(current, PTRACE_EVENT_SECCOMP)) { in seccomp_phase2()
728 syscall_set_return_value(current, regs, in seccomp_phase2()
741 if (fatal_signal_pending(current)) in seccomp_phase2()
743 if (syscall_get_nr(current, regs) < 0) in seccomp_phase2()
752 return current->seccomp.mode; in prctl_get_seccomp()
767 spin_lock_irq(¤t->sighand->siglock); in seccomp_set_mode_strict()
775 seccomp_assign_mode(current, seccomp_mode); in seccomp_set_mode_strict()
779 spin_unlock_irq(¤t->sighand->siglock); in seccomp_set_mode_strict()
819 mutex_lock_killable(¤t->signal->cred_guard_mutex)) in seccomp_set_mode_filter()
822 spin_lock_irq(¤t->sighand->siglock); in seccomp_set_mode_filter()
833 seccomp_assign_mode(current, seccomp_mode); in seccomp_set_mode_filter()
835 spin_unlock_irq(¤t->sighand->siglock); in seccomp_set_mode_filter()
837 mutex_unlock(¤t->signal->cred_guard_mutex); in seccomp_set_mode_filter()