From: Dave Hansen Date: Thu, 18 Feb 2016 18:35:57 +0000 (-0800) Subject: um, pkeys: Add UML arch_*_access_permitted() methods X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9d95b1759e0504890049deb2de62e31d7c241c30;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git um, pkeys: Add UML arch_*_access_permitted() methods UML has a special mmu_context.h and needs updates whenever the generic one is updated. Signed-off-by: Dave Hansen Cc: Dave Hansen Cc: Jeff Dike Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Richard Weinberger Cc: Thomas Gleixner Cc: linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org Cc: user-mode-linux-devel@lists.sourceforge.net Cc: user-mode-linux-user@lists.sourceforge.net Link: http://lkml.kernel.org/r/20160218183557.AE1DB383@viggo.jf.intel.com Signed-off-by: Ingo Molnar --- diff --git a/arch/um/include/asm/mmu_context.h b/arch/um/include/asm/mmu_context.h index 941527e507f7..1a60e1328e2f 100644 --- a/arch/um/include/asm/mmu_context.h +++ b/arch/um/include/asm/mmu_context.h @@ -27,6 +27,20 @@ static inline void arch_bprm_mm_init(struct mm_struct *mm, struct vm_area_struct *vma) { } + +static inline bool arch_vma_access_permitted(struct vm_area_struct *vma, + bool write, bool execute, bool foreign) +{ + /* by default, allow everything */ + return true; +} + +static inline bool arch_pte_access_permitted(pte_t pte, bool write) +{ + /* by default, allow everything */ + return true; +} + /* * end asm-generic/mm_hooks.h functions */