diff options
| author | Dave Hansen <dave.hansen@linux.intel.com> | 2016-02-18 13:35:57 -0500 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2016-02-18 13:46:28 -0500 |
| commit | 9d95b1759e0504890049deb2de62e31d7c241c30 (patch) | |
| tree | 50aa4cf05677d154de61078114e53d002f1b381e /arch/um/include | |
| parent | 33a709b25a760b91184bb335cf7d7c32b8123013 (diff) | |
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>
Diffstat (limited to 'arch/um/include')
| -rw-r--r-- | arch/um/include/asm/mmu_context.h | 14 |
1 files changed, 14 insertions, 0 deletions
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, | |||
| 27 | struct vm_area_struct *vma) | 27 | struct vm_area_struct *vma) |
| 28 | { | 28 | { |
| 29 | } | 29 | } |
| 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 | |||
| 30 | /* | 44 | /* |
| 31 | * end asm-generic/mm_hooks.h functions | 45 | * end asm-generic/mm_hooks.h functions |
| 32 | */ | 46 | */ |
