Lines Matching refs:rights
31 static volatile sig_atomic_t rights, fault_count; variable
82 if (rights == PKEY_DISABLE_EXECUTE && in segv_handler()
92 unsigned long rights; member
99 unsigned long rights; in protect() local
110 rights = 0; in protect()
112 printf("tid %d, pkey permissions are %s\n", tid, pkey_rights(rights)); in protect()
115 perm_pkey = sys_pkey_alloc(0, rights); in protect()
149 rights = ((struct region *) p)->rights; in protect_access()
154 rest_pkey = sys_pkey_alloc(0, rights); in protect_access()
157 printf("tid %d, pkey permissions are %s\n", tid, pkey_rights(rights)); in protect_access()
159 (rights == PKEY_DISABLE_EXECUTE) ? "execute" : in protect_access()
160 (rights == PKEY_DISABLE_WRITE) ? "write" : "read", in protect_access()
182 switch (rights) { in protect_access()
218 pkey_set_rights(rest_pkey, rights); in protect_access()
227 static void reset_pkeys(unsigned long rights) in reset_pkeys() argument
233 pkeys[i] = sys_pkey_alloc(0, rights); in reset_pkeys()
300 r.rights = PKEY_DISABLE_ACCESS; in test()
308 r.rights = PKEY_DISABLE_WRITE; in test()
316 r.rights = PKEY_DISABLE_EXECUTE; in test()