|
@@ -2952,14 +2952,10 @@ replay:
|
|
|
name_assign_type = NET_NAME_ENUM;
|
|
|
}
|
|
|
|
|
|
- dest_net = rtnl_link_get_net(net, tb);
|
|
|
+ dest_net = rtnl_link_get_net_capable(skb, net, tb, CAP_NET_ADMIN);
|
|
|
if (IS_ERR(dest_net))
|
|
|
return PTR_ERR(dest_net);
|
|
|
|
|
|
- err = -EPERM;
|
|
|
- if (!netlink_ns_capable(skb, dest_net->user_ns, CAP_NET_ADMIN))
|
|
|
- goto out;
|
|
|
-
|
|
|
if (tb[IFLA_LINK_NETNSID]) {
|
|
|
int id = nla_get_s32(tb[IFLA_LINK_NETNSID]);
|
|
|
|