summaryrefslogtreecommitdiff
path: root/src/basic/missing_syscall.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-02-27 13:33:00 +0100
committerLennart Poettering <lennart@poettering.net>2018-02-27 13:33:00 +0100
commit033c8366471ad9e0fb566399b0ea66bad63c7dd8 (patch)
tree027f841677dd71ceb3a0fcfac150d03088918223 /src/basic/missing_syscall.h
parentb8eded40bef325b677fbff8b46c917c9a8110c31 (diff)
downloadsystemd-033c8366471ad9e0fb566399b0ea66bad63c7dd8.tar.gz
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/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 bf282ac3f0..34b8956a12 100644
--- a/src/basic/missing_syscall.h
+++ b/src/basic/missing_syscall.h
@@ -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