[PATCH 1/2] Kconfig: Allow disabling of CONFIG_DEVPORT

From: Mike Waychison
Date: Thu Jul 14 2011 - 16:35:36 EST


It would be useful to build kernels with disabled support of /dev/port
for systems where we do not want to allow an administrator to access IO
ports directly.

To do so however, CONFIG_DEVPORT needs to be user-selectable. Give this
configuration option a name and help description.

Google-Bug-Id: 3177114
Signed-off-by: Mike Waychison <mikew@xxxxxxxxxx>
---
drivers/char/Kconfig | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/drivers/char/Kconfig b/drivers/char/Kconfig
index 49502bc..12503f1 100644
--- a/drivers/char/Kconfig
+++ b/drivers/char/Kconfig
@@ -593,10 +593,15 @@ config TELCLOCK
controlling the behavior of this hardware.

config DEVPORT
- bool
+ bool "Support for /dev/port"
depends on !M68K
depends on ISA || PCI
default y
+ help
+ Enabling this option allows for access to the /dev/port
+ character device. This device maps IO ports onto a file
+ interface, so that users with sufficient privilege can read
+ and write to IO ports directly. If unsure, say yes.

source "drivers/s390/char/Kconfig"

--
1.7.3.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/