add pkey_{mprotect,alloc,free} syscalls from linux v4.9

see linux commit e8c24d3a23a469f1f40d4de24d872ca7023ced0a
and linux Documentation/x86/protection-keys.txt
This commit is contained in:
Szabolcs Nagy 2016-12-25 10:41:06 +01:00 committed by Rich Felker
parent 5bf7eba213
commit 62eaf40bf4
9 changed files with 27 additions and 0 deletions

View File

@ -271,4 +271,7 @@
#define __NR_copy_file_range 285
#define __NR_preadv2 286
#define __NR_pwritev2 287
#define __NR_pkey_mprotect 288
#define __NR_pkey_alloc 289
#define __NR_pkey_free 290

View File

@ -347,6 +347,9 @@
#define __NR_copy_file_range 391
#define __NR_preadv2 392
#define __NR_pwritev2 393
#define __NR_pkey_mprotect 394
#define __NR_pkey_alloc 395
#define __NR_pkey_free 396
#define __ARM_NR_breakpoint 0x0f0001
#define __ARM_NR_cacheflush 0x0f0002

View File

@ -378,4 +378,7 @@
#define __NR_copy_file_range 377
#define __NR_preadv2 378
#define __NR_pwritev2 379
#define __NR_pkey_mprotect 380
#define __NR_pkey_alloc 381
#define __NR_pkey_free 382

View File

@ -360,4 +360,7 @@
#define __NR_copy_file_range 4360
#define __NR_preadv2 4361
#define __NR_pwritev2 4362
#define __NR_pkey_mprotect 4363
#define __NR_pkey_alloc 4364
#define __NR_pkey_free 4365

View File

@ -320,4 +320,7 @@
#define __NR_copy_file_range 5320
#define __NR_preadv2 5321
#define __NR_pwritev2 5322
#define __NR_pkey_mprotect 5323
#define __NR_pkey_alloc 5324
#define __NR_pkey_free 5325

View File

@ -324,4 +324,7 @@
#define __NR_copy_file_range 6324
#define __NR_preadv2 6325
#define __NR_pwritev2 6326
#define __NR_pkey_mprotect 6327
#define __NR_pkey_alloc 6328
#define __NR_pkey_free 6329

View File

@ -271,4 +271,7 @@
#define __NR_copy_file_range 285
#define __NR_preadv2 286
#define __NR_pwritev2 287
#define __NR_pkey_mprotect 288
#define __NR_pkey_alloc 289
#define __NR_pkey_free 290

View File

@ -280,6 +280,9 @@
#define __NR_membarrier (0x40000000 + 324)
#define __NR_mlock2 (0x40000000 + 325)
#define __NR_copy_file_range (0x40000000 + 326)
#define __NR_pkey_mprotect (0x40000000 + 329)
#define __NR_pkey_alloc (0x40000000 + 330)
#define __NR_pkey_free (0x40000000 + 331)
#define __NR_rt_sigaction (0x40000000 + 512)
#define __NR_rt_sigreturn (0x40000000 + 513)

View File

@ -327,4 +327,7 @@
#define __NR_copy_file_range 326
#define __NR_preadv2 327
#define __NR_pwritev2 328
#define __NR_pkey_mprotect 329
#define __NR_pkey_alloc 330
#define __NR_pkey_free 331