powerpc: sys_pkey_mprotect() system call
authorRam Pai <linuxram@us.ibm.com>
Fri, 19 Jan 2018 01:50:46 +0000 (17:50 -0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 20 Jan 2018 14:06:16 +0000 (01:06 +1100)
Patch provides the ability for a process to
associate a pkey with a address range.

Signed-off-by: Ram Pai <linuxram@us.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/systbl.h
arch/powerpc/include/asm/unistd.h
arch/powerpc/include/uapi/asm/unistd.h

index dea4a95..d61f9c9 100644 (file)
@@ -391,3 +391,4 @@ SYSCALL(kexec_file_load)
 SYSCALL(statx)
 SYSCALL(pkey_alloc)
 SYSCALL(pkey_free)
+SYSCALL(pkey_mprotect)
index e0273bc..daf1ba9 100644 (file)
 #include <uapi/asm/unistd.h>
 
 
-#define NR_syscalls            386
+#define NR_syscalls            387
 
 #define __NR__exit __NR_exit
 
-#define __IGNORE_pkey_mprotect
-
 #ifndef __ASSEMBLY__
 
 #include <linux/types.h>
index 5db4385..389c36f 100644 (file)
 #define __NR_statx             383
 #define __NR_pkey_alloc                384
 #define __NR_pkey_free         385
+#define __NR_pkey_mprotect     386
 
 #endif /* _UAPI_ASM_POWERPC_UNISTD_H_ */