net: align SO_RCVMARK required privileges with SO_MARK
authorEyal Birger <eyal.birger@gmail.com>
Wed, 4 May 2022 09:54:59 +0000 (12:54 +0300)
committerJakub Kicinski <kuba@kernel.org>
Thu, 5 May 2022 22:48:17 +0000 (15:48 -0700)
commit1f86123b97491cc2b5071d7f9933f0e91890c976
tree2ebbd86073da540b458013d160833ae5dc7342e8
parentc4a67a21a6d255ddcbaa076c0412aad73c7e0c02
net: align SO_RCVMARK required privileges with SO_MARK

The commit referenced in the "Fixes" tag added the SO_RCVMARK socket
option for receiving the skb mark in the ancillary data.

Since this is a new capability, and exposes admin configured details
regarding the underlying network setup to sockets, let's align the
needed capabilities with those of SO_MARK.

Fixes: 6fd1d51cfa25 ("net: SO_RCVMARK socket option for SO_MARK with recvmsg()")
Signed-off-by: Eyal Birger <eyal.birger@gmail.com>
Link: https://lore.kernel.org/r/20220504095459.2663513-1-eyal.birger@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/sock.c