summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-02-27 13:33:00 +0100
committerSven Eden <yamakuzure@gmx.net>2018-05-30 07:59:07 +0200
commitb45852c3df4cf20b833ee891ca66e41468f28335 (patch)
tree060f02230895cb3b4a7e86247ee032388e0297e2 /src
parent12a619f9e6840e8242e41586498cbd39f067f052 (diff)
missing_syscall: add pkey_mprotect for ppc (#8292)
Accurate for both ppc and ppc64 according to https://fedora.juszkiewicz.com.pl/syscalls.html.
Diffstat (limited to 'src')
-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 6253f28a1..018566887 100644
--- a/src/basic/missing_syscall.h
+++ b/src/basic/missing_syscall.h
@@ -396,6 +396,8 @@ static inline int missing_bpf(int cmd, union bpf_attr *attr, size_t size) {
# define __NR_pkey_mprotect 394
# elif defined __aarch64__
# define __NR_pkey_mprotect 394
+# elif defined __powerpc__
+# define __NR_pkey_mprotect 386
# elif defined _MIPS_SIM
# if _MIPS_SIM == _MIPS_SIM_ABI32
# define __NR_pkey_mprotect 4363