Home
last modified time | relevance | path

Searched hist:"8292 d7f6e8712381a828eac2a19a610ce680c4dd" (Results 1 – 1 of 1) sorted by relevance

/linux/net/ipv4/
H A Ddevinet.cdiff 8292d7f6e8712381a828eac2a19a610ce680c4dd Tue Jul 20 03:43:28 CEST 2021 Yang Yang <yang.yang29@zte.com.cn> net: ipv4: add capability check for net administration

Root in init user namespace can modify /proc/sys/net/ipv4/ip_forward
without CAP_NET_ADMIN, this doesn't follow the principle of
capabilities. For example, let's take a look at netdev_store(),
root can't modify netdev attribute without CAP_NET_ADMIN.
So let's keep the consistency of permission check logic.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Yang Yang <yang.yang29@zte.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>