Home
last modified time | relevance | path

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

/openbmc/linux/include/linux/
H A Dseccomp.h58 static inline int seccomp_mode(struct seccomp *s) in seccomp_mode() function
88 static inline int seccomp_mode(struct seccomp *s) in seccomp_mode() function
/openbmc/linux/kernel/
H A Dseccomp.c437 static inline bool seccomp_may_assign_mode(unsigned long seccomp_mode) in seccomp_may_assign_mode() argument
441 if (current->seccomp.mode && current->seccomp.mode != seccomp_mode) in seccomp_may_assign_mode()
450 unsigned long seccomp_mode, in seccomp_assign_mode() argument
455 task->seccomp.mode = seccomp_mode; in seccomp_assign_mode()
1380 const unsigned long seccomp_mode = SECCOMP_MODE_STRICT; in seccomp_set_mode_strict() local
1385 if (!seccomp_may_assign_mode(seccomp_mode)) in seccomp_set_mode_strict()
1391 seccomp_assign_mode(current, seccomp_mode, 0); in seccomp_set_mode_strict()
1904 const unsigned long seccomp_mode = SECCOMP_MODE_FILTER; in seccomp_set_mode_filter() local
1964 if (!seccomp_may_assign_mode(seccomp_mode)) in seccomp_set_mode_filter()
1978 seccomp_assign_mode(current, seccomp_mode, flags); in seccomp_set_mode_filter()
[all …]
H A Dptrace.c382 if (seccomp_mode(&current->seccomp) != SECCOMP_MODE_DISABLED || in check_ptrace_options()