mm/gup, x86/mm/pkeys: Check VMAs and PTEs for protection keys
[cascardo/linux.git] / include / asm-generic / mm_hooks.h
index 866aa46..c1fc5af 100644 (file)
@@ -26,4 +26,15 @@ static inline void arch_bprm_mm_init(struct mm_struct *mm,
 {
 }
 
+static inline bool arch_vma_access_permitted(struct vm_area_struct *vma, bool write)
+{
+       /* by default, allow everything */
+       return true;
+}
+
+static inline bool arch_pte_access_permitted(pte_t pte, bool write)
+{
+       /* by default, allow everything */
+       return true;
+}
 #endif /* _ASM_GENERIC_MM_HOOKS_H */