Skip to content

Commit

Permalink
adding warning for mtu ignoring
Browse files Browse the repository at this point in the history
Signed-off-by: Shane Chen <ss1ha3tw@gmail.com>
  • Loading branch information
ss1h2a3tw authored and stgraber committed Aug 15, 2017
1 parent 6def432 commit 1f561a9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lxc/conf.c
Expand Up @@ -3549,6 +3549,10 @@ int lxc_assign_network(struct lxc_list *network, pid_t pid)
if (netdev->type == LXC_NET_VETH && !am_root) {
if (unpriv_assign_nic(netdev, pid))
return -1;

if (netdev->mtu)
INFO("mtu ignored due to insufficient privilege");

// lxc-user-nic has moved the nic to the new ns.
// unpriv_assign_nic() fills in netdev->name.
// netdev->ifindex will be filed in at setup_netdev.
Expand Down

0 comments on commit 1f561a9

Please sign in to comment.