summaryrefslogtreecommitdiff
path: root/src/basic/missing_syscall.h
diff options
context:
space:
mode:
authorDan Streetman <ddstreet@canonical.com>2019-07-24 19:58:48 -0400
committerDan Streetman <ddstreet@canonical.com>2019-08-13 15:40:29 -0400
commit4f6d0cf8078962c89b54128be902a24de266c3ec (patch)
tree627bcc58695fa9ec9cc9846c8d2f821bc5750306 /src/basic/missing_syscall.h
parent9ef3376bc99974d9f2db0ada668da1a6c2678236 (diff)
downloadsystemd-4f6d0cf8078962c89b54128be902a24de266c3ec.tar.gz
src/basic/missing_syscall: add s390 syscall number for __NR_pkey_mprotect
The syscall number for s390 was added to the kernel at: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b41c51c8e194c0bdfb4b1778a137aea8246c86cd
Diffstat (limited to 'src/basic/missing_syscall.h')
-rw-r--r--src/basic/missing_syscall.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/basic/missing_syscall.h b/src/basic/missing_syscall.h
index f590b91c66..f9a541af80 100644
--- a/src/basic/missing_syscall.h
+++ b/src/basic/missing_syscall.h
@@ -391,6 +391,8 @@ static inline int missing_bpf(int cmd, union bpf_attr *attr, size_t size) {
# define __NR_pkey_mprotect 394
# elif defined __powerpc__
# define __NR_pkey_mprotect 386
+# elif defined __s390__
+# define __NR_pkey_mprotect 384
# elif defined _MIPS_SIM
# if _MIPS_SIM == _MIPS_SIM_ABI32
# define __NR_pkey_mprotect 4363