From nobody Mon Mar 06 15:47:41 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PVjcm1Th9z3x2nf for ; Mon, 6 Mar 2023 15:47:04 +0000 (UTC) (envelope-from ihor@antonovs.family) Received: from mail.antonovs.family (mail.antonovs.family [100.25.240.195]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.antonovs.family", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PVjck5YX4z3rvD for ; Mon, 6 Mar 2023 15:47:02 +0000 (UTC) (envelope-from ihor@antonovs.family) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=antonovs.family header.s=20200215 header.b=oEujczm4; spf=pass (mx1.freebsd.org: domain of ihor@antonovs.family designates 100.25.240.195 as permitted sender) smtp.mailfrom=ihor@antonovs.family; dmarc=pass (policy=none) header.from=antonovs.family DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=antonovs.family; s=20200215; t=1678117618; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wEbfQYeGAQEN5GQu5pEeO1E9TipyU318neR6BV0+mws=; b=oEujczm4bEgidW+IICDjQs+WWTXdds7KemeGQ0SkJFf3itEMOvs1QX6ez1TYoA7MwWPhTa jV0Z2xuUQHcNvD3j6MMgCQGlDJ6K1kxHj91LnWAoMO+ZW5r3+MG9NvuArccq4wJfVLZ/DH nvwDHvBYpa+fGHrGuBHKgIz3HytTnFQ= Received: by mail.antonovs.family (OpenSMTPD) with ESMTPSA id 1f5434cd (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Mon, 6 Mar 2023 15:46:57 +0000 (UTC) Message-ID: <870e0444-b915-d286-9a1a-4b7ffffcec2a@antonovs.family> Date: Mon, 6 Mar 2023 07:47:41 -0800 List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: git: 1d577bedbae8 - main - unbound: Fix config file path Content-Language: en-US To: dev-commits-src-all@freebsd.org References: <202303031402.323E2FEN066412@gndrsh.dnsmgr.net> <86mt4psxfw.fsf@ltc.des.no> From: Ihor Antonov In-Reply-To: <86mt4psxfw.fsf@ltc.des.no> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[antonovs.family,none]; R_SPF_ALLOW(-0.20)[+mx]; R_DKIM_ALLOW(-0.20)[antonovs.family:s=20200215]; MIME_GOOD(-0.10)[text/plain]; DKIM_TRACE(0.00)[antonovs.family:+]; ASN(0.00)[asn:14618, ipnet:100.24.0.0/13, country:US]; MLMMJ_DEST(0.00)[dev-commits-src-all@freebsd.org]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_NONE(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[dev-commits-src-all@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Queue-Id: 4PVjck5YX4z3rvD X-Spamd-Bar: ---- X-ThisMailContainsUnwantedMimeParts: N On 3/6/23 07:37, Dag-Erling Smørgrav wrote: > "Rodney W. Grimes" writes: >> "Dag-Erling Smørgrav writes: >>> No. Unbound knows it's chrooted, knows _where_ it's chrooted, and >>> adjusts config paths accordingly, cf. e4c53d3bf00a. >> We disagree then, rather strongly, about this issue. It should not >> know it is chrooted, and it especially should NOT adjust paths >> based on that fact. That is a POLA, and it is also hard coding >> POLICY into an executable. Almost certainly any path mangling >> done because it is chroot is going to break if I chroot it to >> some place very different. Seconding what DES said. Unbound has chrooting capability built-in, that can be configured via config file [1] and it does adjust paths to all other files if chroot is enabled. There is no POLA violation here, this is not a custom patch from FreeBSD, this is native unbound functionality. [1] https://nlnetlabs.nl/documentation/unbound/unbound.conf/ -- Ihor Antonov