Lines Matching refs:rights
52 void pkey_set_rights(int pkey, unsigned long rights) in pkey_set_rights() argument
59 amr |= (rights & PKEY_BITS_MASK) << shift; in pkey_set_rights()
68 int sys_pkey_alloc(unsigned long flags, unsigned long rights) in sys_pkey_alloc() argument
70 return syscall(__NR_pkey_alloc, flags, rights); in sys_pkey_alloc()
121 unsigned long next_pkey_rights(unsigned long rights) in next_pkey_rights() argument
123 if (rights == PKEY_DISABLE_ACCESS) in next_pkey_rights()
125 else if (rights == (PKEY_DISABLE_ACCESS | PKEY_DISABLE_EXECUTE)) in next_pkey_rights()
128 if ((rights & PKEY_BITS_MASK) == 0) in next_pkey_rights()
129 rights |= PKEY_DISABLE_WRITE; in next_pkey_rights()
130 else if ((rights & PKEY_BITS_MASK) == PKEY_DISABLE_WRITE) in next_pkey_rights()
131 rights |= PKEY_DISABLE_ACCESS; in next_pkey_rights()
133 return rights; in next_pkey_rights()