Hello all, We have following issues reported on can-utils: https://github.com/linux-can/can-utils/issues/217 =============================================================================== This is a follow-up of the issue #159 . When testing the priorities, I noticed, that for the priorities 0 and 1, the message occurs, that setting the priority is not permitted: ./testj1939 -B -s -p3 vcan0:0x80 :,0x0200 Works ok. ./testj1939 -B -s -p1 vcan0:0x80 :,0x0200 testj1939: set priority 1: Operation not permitted ./testj1939 -B -s -p0 vcan0:0x80 :,0x0200 testj1939: set priority 0: Operation not permitted I am not aware that the priorities 0 & 1 are not permitted. > Originally posted by @marckleinebudde in #159 (comment): > Priorities 0 and 1 are only permitted for root or users with > capable(CAP_NET_ADMIN), see: > https://elixir.bootlin.com/linux/latest/source/net/can/j1939/socket.c#L705 > I think this limit is arbitrary and we can discuss if > this makes sense at all or add this to the > documentation. =============================================================================== Since I currently have no opinion on, I put it here for the discussion. Comments and suggestions are welcome. Regards, Oleksij -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Attachment:
signature.asc
Description: PGP signature