diff options
Diffstat (limited to 'include/linux/seccomp.h')
-rw-r--r-- | include/linux/seccomp.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/include/linux/seccomp.h b/include/linux/seccomp.h index 3e8b1cf54303..d708974dbfe3 100644 --- a/include/linux/seccomp.h +++ b/include/linux/seccomp.h | |||
@@ -4,8 +4,6 @@ | |||
4 | 4 | ||
5 | #ifdef CONFIG_SECCOMP | 5 | #ifdef CONFIG_SECCOMP |
6 | 6 | ||
7 | #define NR_SECCOMP_MODES 1 | ||
8 | |||
9 | #include <linux/thread_info.h> | 7 | #include <linux/thread_info.h> |
10 | #include <asm/seccomp.h> | 8 | #include <asm/seccomp.h> |
11 | 9 | ||
@@ -23,6 +21,9 @@ static inline int has_secure_computing(struct thread_info *ti) | |||
23 | return unlikely(test_ti_thread_flag(ti, TIF_SECCOMP)); | 21 | return unlikely(test_ti_thread_flag(ti, TIF_SECCOMP)); |
24 | } | 22 | } |
25 | 23 | ||
24 | extern long prctl_get_seccomp(void); | ||
25 | extern long prctl_set_seccomp(unsigned long); | ||
26 | |||
26 | #else /* CONFIG_SECCOMP */ | 27 | #else /* CONFIG_SECCOMP */ |
27 | 28 | ||
28 | typedef struct { } seccomp_t; | 29 | typedef struct { } seccomp_t; |
@@ -34,6 +35,16 @@ static inline int has_secure_computing(struct thread_info *ti) | |||
34 | return 0; | 35 | return 0; |
35 | } | 36 | } |
36 | 37 | ||
38 | static inline long prctl_get_seccomp(void) | ||
39 | { | ||
40 | return -EINVAL; | ||
41 | } | ||
42 | |||
43 | static inline long prctl_set_seccomp(unsigned long arg2) | ||
44 | { | ||
45 | return -EINVAL; | ||
46 | } | ||
47 | |||
37 | #endif /* CONFIG_SECCOMP */ | 48 | #endif /* CONFIG_SECCOMP */ |
38 | 49 | ||
39 | #endif /* _LINUX_SECCOMP_H */ | 50 | #endif /* _LINUX_SECCOMP_H */ |