From 4f6d0cf8078962c89b54128be902a24de266c3ec Mon Sep 17 00:00:00 2001 From: Dan Streetman Date: Wed, 24 Jul 2019 19:58:48 -0400 Subject: [PATCH] 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 --- src/basic/missing_syscall.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/basic/missing_syscall.h b/src/basic/missing_syscall.h index f590b91c661..f9a541af809 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 -- 2.39.2