mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-11 13:50:06 +00:00
446d22e91d
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> |
||
---|---|---|
.. | ||
c++-types.data | ||
jmp_buf-macros.h | ||
ld.abilist | ||
libc.abilist | ||
libresolv.abilist | ||
lockf64.c | ||
lseek.c | ||
mmap_internal.h | ||
syscalls.list | ||
sysdep.h | ||
Versions |