net: allow SO_MARK with CAP_NET_RAW via cmsg
authorJakub Kicinski <kuba@kernel.org>
Mon, 31 Jan 2022 23:33:57 +0000 (15:33 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 2 Feb 2022 03:59:50 +0000 (19:59 -0800)
commit91f0d8a4813a9a50404b7c48a43fdc46fc77d235
tree6e63511e7840cfb0a502b3ace521ac59dd5af9cf
parente4d2763f9aafd4a4780a85d4295bd4b1f5303217
net: allow SO_MARK with CAP_NET_RAW via cmsg

There's not reason SO_MARK would be allowed via setsockopt()
and not via cmsg, let's keep the two consistent. See
commit 079925cce1d0 ("net: allow SO_MARK with CAP_NET_RAW")
for justification why NET_RAW -> SO_MARK is safe.

Reviewed-by: Maciej Żenczykowski <maze@google.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://lore.kernel.org/r/20220131233357.52964-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/sock.c