linux-brain/drivers/staging/greybus
Johan Hovold 51a5e5e93c staging: greybus: uart: fix unprivileged TIOCCSERIAL
[ Upstream commit 60c6b305c11b5fd167ce5e2ce42f3a9098c388f0 ]

TIOCSSERIAL is a horrid, underspecified, legacy interface which for most
serial devices is only useful for setting the close_delay and
closing_wait parameters.

A non-privileged user has only ever been able to set the since long
deprecated ASYNC_SPD flags and trying to change any other *supported*
feature should result in -EPERM being returned. Setting the current
values for any supported features should return success.

Fix the greybus implementation which instead indicated that the
TIOCSSERIAL ioctl was not even implemented when a non-privileged user
set the current values.

Fixes: e68453ed28 ("greybus: uart-gb: now builds, more framework added")
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/20210407102334.32361-7-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-05-14 09:44:20 +02:00
..
Documentation
tools staging: greybus: loopback_test: fix potential path truncations 2020-03-25 08:25:59 +01:00
Kconfig
Makefile
TODO
arche-apb-ctrl.c
arche-platform.c
arche_platform.h
audio_apbridgea.c
audio_apbridgea.h
audio_codec.c staging: greybus: codecs: Fix reference counter leak in error handling 2020-12-30 11:51:07 +01:00
audio_codec.h
audio_gb.c
audio_manager.c
audio_manager.h
audio_manager_module.c
audio_manager_private.h
audio_manager_sysfs.c
audio_module.c
audio_topology.c staging: greybus: audio: fix uninitialized value issue 2020-09-17 13:47:55 +02:00
authentication.c
bootrom.c
camera.c
firmware.h
fw-core.c
fw-download.c
fw-management.c
gb-camera.h
gbphy.c
gbphy.h
gpio.c
greybus_authentication.h
greybus_firmware.h
hid.c
i2c.c
light.c staging: greybus: fix a missing-check bug in gb_lights_light_config() 2020-06-24 17:50:20 +02:00
log.c
loopback.c
power_supply.c
pwm.c
raw.c
sdio.c staging: greybus: sdio: Respect the cmd->busy_timeout from the mmc core 2020-06-22 09:31:09 +02:00
spi.c
spilib.c
spilib.h
uart.c staging: greybus: uart: fix unprivileged TIOCCSERIAL 2021-05-14 09:44:20 +02:00
usb.c
vibrator.c