lkml.org 
[lkml]   [2016]   [Jun]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 7/8] pkeys: add details of system call use to Documentation/
From
Date
On 06/01/2016 09:49 AM, Jonathan Corbet wrote:
>> > + sys_pkey_alloc(0, PKEY_DISABLE_WRITE | PKEY_DISABLE_READ);
>> > + sys_pkey_mprotect(ptr, size, PROT_READ|PROT_WRITE);
>> > + something(ptr);
> That should, IMO, be something like:
>
> key = pkey_alloc(...);
> pkey_mprotect(ptr, size, PROT_READ|PROT_WRITE, key);

That is true as well. I'll fix that up as well.

Thanks for taking a look!

\
 
 \ /
  Last update: 2016-06-01 19:41    [W:0.846 / U:0.500 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site