1 #ifndef _LINUX_SECCOMP_H
2 #define _LINUX_SECCOMP_H
7 #include <linux/thread_info.h>
8 #include <asm/seccomp.h>
14 extern void __secure_computing(int);
15 static inline void secure_computing(int this_syscall)
17 if (unlikely(test_thread_flag(TIF_SECCOMP)))
18 __secure_computing(this_syscall);
21 extern long prctl_get_seccomp(void);
22 extern long prctl_set_seccomp(unsigned long);
24 static inline int seccomp_mode(struct seccomp *s)
29 #else /* CONFIG_SECCOMP */
31 #include <linux/errno.h>
35 #define secure_computing(x) do { } while (0)
37 static inline long prctl_get_seccomp(void)
42 static inline long prctl_set_seccomp(unsigned long arg2)
47 static inline int seccomp_mode(struct seccomp *s)
52 #endif /* CONFIG_SECCOMP */
54 #endif /* _LINUX_SECCOMP_H */