arm64: Add missing Kconfig for CONFIG_STRICT_DEVMEM
authorLaura Abbott <lauraa@codeaurora.org>
Sat, 5 Apr 2014 00:30:50 +0000 (01:30 +0100)
committerMark Brown <broonie@linaro.org>
Wed, 21 May 2014 18:07:47 +0000 (19:07 +0100)
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>
(cherry picked from commit d253b4406df69fa7a74231769d6f6ad80dc33063)
Signed-off-by: Mark Brown <broonie@linaro.org>
Conflicts:
arch/arm64/Kconfig.debug

arch/arm64/Kconfig.debug

index 1a6bfe954d4926de3a8dcee10fdbe0b0698279b3..e1b0c4601b3e88fd0035419ec970241acd22cc77 100644 (file)
@@ -13,6 +13,20 @@ config DEBUG_STACK_USAGE
          Enables the display of the minimum amount of free stack which each
          task has ever had available in the sysrq-T output.
 
+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