From 482d1ab85fc3ced40690253062cd7f30da2eb0f9 Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Wed, 8 Sep 2021 01:39:18 +0100 Subject: [PATCH] Revert "jail: do not hack /etc/resolv.conf on container rootfs" This reverts commit b0a8ea1c3fa844d1006764fae3f0d8382351313b. --- jail/jail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jail/jail.c b/jail/jail.c index daae87e..d294d31 100644 --- a/jail/jail.c +++ b/jail/jail.c @@ -726,7 +726,7 @@ static int build_jail_fs(void) create_dev_console(jail_root); /* make sure /etc/resolv.conf exists if in new network namespace */ - if (!opts.extroot && opts.namespace & CLONE_NEWNET) { + if (opts.namespace & CLONE_NEWNET) { char jailetc[PATH_MAX], jaillink[PATH_MAX]; snprintf(jailetc, PATH_MAX, "%s/etc", jail_root); -- 2.30.2