Skip to content

Commit

Permalink
arm64: Add missing Kconfig for CONFIG_STRICT_DEVMEM
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Laura Abbott authored and Catalin Marinas committed Apr 7, 2014
1 parent ff268ff commit d253b44
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions arch/arm64/Kconfig.debug
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d253b44

Please sign in to comment.