summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorLaura Abbott <lauraa@codeaurora.org>2014-04-05 01:30:50 +0100
committerChanho Park <chanho61.park@samsung.com>2014-04-16 21:36:52 +0900
commit129ae0f364587d2a6b17db3f17910243e8a98912 (patch)
tree93857b0801a68b10e40983efa8feb0d7a359df28 /arch
parent947f2b1c543d62cfc876c5b1ce8e13d08181adf8 (diff)
downloadlinux-3.10-129ae0f364587d2a6b17db3f17910243e8a98912.tar.gz
linux-3.10-129ae0f364587d2a6b17db3f17910243e8a98912.tar.bz2
linux-3.10-129ae0f364587d2a6b17db3f17910243e8a98912.zip
arm64: Add missing Kconfig for CONFIG_STRICT_DEVMEM
The Kconfig for CONFIG_STRICT_DEVMEM is missing despite being used in mmap.c. Add it. Signed-off-by: Laura Abbott <lauraa@codeaurora.org> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm64/Kconfig.debug14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm64/Kconfig.debug b/arch/arm64/Kconfig.debug
index 835c559786b..d10ec334c93 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