diff options
author | Johan Hovold <johan@kernel.org> | 2021-04-07 12:23:32 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-04-07 17:22:07 +0200 |
commit | b91cfb2573aeb5ab426fc3c35bcfe9e0d2a7ecbc (patch) | |
tree | de429538ba2ccfcaf6dcf262356ba186a52d89ec /drivers/char | |
parent | be6cf583d24dfe87324dd2830d90fc056e0a6648 (diff) | |
download | lwn-b91cfb2573aeb5ab426fc3c35bcfe9e0d2a7ecbc.tar.gz lwn-b91cfb2573aeb5ab426fc3c35bcfe9e0d2a7ecbc.zip |
tty: mxser: fix TIOCSSERIAL permission check
Changing the port type and closing_wait parameter are privileged
operations so make sure to return -EPERM if a regular user tries to
change them.
Note that the closing_wait parameter would not actually have been
changed but the return value did not indicate that.
Cc: stable@vger.kernel.org
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/20210407102334.32361-15-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/char')
0 files changed, 0 insertions, 0 deletions