Commit 3350eb2e authored by Ram Pai's avatar Ram Pai Committed by Michael Ellerman

powerpc: sys_pkey_mprotect() system call

Patch provides the ability for a process to
associate a pkey with a address range.
Signed-off-by: default avatarRam Pai <linuxram@us.ibm.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 9499ec1b
...@@ -391,3 +391,4 @@ SYSCALL(kexec_file_load) ...@@ -391,3 +391,4 @@ SYSCALL(kexec_file_load)
SYSCALL(statx) SYSCALL(statx)
SYSCALL(pkey_alloc) SYSCALL(pkey_alloc)
SYSCALL(pkey_free) SYSCALL(pkey_free)
SYSCALL(pkey_mprotect)
...@@ -12,12 +12,10 @@ ...@@ -12,12 +12,10 @@
#include <uapi/asm/unistd.h> #include <uapi/asm/unistd.h>
#define NR_syscalls 386 #define NR_syscalls 387
#define __NR__exit __NR_exit #define __NR__exit __NR_exit
#define __IGNORE_pkey_mprotect
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__
#include <linux/types.h> #include <linux/types.h>
......
...@@ -397,5 +397,6 @@ ...@@ -397,5 +397,6 @@
#define __NR_statx 383 #define __NR_statx 383
#define __NR_pkey_alloc 384 #define __NR_pkey_alloc 384
#define __NR_pkey_free 385 #define __NR_pkey_free 385
#define __NR_pkey_mprotect 386
#endif /* _UAPI_ASM_POWERPC_UNISTD_H_ */ #endif /* _UAPI_ASM_POWERPC_UNISTD_H_ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment