]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
missing_syscall: add pkey_mprotect for ppc (#8292)
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 27 Feb 2018 12:33:00 +0000 (13:33 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 27 Feb 2018 12:33:00 +0000 (13:33 +0100)
Accurate for both ppc and ppc64 according to https://fedora.juszkiewicz.com.pl/syscalls.html.

src/basic/missing_syscall.h

index bf282ac3f07a20d923b20506e106a52dcf07ffec..34b8956a122e45bc3a83ba264de93a5ab76b0df9 100644 (file)
@@ -394,6 +394,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