The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxc/pull/1834
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) === Fix issue #538, do not close the inherit namespace fds. Signed-off-by: LiFeng <lifen...@huawei.com>
From e30756bc3519b64e9b165e34415fbefc12365f6d Mon Sep 17 00:00:00 2001 From: LiFeng <lifen...@huawei.com> Date: Fri, 29 Sep 2017 00:23:30 +0800 Subject: [PATCH] Fix issue #538 Do not close the inherit namespace fds Signed-off-by: LiFeng <lifen...@huawei.com> --- src/lxc/start.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/lxc/start.c b/src/lxc/start.c index 3baed693a..a33b81d38 100644 --- a/src/lxc/start.c +++ b/src/lxc/start.c @@ -236,6 +236,15 @@ int lxc_check_inherited(struct lxc_conf *conf, bool closeall, (i < len_fds && fd == fds_to_ignore[i])) continue; + if (conf) { + for (i = 0; i < LXC_NS_MAX; i++) + if (conf->inherit_ns_fd[i] == fd) + break; + } + + if (i < LXC_NS_MAX) + continue; + if (current_config && fd == current_config->logfd) continue;
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel