]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
src/basic/missing_syscall: add s390 syscall number for __NR_pkey_mprotect
authorDan Streetman <ddstreet@canonical.com>
Wed, 24 Jul 2019 23:58:48 +0000 (19:58 -0400)
committerDan Streetman <ddstreet@canonical.com>
Tue, 13 Aug 2019 19:40:29 +0000 (15:40 -0400)
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

src/basic/missing_syscall.h

index f590b91c661cdfcf4f9071bd4c5b5f41140defba..f9a541af809a8c5d541ea8a663668a0e97232cc7 100644 (file)
@@ -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