Skip to content

Commit 9d95b17

Browse files
hansendcIngo Molnar
authored andcommitted
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 <dave.hansen@linux.intel.com> Cc: Dave Hansen <dave@sr71.net> Cc: Jeff Dike <jdike@addtoit.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Richard Weinberger <richard@nod.at> Cc: Thomas Gleixner <tglx@linutronix.de> 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 <mingo@kernel.org>
1 parent 33a709b commit 9d95b17

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

arch/um/include/asm/mmu_context.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,20 @@ static inline void arch_bprm_mm_init(struct mm_struct *mm,
2727
struct vm_area_struct *vma)
2828
{
2929
}
30+
31+
static inline bool arch_vma_access_permitted(struct vm_area_struct *vma,
32+
bool write, bool execute, bool foreign)
33+
{
34+
/* by default, allow everything */
35+
return true;
36+
}
37+
38+
static inline bool arch_pte_access_permitted(pte_t pte, bool write)
39+
{
40+
/* by default, allow everything */
41+
return true;
42+
}
43+
3044
/*
3145
* end asm-generic/mm_hooks.h functions
3246
*/

0 commit comments

Comments
 (0)