diff options
author | Oliver Hartkopp <socketcan@hartkopp.net> | 2020-12-04 16:35:07 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2020-12-09 19:44:15 +0300 |
commit | 323a391a220c4a234cb1e678689d7f4c3b73f863 (patch) | |
tree | ae1119b3b9aa3c23f04c86be82de789f687e9626 /net/can/proc.c | |
parent | 72d05c00d7ecda85df29abd046da7e41cc071c17 (diff) | |
download | linux-323a391a220c4a234cb1e678689d7f4c3b73f863.tar.xz |
can: isotp: isotp_setsockopt(): block setsockopt on bound sockets
The isotp socket can be widely configured in its behaviour regarding addressing
types, fill-ups, receive pattern tests and link layer length. Usually all
these settings need to be fixed before bind() and can not be changed
afterwards.
This patch adds a check to enforce the common usage pattern.
Fixes: e057dd3fc20f ("can: add ISO 15765-2:2016 transport protocol")
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Tested-by: Thomas Wagner <thwa1@web.de>
Link: https://lore.kernel.org/r/20201203140604.25488-2-socketcan@hartkopp.net
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Link: https://lore.kernel.org/r/20201204133508.742120-3-mkl@pengutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/can/proc.c')
0 files changed, 0 insertions, 0 deletions