]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
adding warning for mtu ignoring
authorShane Chen <ss1ha3tw@gmail.com>
Thu, 1 Jun 2017 05:36:41 +0000 (13:36 +0800)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 15 Aug 2017 22:03:19 +0000 (18:03 -0400)
Signed-off-by: Shane Chen <ss1ha3tw@gmail.com>
src/lxc/conf.c

index 1057ac9716cdb876b7c1db7ef5e3fba5fa3be5ba..d897756193ee2ea26a0977e627ac8d223a0240c4 100644 (file)
@@ -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.