um, pkeys: give UML an arch_vma_access_permitted()
Subsystems (2)
PATCH 1/1 um, pkeys: give UML an arch_vma_access_permitted()
From: Dave Hansen <[email protected]>
UML has a special mmu_context.h and needs updates whenever the generic one is updated. The original pkeys patches missed this. This fixes it up.
Signed-off-by Dave Hansen <[email protected]>
---
b/arch/um/include/asm/mmu_context.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
arch/um/include/asm/mmu_context.h renamed from arch/um/include/asm/mmu_context.h~pkeys-fix-um-arch_vma_access_permitted +14 -0
@@ -27,6 +27,20 @@ static inline void arch_bprm_mm_init(str 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 */
_
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
tip-bot for Dave Hansen
merge bot[tip:mm/pkeys] um, pkeys: Add UML arch_*_access_permitted() methods
um, pkeys: Add UML arch_*_access_permitted() methods
Commit-ID: 9d95b1759e0504890049deb2de62e31d7c241c30 Gitweb: http://git.kernel.org/tip/9d95b1759e0504890049deb2de62e31d7c241c30 Author: Dave Hansen <[email protected]> AuthorDate: Thu, 18 Feb 2016 10:35:57 -0800 Committer: Ingo Molnar <[email protected]> CommitDate: Thu, 18 Feb 2016 19:46:28 +0100
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 <[email protected]>
Cc Dave Hansen <[email protected]>
Cc Jeff Dike <[email protected]>
Cc Linus Torvalds <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Richard Weinberger <[email protected]>
Cc Thomas Gleixner <[email protected]>
Signed-off-by Ingo Molnar <[email protected]>
--- arch/um/include/asm/mmu_context.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
arch/um/include/asm/mmu_context.h +14 -0
@@ -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 */