From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 4KY5CJ00+mJPLQAAbAwnHQ (envelope-from ) for ; Mon, 15 Aug 2022 13:57:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id IMRpB500+mJdPgAAG6o9tA (envelope-from ) for ; Mon, 15 Aug 2022 13:57:17 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C13A99B3E for ; Mon, 15 Aug 2022 13:57:16 +0200 (CEST) Received: from localhost ([::1]:55188 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oNYiX-0008Oj-Pb for larch@yhetil.org; Mon, 15 Aug 2022 07:57:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34274) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNYiM-0008Mg-Kr for bug-guix@gnu.org; Mon, 15 Aug 2022 07:57:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:51334) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oNYiM-0003l5-Bh for bug-guix@gnu.org; Mon, 15 Aug 2022 07:57:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oNYiM-0007BA-5O for bug-guix@gnu.org; Mon, 15 Aug 2022 07:57:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#57222: Guix Tor service needs a little more authority Resent-From: Tobias Geerinckx-Rice Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 15 Aug 2022 11:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57222 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 57222@debbugs.gnu.org X-Debbugs-Original-To: Bug reports for GNU Guix Received: via spool by submit@debbugs.gnu.org id=B.166056460727571 (code B ref -1); Mon, 15 Aug 2022 11:57:02 +0000 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) 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" Reply-to: Tobias Geerinckx-Rice From: Tobias Geerinckx-Rice via Bug reports for GNU Guix X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1660564636; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=4e3oV0P5p9x9TYvGsI0whewnq6I+PZnlUNwlrwGXS5s=; b=cnIWW7IBAE9IBpU9XObPuQq2PIgriOdXwzskvycmMsCZOVYKADUMdaYPhv4VUQq0/Gpc/N u6tndGy0NylIAbkjV4d2AyBsz0eAjT0Q64bUmmO36ZdrS1QvOzibk1Es9BtUU6ZUo3UzvN 0Ycp9zNvvuV7YGHZrUs/5TcpDjnY/oz+3I9jNagMgKkXAXoTkQzLxZr2NUTUn/dL4/GSx/ tn3JAhc4NOcV3TVX0AcPaCvvyMEaJF4PenSXQ025DcVKaEC8NCe7o1+fIlL8d6gAfHuPKu 3EegoBumSKodg/AWxilDkV5yKh0N5BDn29zUSDjKPKyova41hy7WIOVSVylmaQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1660564636; a=rsa-sha256; cv=none; b=nC40DVX46V1g6LIYhEVpeKwDVZl8EuQA/CoTPUzWjiqWlrLVOLOgvDZ7PbblthMy55Vpxn MGd2tR9XxR4A4YAUWUORcNOxGwbIwOJg/sFf/D0/hckvrJGcDd2IKHry3ZQDW5vRN7Oizl cwgncj/UmSKwKnHIPVzLLxVx91Nj1n+RJYeO73VBeF8+bk9j5x2+z5cBpSKxT7TkNMbqV4 YGrOl2Og2fqc69KMUNW3VoS16ZMNCJHDL4dddnR7BT7UFWnPO26+5S8IVRy9VGMdwXu10g gpo6XRzZ8GA1lb+eF8lw9+S8SDnKM8cXmqzPwqedlZS/fSXx1lIua78qr1T6cQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tobias.gr header.s=2018 header.b=j7djcTlF; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.16 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tobias.gr header.s=2018 header.b=j7djcTlF; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: C13A99B3E X-Spam-Score: -5.16 X-Migadu-Scanner: scn1.migadu.com X-TUID: jia0hzrHjqtb --=-=-= 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----- --=-=-=--