diff options
Diffstat (limited to 'include/linux/seccomp.h')
| -rw-r--r-- | include/linux/seccomp.h | 10 | 
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/seccomp.h b/include/linux/seccomp.h index 167c33361d9c..cc7a4e9cc7ad 100644 --- a/include/linux/seccomp.h +++ b/include/linux/seccomp.h @@ -19,6 +19,11 @@ static inline void secure_computing(int this_syscall)  extern long prctl_get_seccomp(void);  extern long prctl_set_seccomp(unsigned long); +static inline int seccomp_mode(seccomp_t *s) +{ +	return s->mode; +} +  #else /* CONFIG_SECCOMP */  #include <linux/errno.h> @@ -37,6 +42,11 @@ static inline long prctl_set_seccomp(unsigned long arg2)  	return -EINVAL;  } +static inline int seccomp_mode(seccomp_t *s) +{ +	return 0; +} +  #endif /* CONFIG_SECCOMP */  #endif /* _LINUX_SECCOMP_H */  |