Skip to content

Commit 9499ec1

Browse files
Ram Paimpe
Ram Pai
authored andcommitted
powerpc: sys_pkey_alloc() and sys_pkey_free() system calls
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>
1 parent cf43d3b commit 9499ec1

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

arch/powerpc/include/asm/systbl.h

+2
Original file line numberDiff line numberDiff line change
@@ -389,3 +389,5 @@ COMPAT_SYS_SPU(preadv2)
389389
COMPAT_SYS_SPU(pwritev2)
390390
SYSCALL(kexec_file_load)
391391
SYSCALL(statx)
392+
SYSCALL(pkey_alloc)
393+
SYSCALL(pkey_free)

arch/powerpc/include/asm/unistd.h

+1-3
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,11 @@
1212
#include <uapi/asm/unistd.h>
1313

1414

15-
#define NR_syscalls 384
15+
#define NR_syscalls 386
1616

1717
#define __NR__exit __NR_exit
1818

1919
#define __IGNORE_pkey_mprotect
20-
#define __IGNORE_pkey_alloc
21-
#define __IGNORE_pkey_free
2220

2321
#ifndef __ASSEMBLY__
2422

arch/powerpc/include/uapi/asm/unistd.h

+2
Original file line numberDiff line numberDiff line change
@@ -395,5 +395,7 @@
395395
#define __NR_pwritev2 381
396396
#define __NR_kexec_file_load 382
397397
#define __NR_statx 383
398+
#define __NR_pkey_alloc 384
399+
#define __NR_pkey_free 385
398400

399401
#endif /* _UAPI_ASM_POWERPC_UNISTD_H_ */

0 commit comments

Comments
 (0)