]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
staging: fwserial: fix TIOCSSERIAL permission check
authorJohan Hovold <johan@kernel.org>
Wed, 7 Apr 2021 10:23:20 +0000 (12:23 +0200)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 26 May 2021 13:39:03 +0000 (15:39 +0200)
commit25860115537b4f77ccf638fb61c09a8d6841a561
treecd35f9cea5f804c27294d610dcced29fa3d1a9f0
parentc70c0e107fc8573ac60e24f491728273e94d8437
staging: fwserial: fix TIOCSSERIAL permission check

BugLink: https://bugs.launchpad.net/bugs/1929615
commit 2104eb283df66a482b60254299acbe3c68c03412 upstream.

Changing the port close-delay parameter is a privileged operation so
make sure to return -EPERM if a regular user tries to change it.

Fixes: 7355ba3445f2 ("staging: fwserial: Add TTY-over-Firewire serial driver")
Cc: stable@vger.kernel.org # 3.8
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/20210407102334.32361-3-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/staging/fwserial/fwserial.c