The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxc/pull/1607

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===
Because of unprivileged container cannot set MTU by configuration,
Adding a warning can be better.
Closing https://github.com/lxc/lxc/issues/1602
Signed-off-by: Shane Chen <[email protected]>
From eba7822415bdea9a3a9fb88eb8440bb6a77a78f5 Mon Sep 17 00:00:00 2001
From: Shane Chen <[email protected]>
Date: Thu, 1 Jun 2017 13:36:41 +0800
Subject: [PATCH] adding warning for mtu ignoring

Signed-off-by: Shane Chen <[email protected]>
---
 src/lxc/conf.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/lxc/conf.c b/src/lxc/conf.c
index b65c4add8..d25a6525d 100644
--- a/src/lxc/conf.c
+++ b/src/lxc/conf.c
@@ -3351,6 +3351,8 @@ int lxc_assign_network(const char *lxcpath, char *lxcname,
                netdev = iterator->elem;
 
                if (netdev->type == LXC_NET_VETH && !am_root) {
+                       if (netdev->mtu)
+                               WARN("ignoring MTU due to unprivileged");
                        if (unpriv_assign_nic(lxcpath, lxcname, netdev, pid))
                                return -1;
                        // lxc-user-nic has moved the nic to the new ns.
_______________________________________________
lxc-devel mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to