powerpc: sys_pkey_alloc() and sys_pkey_free() system calls
authorRam Pai <linuxram@us.ibm.com>
Fri, 19 Jan 2018 01:50:45 +0000 (17:50 -0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 20 Jan 2018 14:06:15 +0000 (01:06 +1100)
Finally this patch provides the ability for a process to
allocate and free a protection key.

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 449912f057f6372bf77e228e7cda16cf22b034f9..dea4a952ec53d40a62772184acf084f438cd3d9d 100644 (file)
@@ -389,3 +389,5 @@ COMPAT_SYS_SPU(preadv2)
 COMPAT_SYS_SPU(pwritev2)
 SYSCALL(kexec_file_load)
 SYSCALL(statx)
+SYSCALL(pkey_alloc)
+SYSCALL(pkey_free)
index 9ba11dbcaca98f88c53ee46c3bd009b22f13df01..e0273bc5b09523e8be5d31bcb531a2bf4ab19300 100644 (file)
 #include <uapi/asm/unistd.h>
 
 
-#define NR_syscalls            384
+#define NR_syscalls            386
 
 #define __NR__exit __NR_exit
 
 #define __IGNORE_pkey_mprotect
-#define __IGNORE_pkey_alloc
-#define __IGNORE_pkey_free
 
 #ifndef __ASSEMBLY__
 
index df8684f31919a7a7bda0629f93a9fdb3bca926df..5db438516e61b6868bbc85810e0b0279d81829b0 100644 (file)
 #define __NR_pwritev2          381
 #define __NR_kexec_file_load   382
 #define __NR_statx             383
+#define __NR_pkey_alloc                384
+#define __NR_pkey_free         385
 
 #endif /* _UAPI_ASM_POWERPC_UNISTD_H_ */