Lines Matching refs:seccomp_mode
432 static inline bool seccomp_may_assign_mode(unsigned long seccomp_mode) in seccomp_may_assign_mode() argument
436 if (current->seccomp.mode && current->seccomp.mode != seccomp_mode) in seccomp_may_assign_mode()
445 unsigned long seccomp_mode, in seccomp_assign_mode() argument
450 task->seccomp.mode = seccomp_mode; in seccomp_assign_mode()
1368 const unsigned long seccomp_mode = SECCOMP_MODE_STRICT; in seccomp_set_mode_strict() local
1373 if (!seccomp_may_assign_mode(seccomp_mode)) in seccomp_set_mode_strict()
1379 seccomp_assign_mode(current, seccomp_mode, 0); in seccomp_set_mode_strict()
1840 const unsigned long seccomp_mode = SECCOMP_MODE_FILTER; in seccomp_set_mode_filter() local
1900 if (!seccomp_may_assign_mode(seccomp_mode)) in seccomp_set_mode_filter()
1914 seccomp_assign_mode(current, seccomp_mode, flags); in seccomp_set_mode_filter()
2020 long prctl_set_seccomp(unsigned long seccomp_mode, void __user *filter) in prctl_set_seccomp() argument
2025 switch (seccomp_mode) { in prctl_set_seccomp()