aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2019-01-02 12:48:13 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2019-01-02 12:48:13 -0500
commitd9a7fa67b4bfe6ce93ee9aab23ae2e7ca0763e84 (patch)
treeea15c22c088160107c09da1c8d380753bb0c8d21 /include/linux
parentf218a29c25ad8abdb961435d6b8139f462061364 (diff)
parent55b8cbe470d103b44104c64dbf89e5cad525d4e0 (diff)
Merge branch 'next-seccomp' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security
Pull seccomp updates from James Morris: - Add SECCOMP_RET_USER_NOTIF - seccomp fixes for sparse warnings and s390 build (Tycho) * 'next-seccomp' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security: seccomp, s390: fix build for syscall type change seccomp: fix poor type promotion samples: add an example of seccomp user trap seccomp: add a return code to trap to userspace seccomp: switch system call argument type to void * seccomp: hoist struct seccomp_data recalculation higher
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);