]>
git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blob - include/linux/pkeys.h
1 /* SPDX-License-Identifier: GPL-2.0 */
7 #ifdef CONFIG_ARCH_HAS_PKEYS
9 #else /* ! CONFIG_ARCH_HAS_PKEYS */
10 #define arch_max_pkey() (1)
11 #define execute_only_pkey(mm) (0)
12 #define arch_override_mprotect_pkey(vma, prot, pkey) (0)
13 #define PKEY_DEDICATED_EXECUTE_ONLY 0
14 #define ARCH_VM_PKEY_FLAGS 0
16 static inline int vma_pkey(struct vm_area_struct
*vma
)
21 static inline bool mm_pkey_is_allocated(struct mm_struct
*mm
, int pkey
)
26 static inline int mm_pkey_alloc(struct mm_struct
*mm
)
31 static inline int mm_pkey_free(struct mm_struct
*mm
, int pkey
)
36 static inline int arch_set_user_pkey_access(struct task_struct
*tsk
, int pkey
,
37 unsigned long init_val
)
42 static inline bool arch_pkeys_enabled(void)
47 #endif /* ! CONFIG_ARCH_HAS_PKEYS */
49 #endif /* _LINUX_PKEYS_H */