diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2015-02-26 23:19:00 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-02-28 21:14:44 +0100 |
commit | 505ce4154ac86c250aa4a84a536dd9fc56479bb5 (patch) | |
tree | 857c9f8d321d1413d001081def142ae648b0f409 /drivers | |
parent | drivers: net: cpsw: Set SECURE for dual_emac ucast (diff) | |
download | linux-505ce4154ac86c250aa4a84a536dd9fc56479bb5.tar.xz linux-505ce4154ac86c250aa4a84a536dd9fc56479bb5.zip |
net: Verify permission to dest_net in newlink
When applicable verify that the caller has permision to create a
network device in another network namespace. This check is already
present when moving a network device between network namespaces in
setlink so all that is needed is to duplicate that check in newlink.
This change almost backports cleanly, but there are context conflicts
as the code that follows was added in v4.0-rc1
Fixes: b51642f6d77b net: Enable a userns root rtnl calls that are safe for unprivilged users
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Acked-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions