From unknown Fri Jun 20 07:23:28 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#57222 <57222@debbugs.gnu.org> To: bug#57222 <57222@debbugs.gnu.org> Subject: Status: Guix Tor service needs a little more authority Reply-To: bug#57222 <57222@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:23:28 +0000 retitle 57222 Guix Tor service needs a little more authority reassign 57222 guix submitter 57222 Tobias Geerinckx-Rice severity 57222 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 15 07:56:47 2022 Received: (at submit) by debbugs.gnu.org; 15 Aug 2022 11:56:47 +0000 Received: from localhost ([127.0.0.1]:41083 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNYi6-0007Ad-Nr for submit@debbugs.gnu.org; Mon, 15 Aug 2022 07:56:46 -0400 Received: from lists.gnu.org ([209.51.188.17]:42092) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNYi1-0007AS-EP for submit@debbugs.gnu.org; Mon, 15 Aug 2022 07:56:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34240) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNYi0-00086S-JO for bug-guix@gnu.org; Mon, 15 Aug 2022 07:56:41 -0400 Received: from tobias.gr ([2a02:c205:2020:6054::1]:56810) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNYhy-0003eW-Ff for bug-guix@gnu.org; Mon, 15 Aug 2022 07:56:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=4e3oV0P5p9x9T YvGsI0whewnq6I+PZnlUNwlrwGXS5s=; h=date:subject:to:from; d=tobias.gr; b=j7djcTlFedBUJM/m+oUn0GJLWDzyCryv8BtTyFt4CW+Px12V1awHYZmIcwtfZT0xSEgB WELbRPxwhkLpPSJ9XjALFtFO4+3rtku9PKlmlAAMClio6/gvW2CKMJEc9ECDulidF6T8GR zUb+d/N8UWSO6lLsBZG8cAoRWQOLS1WzNrc9Uh5bBuDJRZGyv/eMkSxRVkQIgSqhmyZI/2 6csn/B3MSfHNmxiiPGnqbxqaqY6dpVY/ouiRRc7JTdcSspLBtppDsaUhNxnkfh9tRIQtWk teKJV13GDXNv/F+A6VoOFbB0+9pXJx1omSwXOj1yvRVMC3KPVlvab1dRE8z2/jfg== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 50fd18ca (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO) for ; Mon, 15 Aug 2022 11:56:32 +0000 (UTC) From: Tobias Geerinckx-Rice To: Bug reports for GNU Guix Subject: Guix Tor service needs a little more authority Date: Mon, 15 Aug 2022 13:15:30 +0200 BIMI-Selector: v=BIMI1; s=default; Message-ID: <87sflxhg98.fsf@nckx> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=2a02:c205:2020:6054::1; envelope-from=me@tobias.gr; helo=tobias.gr X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Hi all, I recently found my Tor nodes dead, unable to bind to their port=20 with a confusing =E2=80=98permission denied=E2=80=99 error. This was caused by a regression in Guix's Tor service: it now uses=20 =E2=80=98least-authority-wrapper=E2=80=99, meaning that it=E2=80=A6 well, h= asn't the=20 authority to bind to all ports. Oops. Even today, (some, well-known) low ports are firewalled/flagged=20 noticeably less than higher ones. Thankfully, DPI isn't the norm=20 yet. Reverting commit fb868cd7794f15e21298e5bdea996fbf0dad17ca fixes=20 this. Our service wasn't insecure before: Tor expects to be started as=20 root and drop privileges through the torrc =E2=80=98User=E2=80=99 directive= , not=20 the way Guix now does it through namespaces. Still, I'll take a stab at relaxing the service's POLA parameters=20 to allow this, hoping to get the best of both worlds, but this is=20 new territory to me. Maybe that's not possible. Kind regards, T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIMEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCYvo0cw0cbWVAdG9iaWFz LmdyAAoJEA2w/4hPVW15gw0BAJIChj6smvZ2VF3KKxxtdkoiplDCLttKGgZAivH3 NjRuAP9UuAWrCwjnIEziQK9BP1BU8mUQgIVepvfVjXfeGKtDCw== =fRty -----END PGP SIGNATURE----- --=-=-=--