* [PATCH] arm64: Add missing Kconfig for CONFIG_STRICT_DEVMEM
@ 2014-04-05 0:30 Laura Abbott
2014-04-07 16:35 ` Catalin Marinas
0 siblings, 1 reply; 2+ messages in thread
From: Laura Abbott @ 2014-04-05 0:30 UTC (permalink / raw)
To: linux-arm-kernel
The Kconfig for CONFIG_STRICT_DEVMEM is missing despite being
used in mmap.c. Add it.
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
---
arch/arm64/Kconfig.debug | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/arch/arm64/Kconfig.debug b/arch/arm64/Kconfig.debug
index 835c559..4be4336 100644
--- a/arch/arm64/Kconfig.debug
+++ b/arch/arm64/Kconfig.debug
@@ -6,6 +6,20 @@ config FRAME_POINTER
bool
default y
+config STRICT_DEVMEM
+ bool "Filter access to /dev/mem"
+ depends on MMU
+ help
+ If this option is disabled, you allow userspace (root) access to all
+ of memory, including kernel and userspace memory. Accidental
+ access to this is obviously disastrous, but specific access can
+ be used by people debugging the kernel.
+
+ If this option is switched on, the /dev/mem file only allows
+ userspace access to memory mapped peripherals.
+
+ If in doubt, say Y.
+
config EARLY_PRINTK
bool "Early printk support"
default y
--
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
hosted by The Linux Foundation
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] arm64: Add missing Kconfig for CONFIG_STRICT_DEVMEM
2014-04-05 0:30 [PATCH] arm64: Add missing Kconfig for CONFIG_STRICT_DEVMEM Laura Abbott
@ 2014-04-07 16:35 ` Catalin Marinas
0 siblings, 0 replies; 2+ messages in thread
From: Catalin Marinas @ 2014-04-07 16:35 UTC (permalink / raw)
To: linux-arm-kernel
On Sat, Apr 05, 2014 at 01:30:50AM +0100, Laura Abbott wrote:
> The Kconfig for CONFIG_STRICT_DEVMEM is missing despite being
> used in mmap.c. Add it.
>
> Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
Thanks. Applied.
--
Catalin
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-04-07 16:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-05 0:30 [PATCH] arm64: Add missing Kconfig for CONFIG_STRICT_DEVMEM Laura Abbott
2014-04-07 16:35 ` Catalin Marinas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).