mirror of
https://sourceware.org/git/glibc.git
synced 2026-01-06 11:51:29 +03:00
misc: Enable internal use of memory protection keys
This adds the necessary hidden prototypes.
This commit is contained in:
@@ -18,9 +18,10 @@
|
||||
|
||||
#include <arch-pkey.h>
|
||||
#include <errno.h>
|
||||
#include <sys/mman.h>
|
||||
|
||||
int
|
||||
pkey_set (int key, unsigned int rights)
|
||||
__pkey_set (int key, unsigned int rights)
|
||||
{
|
||||
if (key < 0 || key > 15 || rights > 3)
|
||||
{
|
||||
@@ -33,3 +34,5 @@ pkey_set (int key, unsigned int rights)
|
||||
pkey_write (pkru);
|
||||
return 0;
|
||||
}
|
||||
libc_hidden_def (__pkey_set)
|
||||
weak_alias (__pkey_set, pkey_set)
|
||||
|
||||
Reference in New Issue
Block a user