diff options
author | Cédric Le Goater <clg@kaod.org> | 2018-10-12 11:07:23 +0300 |
---|---|---|
committer | Joel Stanley <joel@jms.id.au> | 2021-11-01 09:42:41 +0300 |
commit | 6c0e684bb23b893ecbd8de07fc0a1f631f4952b0 (patch) | |
tree | 10f27f29743a9e083178d59f85ffddbffd18b2a4 /drivers/char/Kconfig | |
parent | fc65026a277d99279e4486f916d937fce8f01798 (diff) | |
download | linux-6c0e684bb23b893ecbd8de07fc0a1f631f4952b0.tar.xz |
/dev/mem: add a devmem kernel parameter to activate the device
For security reasons, some configuration needs to run without /dev/mem
but on some occasions, to debug HW for instance, it's still useful to
be able to reboot the system with access to physical memory.
Add a kernel parameter which activates the /dev/mem device only when
'mem.devmem' is enabled.
OpenBMC-Staging-Count: 12
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Joel Stanley <joel@jms.id.au>
Diffstat (limited to 'drivers/char/Kconfig')
-rw-r--r-- | drivers/char/Kconfig | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/char/Kconfig b/drivers/char/Kconfig index 740811893c57..9d9e7f4a2db7 100644 --- a/drivers/char/Kconfig +++ b/drivers/char/Kconfig @@ -321,6 +321,15 @@ config DEVMEM memory. When in doubt, say "Y". +config DEVMEM_BOOTPARAM + bool "mem.devmem boot parameter" + depends on DEVMEM + default n + help + This option adds a 'mem.devmem' kernel parameter which activates + the /dev/mem device when enabled. + When in doubt, say "N". + config NVRAM tristate "/dev/nvram support" depends on X86 || HAVE_ARCH_NVRAM_OPS |