lkml.org 
[lkml]   [2011]   [Jul]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 1/2] Kconfig: Allow disabling of CONFIG_DEVPORT
    Date
    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@google.com>
    ---
    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


    \
     
     \ /
      Last update: 2011-07-14 22:37    [W:4.184 / U:0.028 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site