Home
last modified time | relevance | path

Searched refs:seccomp_mode (Results 1 – 2 of 2) sorted by relevance

/kernel/
Dseccomp.c284 static inline bool seccomp_may_assign_mode(unsigned long seccomp_mode) in seccomp_may_assign_mode() argument
288 if (current->seccomp.mode && current->seccomp.mode != seccomp_mode) in seccomp_may_assign_mode()
297 unsigned long seccomp_mode, in seccomp_assign_mode() argument
302 task->seccomp.mode = seccomp_mode; in seccomp_assign_mode()
958 const unsigned long seccomp_mode = SECCOMP_MODE_STRICT; in seccomp_set_mode_strict() local
963 if (!seccomp_may_assign_mode(seccomp_mode)) in seccomp_set_mode_strict()
969 seccomp_assign_mode(current, seccomp_mode, 0); in seccomp_set_mode_strict()
1261 const unsigned long seccomp_mode = SECCOMP_MODE_FILTER; in seccomp_set_mode_filter() local
1311 if (!seccomp_may_assign_mode(seccomp_mode)) in seccomp_set_mode_filter()
1320 seccomp_assign_mode(current, seccomp_mode, flags); in seccomp_set_mode_filter()
[all …]
Dptrace.c660 if (seccomp_mode(&current->seccomp) != SECCOMP_MODE_DISABLED || in ptrace_setoptions()