Skip to content

Commit 033c836

Browse files
keszybzpoettering
authored andcommitted
missing_syscall: add pkey_mprotect for ppc (systemd#8292)
Accurate for both ppc and ppc64 according to https://fedora.juszkiewicz.com.pl/syscalls.html.
1 parent b8eded4 commit 033c836

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/basic/missing_syscall.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,8 @@ static inline int missing_bpf(int cmd, union bpf_attr *attr, size_t size) {
394394
# define __NR_pkey_mprotect 394
395395
# elif defined __aarch64__
396396
# define __NR_pkey_mprotect 394
397+
# elif defined __powerpc__
398+
# define __NR_pkey_mprotect 386
397399
# elif defined _MIPS_SIM
398400
# if _MIPS_SIM == _MIPS_SIM_ABI32
399401
# define __NR_pkey_mprotect 4363

0 commit comments

Comments
 (0)