path: root/security/lockdown/lockdown.c
diff options
authorDavid Howells <>2019-08-19 17:17:54 -0700
committerJames Morris <>2019-08-19 21:54:16 -0700
commit794edf30ee6cd088d5f4079b1d4a4cfe5371203e (patch)
tree334e6911930274ad592b1620fc0a385f2d532835 /security/lockdown/lockdown.c
parent3f19cad3fa0d0fff18ee126f03a80420ae7bcbc9 (diff)
lockdown: Lock down TIOCSSERIAL
Lock down TIOCSSERIAL as that can be used to change the ioport and irq settings on a serial port. This only appears to be an issue for the serial drivers that use the core serial code. All other drivers seem to either ignore attempts to change port/irq or give an error. Reported-by: Greg Kroah-Hartman <> Signed-off-by: David Howells <> Signed-off-by: Matthew Garrett <> Reviewed-by: Kees Cook <> cc: Jiri Slaby <> Cc: Signed-off-by: James Morris <>
Diffstat (limited to 'security/lockdown/lockdown.c')
1 files changed, 1 insertions, 0 deletions
diff --git a/security/lockdown/lockdown.c b/security/lockdown/lockdown.c
index db3477585972..771c77f9c04a 100644
--- a/security/lockdown/lockdown.c
+++ b/security/lockdown/lockdown.c
@@ -27,6 +27,7 @@ static char *lockdown_reasons[LOCKDOWN_CONFIDENTIALITY_MAX+1] = {
[LOCKDOWN_MSR] = "raw MSR access",
[LOCKDOWN_ACPI_TABLES] = "modifying ACPI tables",
[LOCKDOWN_PCMCIA_CIS] = "direct PCMCIA CIS storage",
+ [LOCKDOWN_TIOCSSERIAL] = "reconfiguration of serial port IO",