Merge branch 'linux-linaro-lsk' into linux-linaro-lsk-android
[firefly-linux-kernel-4.4.55.git] / 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