summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJustin Cormack <justin.cormack@docker.com>2016-12-26 17:59:12 +0000
committerPaul Moore <paul@paul-moore.com>2017-01-25 05:10:47 -0500
commitd9102f12fd39bd77151a1f630fcfc8c80f86c55c (patch)
tree69d70af24a266acb80115e3dae65d0f52ca30de1 /include
parentaa3a022be41d8312a4ffe923e3b1d0cff467da8e (diff)
downloadlibseccomp-d9102f12fd39bd77151a1f630fcfc8c80f86c55c.tar.gz
arch: update syscalls for Linux 4.9
Add support for the following syscalls added in Linux v4.9: - preadv2 and pwritev2 - pkey_mprotect, pkey_alloc, pkey_free Signed-off-by: Justin Cormack <justin.cormack@docker.com> [PM: update subject line, description, and some whitespace] Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'include')
-rw-r--r--include/seccomp.h.in15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/seccomp.h.in b/include/seccomp.h.in
index 5b9057f..5fc687c 100644
--- a/include/seccomp.h.in
+++ b/include/seccomp.h.in
@@ -1609,6 +1609,21 @@ int seccomp_export_bpf(const scmp_filter_ctx ctx, int fd);
#define __NR_userfaultfd __PNR_userfaultfd
#endif /* __NR_userfaultfd */
+#define __PNR_pkey_mprotect -10201
+#ifndef __NR_pkey_mprotect
+#define __NR_pkey_mprotect __PNR_pkey_mprotect
+#endif /* __NR_pkey_mprotect */
+
+#define __PNR_pkey_alloc -10202
+#ifndef __NR_pkey_alloc
+#define __NR_pkey_alloc __PNR_pkey_alloc
+#endif /* __NR_pkey_alloc */
+
+#define __PNR_pkey_free -10203
+#ifndef __NR_pkey_free
+#define __NR_pkey_free __PNR_pkey_free
+#endif /* __NR_pkey_free */
+
#ifdef __cplusplus
}
#endif