glibc/sysdeps/unix
Florian Weimer 446d22e91d Linux: Implement interfaces for memory protection keys
This adds system call wrappers for pkey_alloc, pkey_free, pkey_mprotect,
and x86-64 implementations of pkey_get and pkey_set, which abstract over
the PKRU CPU register and hide the actual number of memory protection
keys supported by the CPU.  pkey_mprotect with a -1 key is implemented
using mprotect, so it will work even if the kernel does not support the
pkey_mprotect system call.

The system call wrapers use unsigned int instead of unsigned long for
parameters, so that no special treatment for x32 is needed.  The flags
argument is currently unused, and the access rights bit mask is limited
to two bits by the current PKRU register layout anyway.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
2017-12-05 15:20:35 +01:00
..
alpha
arm
bsd Hide internal __tcgetattr function [BZ #18822] 2017-10-01 17:48:24 -07:00
i386
inet Remove add-ons mechanism. 2017-10-05 15:58:13 +00:00
mips
powerpc
sh
sysv/linux Linux: Implement interfaces for memory protection keys 2017-12-05 15:20:35 +01:00
x86_64
Implies
Makefile
clock_gettime.c hurd: Fix exposition of s/gettimeofday through timespec_s/get 2017-09-25 01:55:02 +02:00
clock_nanosleep.c
clock_settime.c hurd: Fix exposition of s/gettimeofday through timespec_s/get 2017-09-25 01:55:02 +02:00
confstr.h
get_child_max.c
getlogin.c
getlogin_r.c Avoid use of strlen in getlogin_r (bug 22447). 2017-11-22 18:44:23 +00:00
getpagesize.c
grantpt.c
ifreq.c
make-syscalls.sh Fix make-syscalls.sh VDSO support for GCC 8. 2017-09-26 21:21:01 +00:00
s-proto-cancel.S
s-proto.S
setxid.h
sockatmark.c
stime.c
syscall-template.S Remove cancellation support for syscall generation 2017-08-24 14:58:35 -03:00
syscall.S
syscalls.list
sysdep.h