diff options
author | Johan Hovold <johan@kernel.org> | 2021-04-07 13:23:29 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-04-07 18:22:07 +0300 |
commit | dc8c8437658667be9b11ec25c4b5482ed2becdaa (patch) | |
tree | d26574381e2d997c7c8b8a3a36949ae66322562a /fs/sysfs | |
parent | 6e70b73ca5240c0059a1fbf8ccd4276d6cf71956 (diff) | |
download | linux-dc8c8437658667be9b11ec25c4b5482ed2becdaa.tar.xz |
tty: moxa: fix TIOCSSERIAL permission check
Changing the port close delay or type are privileged operations so make
sure to return -EPERM if a regular user tries to change them.
Cc: stable@vger.kernel.org
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/20210407102334.32361-12-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/sysfs')
0 files changed, 0 insertions, 0 deletions