Re: [PATCH net] net: dcb: Validate netlink message in DCB handler

2020-12-23 Thread Jakub Kicinski
On Tue, 22 Dec 2020 22:49:44 +0100 Petr Machata wrote: > DCB uses the same handler function for both RTM_GETDCB and RTM_SETDCB > messages. dcb_doit() bounces RTM_SETDCB mesasges if the user does not have > the CAP_NET_ADMIN capability. > > However, the operation to be performed is not decided from

[PATCH net] net: dcb: Validate netlink message in DCB handler

2020-12-22 Thread Petr Machata
DCB uses the same handler function for both RTM_GETDCB and RTM_SETDCB messages. dcb_doit() bounces RTM_SETDCB mesasges if the user does not have the CAP_NET_ADMIN capability. However, the operation to be performed is not decided from the DCB message type, but from the DCB command. Thus DCB_CMD_*_G