glibc/sysdeps/unix/sysv/linux/sh
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
..
bits
sh3
sh4
sys
Implies
Makefile
Versions
____longjmp_chk.S
arch-fork.h
atomic-machine.h
brk.c
c++-types.data
clone.S
configure
configure.ac
fxstat.c
fxstatat.c
jmp_buf-macros.h Add jmp_buf-macros.h 2017-11-09 05:10:03 -08:00
kernel-features.h
ld.abilist
libBrokenLocale.abilist
libanl.abilist
libc.abilist Linux: Implement interfaces for memory protection keys 2017-12-05 15:20:35 +01:00
libcrypt.abilist
libdl.abilist
libm.abilist New symbol version for logf, log2f and powf without SVID compat 2017-10-02 14:38:03 +01:00
libnsl.abilist
libpthread.abilist
libresolv.abilist
librt.abilist
libthread_db.abilist
libutil.abilist
localplt.data
lockf64.c
lowlevel-atomic.h
lxstat.c
makecontext.S
pipe.S
profil-counter.h
pt-vfork.S
shlib-versions
sigaltstack-offsets.sym
sigcontextinfo.h
smp.h
syscall.S
syscalls.list
sysdep.S
sysdep.h
vfork.S
xstat.c