This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Linux: Implement interfaces for memory protection keys
On Sun, 5 Nov 2017, Florian Weimer wrote:
> On 11/04/2017 06:49 PM, Florian Weimer wrote:
> > 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.
> >
> > 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.
>
> I again forgot to add a NEWS entry.
Documentation in the glibc manual is also needed.
--
Joseph S. Myers
joseph@codesourcery.com