Lines Matching defs:pkey
13 * 1. test allocates a pkey(e.g. PKEY_DISABLE_ACCESS) via pkey_alloc()
14 * 2. pkey_mprotect() apply this pkey to a piece of memory(buffer)
16 * 4. remove the access right(pkey) from this buffer via pkey_mprotect()
17 * 5. check if buffer area can be read or write after removing pkey
18 * 6. pkey_free() releases the pkey after using it
32 #include "pkey.h"
132 int pkey, status;
145 pkey = ltp_pkey_alloc(tc->flags, tc->access_rights);
146 if (pkey == -1)
150 if (ltp_pkey_mprotect(buffer, size, mpa->prot, pkey) == -1)
202 if (ltp_pkey_free(pkey) == -1)