From: Daniel Golle Date: Wed, 8 Sep 2021 00:39:18 +0000 (+0100) Subject: Revert "jail: do not hack /etc/resolv.conf on container rootfs" X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=482d1ab85fc3ced40690253062cd7f30da2eb0f9;p=project%2Fprocd.git Revert "jail: do not hack /etc/resolv.conf on container rootfs" This reverts commit b0a8ea1c3fa844d1006764fae3f0d8382351313b. --- 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);