char: lack of bool string made CONFIG_DEVPORT always on
PATCH 1/1 char: lack of bool string made CONFIG_DEVPORT always on
From: Max Bires <[email protected]>
Without a bool string present, using "# CONFIG_DEVPORT is not set" in defconfig files would not actually unset devport. This ensured that /dev/port was always on, but there are reasons a user may wish to disable it (smaller kernel, attack surface reduction) if it's not being used. Adding a message here in order to make this user visible.
--- drivers/char/Kconfig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/char/Kconfig +4 -1
@@ -589,10 +589,13 @@ config TELCLOCK controlling the behavior of this hardware. config DEVPORT - bool + bool "/dev/port character device" depends on !M68K depends on ISA || PCI default y + help + Say Y here if you want to support the /dev/port device. The + /dev/port device is similar to /dev/mem, but for I/O ports. config DCC_TTY tristate "DCC tty driver"
Signature · 1 line
2.8.0.rc3.226.g39d4020
Greg KH
maintainerQuoted 19 lines · Max
From: Max Bires <[email protected]>
Without a bool string present, using "#
CONFIG_DEVPORTis not set" in defconfig files would not actually unset devport. This ensured that/dev/portwas always on, but there are reasons a user may wish to disable it (smaller kernel, attack surface reduction) if it's not being used. Adding a message here in order to make this user visible.Signed-off-by Max Bires <[email protected]>--- drivers/char/Kconfig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)drivers/char/Kconfig +0
-0@@ -589,10 +589,13 @@ config TELCLOCK controlling the behavior of this hardware.
drivers/char/Kconfig config TELCLOCK · line 598
Quoted 10 lines
drivers/char/Kconfig +4
-1config DEVPORT - bool + bool "/dev/port character device" depends on !M68K depends on ISA || PCI default y + help + Say Y here if you want to support the /dev/port device. The + /dev/port device is similar to /dev/mem, but for I/O ports.
Hm, did you look at how the indentation for all of the help entries are in this file? Please match it up to be the same...
Other than that, this looks much better, the format and style of the submission was fine.
thanks,
greg k-h
PATCH 1/1 char: lack of bool string made CONFIG_DEVPORT always on
Without a bool string present, using "# CONFIG_DEVPORT is not set" in defconfig files would not actually unset devport. This ensured that /dev/port was always on, but there are reasons a user may wish to disable it (smaller kernel, attack surface reduction) if it's not being used. Adding a message here in order to make this user visible.
--- drivers/char/Kconfig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/char/Kconfig +4 -1
@@ -589,10 +589,13 @@ config TELCLOCK controlling the behavior of this hardware. config DEVPORT - bool + bool "/dev/port character device" depends on !M68K depends on ISA || PCI default y + help + Say Y here if you want to support the /dev/port device. The + /dev/port device is similar to /dev/mem, but for I/O ports. config DCC_TTY tristate "DCC tty driver"
Signature · 1 line
2.8.0.rc3.226.g39d4020
Quoted 17 lines · Max
Without a bool string present, using "#
CONFIG_DEVPORTis not set" in defconfig files would not actually unset devport. This ensured that/dev/portwas always on, but there are reasons a user may wish to disable it (smaller kernel, attack surface reduction) if it's not being used. Adding a message here in order to make this user visible.Signed-off-by Max Bires <[email protected]>--- drivers/char/Kconfig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)drivers/char/Kconfig +0
-0
drivers/char/Kconfig config TELCLOCK · line 592
Quoted 5 lines
drivers/char/Kconfig +1
-1@@ -589,10 +589,13 @@ config TELCLOCK controlling the behavior of this hardware. config DEVPORT - bool + bool "/dev/port character device"
bool "/dev/port character device" if EXPERT?
drivers/char/Kconfig config TELCLOCK · line 598
Quoted 6 lines
drivers/char/Kconfig +3
-0depends on !M68K depends on ISA || PCI default y + help + Say Y here if you want to support the /dev/port device. The + /dev/port device is similar to /dev/mem, but for I/O ports.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Arnd Bergmann
maintainerQuoted 11 lines · CET Geert Uytterhoeven
drivers/char/Kconfig config TELCLOCK · line 592
Quoted 9 lines
drivers/char/Kconfig +1
-1@@ -589,10 +589,13 @@ config TELCLOCK controlling the behavior of this hardware. config DEVPORT - bool + bool "/dev/port character device"bool "
/dev/portcharacter device" if EXPERT?
I think the 'default y' is good enough, there are good reasons even for non-EXPERT configurations to turn this off.
Arnd
Quoted 7 lines · Arnd Bergmann
Quoted 6 lines · CET Geert Uytterhoeven
Quoted 6 lines
drivers/char/Kconfig +0
-0@@ -589,10 +589,13 @@ config TELCLOCK controlling the behavior of this hardware.
Quoted 8 lines
Quoted 5 lines
drivers/char/Kconfig config TELCLOCK · line 592
Quoted 3 lines
drivers/char/Kconfig +1
-1config DEVPORT - bool + bool "/dev/port character device"bool "
/dev/portcharacter device" if EXPERT?I think the 'default y' is good enough, there are good reasons even for non-EXPERT configurations to turn this off.
Agreed. /dev/port seems like something the majority of modern systems can safely turn off.
A message that is not in the archive (sent off-list or not yet received): CALVgH4S9b7JJj0wbR1N9Bd4tJB-CqJWfm_SPXv3z-m7U372ZmA@mail.gmail.com
Quoted 3 lines · CET Max Bires
So this is fine as is then? Just making sure that outside of the development tree being closed for now that this patch is good to go now that space/tab formatting is fixed.
Yes, the change is fine, please add my
Note two details:
- Please avoid top-posting in emails as you did here
- In your patch submission the sender is listed as "Max" without a last name, while your Signed-off-by line contains your full name. As the sender gets used as the author tag, please resubmit the patch with your full name as sender or add a separate "From: " line at the beginning of the mail. Git format-patch/send-email gets this right as long as your git configuration has your full name.
Arnd
PATCH 1/1 char: lack of bool string made CONFIG_DEVPORT always on
In reply to MaxWithout a bool string present, using "# CONFIG_DEVPORT is not set" in defconfig files would not actually unset devport. This ensured that /dev/port was always on, but there are reasons a user may wish to disable it (smaller kernel, attack surface reduction) if it's not being used. Adding a message here in order to make this user visible.
--- drivers/char/Kconfig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/char/Kconfig +4 -1
@@ -589,10 +589,13 @@ config TELCLOCK controlling the behavior of this hardware. config DEVPORT - bool + bool "/dev/port character device" depends on !M68K depends on ISA || PCI default y + help + Say Y here if you want to support the /dev/port device. The + /dev/port device is similar to /dev/mem, but for I/O ports. config DCC_TTY tristate "DCC tty driver"
Signature · 1 line
2.8.0.rc3.226.g39d4020
Greg KH
maintainerQuoted 21 lines · Max Bires
Without a bool string present, using "#
CONFIG_DEVPORTis not set" in defconfig files would not actually unset devport. This ensured that/dev/portwas always on, but there are reasons a user may wish to disable it (smaller kernel, attack surface reduction) if it's not being used. Adding a message here in order to make this user visible.Signed-off-by Max Bires <[email protected]>Acked-by Arnd Bergmann <[email protected]>--- drivers/char/Kconfig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)drivers/char/Kconfig +0
-1@@ -589,10 +589,13 @@ config TELCLOCK controlling the behavior of this hardware. config DEVPORT - bool
drivers/char/Kconfig config TELCLOCK · line 601
Quoted 10 lines
drivers/char/Kconfig +4
-0+ bool "/dev/port character device" depends on !M68K depends on ISA || PCI default y + help + Say Y here if you want to support the /dev/port device. The + /dev/port device is similar to /dev/mem, but for I/O ports. config DCC_TTY tristate "DCC tty driver"
This does not apply at all to 4.10-rc2, what did you make it against? Please redo it so that I can actually apply it...
thanks,
greg k-h
PATCH 1/1 Without a bool string present, using "# CONFIG_DEVPORT is not set" in defconfig files would not actually unset devport. This esnured that /dev/port was always on, but there are reasons a user may wish to disable it (smaller kernel, attack surface reduction) if it's not being used. Adding a message here in order to make this user visible.
In reply to Max--- drivers/char/Kconfig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/char/Kconfig +4 -1
@@ -571,9 +571,12 @@ config TELCLOCK controlling the behavior of this hardware. config DEVPORT - bool + bool "/dev/port character device" depends on ISA || PCI default y + help + Say Y here if you want to support the /dev/port device. The /dev/port + device is similar to /dev/mem, but for I/O ports. source "drivers/s390/char/Kconfig"
Signature · 1 line
2.8.0.rc3.226.g39d4020
Greg KH
maintainerRe: [PATCH] Without a bool string present, using "# CONFIG_DEVPORT is not set" in defconfig files would not actually unset devport. This esnured that /dev/port was always on, but there are reasons a user may wish to disable it (smaller kernel, attack surface reduction) if it's not being used. Adding a message here in order to make this user visible.
Quoted 5 lines · Max Bires
Signed-off-by Max Bires <[email protected]>Acked-by Arnd Bergmann <[email protected]>--- drivers/char/Kconfig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
Odd subject line :(
PATCH 1/1 char: lack of bool string made CONFIG_DEVPORT always on
In reply to Max BiresWithout a bool string present, using "# CONFIG_DEVPORT is not set" in defconfig files would not actually unset devport. This esnured that /dev/port was always on, but there are reasons a user may wish to disable it (smaller kernel, attack surface reduction) if it's not being used. Adding a message here in order to make this user visible.
--- drivers/char/Kconfig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/char/Kconfig +4 -1
@@ -571,9 +571,12 @@ config TELCLOCK controlling the behavior of this hardware. config DEVPORT - bool + bool "/dev/port character device" depends on ISA || PCI default y + help + Say Y here if you want to support the /dev/port device. The /dev/port + device is similar to /dev/mem, but for I/O ports. source "drivers/s390/char/Kconfig"
Signature · 1 line
2.8.0.rc3.226.g39d4020