aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/seccomp.h9
-rw-r--r--include/linux/syscalls.h2
2 files changed, 6 insertions, 5 deletions
diff --git a/include/linux/seccomp.h b/include/linux/seccomp.h
index e5320f6c8654..84868d37b35d 100644
--- a/include/linux/seccomp.h
+++ b/include/linux/seccomp.h
@@ -4,9 +4,10 @@
4 4
5#include <uapi/linux/seccomp.h> 5#include <uapi/linux/seccomp.h>
6 6
7#define SECCOMP_FILTER_FLAG_MASK (SECCOMP_FILTER_FLAG_TSYNC | \ 7#define SECCOMP_FILTER_FLAG_MASK (SECCOMP_FILTER_FLAG_TSYNC | \
8 SECCOMP_FILTER_FLAG_LOG | \ 8 SECCOMP_FILTER_FLAG_LOG | \
9 SECCOMP_FILTER_FLAG_SPEC_ALLOW) 9 SECCOMP_FILTER_FLAG_SPEC_ALLOW | \
10 SECCOMP_FILTER_FLAG_NEW_LISTENER)
10 11
11#ifdef CONFIG_SECCOMP 12#ifdef CONFIG_SECCOMP
12 13
@@ -43,7 +44,7 @@ extern void secure_computing_strict(int this_syscall);
43#endif 44#endif
44 45
45extern long prctl_get_seccomp(void); 46extern long prctl_get_seccomp(void);
46extern long prctl_set_seccomp(unsigned long, char __user *); 47extern long prctl_set_seccomp(unsigned long, void __user *);
47 48
48static inline int seccomp_mode(struct seccomp *s) 49static inline int seccomp_mode(struct seccomp *s)
49{ 50{
diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h
index 251979d2e709..257cccba3062 100644
--- a/include/linux/syscalls.h
+++ b/include/linux/syscalls.h
@@ -898,7 +898,7 @@ asmlinkage long sys_renameat2(int olddfd, const char __user *oldname,
898 int newdfd, const char __user *newname, 898 int newdfd, const char __user *newname,
899 unsigned int flags); 899 unsigned int flags);
900asmlinkage long sys_seccomp(unsigned int op, unsigned int flags, 900asmlinkage long sys_seccomp(unsigned int op, unsigned int flags,
901 const char __user *uargs); 901 void __user *uargs);
902asmlinkage long sys_getrandom(char __user *buf, size_t count, 902asmlinkage long sys_getrandom(char __user *buf, size_t count,
903 unsigned int flags); 903 unsigned int flags);
904asmlinkage long sys_memfd_create(const char __user *uname_ptr, unsigned int flags); 904asmlinkage long sys_memfd_create(const char __user *uname_ptr, unsigned int flags);