From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id OCYREz4xX2KrHwEAbAwnHQ (envelope-from ) for ; Wed, 20 Apr 2022 00:01:34 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id oBk5Ej4xX2JuhgEAG6o9tA (envelope-from ) for ; Wed, 20 Apr 2022 00:01:34 +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 76275CF12 for ; Wed, 20 Apr 2022 00:01:33 +0200 (CEST) Received: from localhost ([::1]:54318 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ngvue-00014y-8P for larch@yhetil.org; Tue, 19 Apr 2022 18:01:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55900) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngvuA-00013q-EB for guix-patches@gnu.org; Tue, 19 Apr 2022 18:01:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50450) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ngvu9-0005tl-W4 for guix-patches@gnu.org; Tue, 19 Apr 2022 18:01:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ngvu9-0003dr-U6 for guix-patches@gnu.org; Tue, 19 Apr 2022 18:01:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54997] [PATCH 00/12] Add "least authority" program wrapper Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 19 Apr 2022 22:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54997 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Maxime Devos Cc: 54997@debbugs.gnu.org Received: via spool by 54997-submit@debbugs.gnu.org id=B54997.165040560413840 (code B ref 54997); Tue, 19 Apr 2022 22:01:01 +0000 Received: (at 54997) by debbugs.gnu.org; 19 Apr 2022 22:00:04 +0000 Received: from localhost ([127.0.0.1]:44345 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngvtE-0003bA-3l for submit@debbugs.gnu.org; Tue, 19 Apr 2022 18:00:04 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34170) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngvtB-0003Zs-F9 for 54997@debbugs.gnu.org; Tue, 19 Apr 2022 18:00:02 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:50082) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngvt5-0005XN-8U; Tue, 19 Apr 2022 17:59:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=On7j6ZTRsaejUMj3ZNWWpZG9S9TcLZRnfWwB2TLN4L8=; b=dsHU0Fy7DS8E4LNNuUCU LU4nZ7dRuBSnvRq8Eg+R98gu3mv1ubrjXoOmLF26b6JtdAMF9wV8xtrTny4/4qIIPKJtzH4p69MIa BkN/Cj6xUi12G+d/jZGXuDsR8UwG6KGwj/TIca+TMuPeb8v8q3+1xtuohI2B2UG7tR6B+CqnBE5Ua 7a5KnkSBV41WMf7e83kFc/gqpMflApDBjNTyr1JKCvrRgzQIyvnfcpnt94LXJU6/UpXDMtxO24HXo H/uWiU/WO9hHiSdna/E3updv2F/Sa90xLoLsGMwnuDWMjwzU2ofgYVz7JF7CCX+mQmcdxrtZaOwPj zcdJVXcqEP6z9g==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:63789 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngvt4-0008OY-Rh; Tue, 19 Apr 2022 17:59:55 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20220417210453.27884-1-ludo@gnu.org> <20220417210453.27884-12-ludo@gnu.org> Date: Tue, 19 Apr 2022 23:59:53 +0200 In-Reply-To: (Maxime Devos's message of "Mon, 18 Apr 2022 11:12:11 +0200") Message-ID: <878rs0raxy.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" 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=1650405694; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=On7j6ZTRsaejUMj3ZNWWpZG9S9TcLZRnfWwB2TLN4L8=; b=VGSTqK5/IwzRFpAs1AxS7z06kom6ZwXEmlSeuZlZIpHWa6b3YJel+pKlU4W1+bZge3QZoB E+4VRTx/0HqEZiUeEK3RuvrknoFMZjGpXlrsULbMdmkOqE/kaecmTJWxZcAIqM6Bfemccp HUEgOlJZBjABe6N2amwqRH2EIzagNY8DNXywEIf0dTz+yPrljvppYDBTg+CUUlhX3efjnO znAUSLioafMASi8dGo3gUUBYwFZ4q3zBO7oSpRC7DIOG2CRx/3cJN/xu4h/bgwjh0rHY+O LyRWwHt94EIEu8hz3YXI4cpBIWBmhIj8C6ANhrB7AY7jZQ+PbaAzdOXnZDADqQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1650405694; a=rsa-sha256; cv=none; b=WjfxUjRmmCwSDgg3ymOJNKS87E1dJNMF+3y6Zb3cWhx9R4SEqKv5gL2fc2YGD3rrEboNd1 a5pdVJ3RJhLb33tCsq/23Yfu4B6sxQNP4DhBBKdMzOqnMunlTk/hi0pqnZRHDciF414wZB TI/mfRBKrsDET48t4AhJDlumPn+eiveqO/TxWSpOP3wvsOSyEk29zyQyesW2WUQHKOuvo7 6B7vqvYr4lCRIGR/ZHZwqz1MSO8JTMk8rsJeEO7BZsmBDfsYkIi2bNBjb3BqXgiltbea7T ZG4D4T+te1eHWBapd8T6nBfwEgW0ljbZpRFYbNa9Reana8AFaEi8riETCYlBiA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=dsHU0Fy7; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.94 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=dsHU0Fy7; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 76275CF12 X-Spam-Score: -3.94 X-Migadu-Scanner: scn1.migadu.com X-TUID: mc2unt47RvVd Hi Maxime, Maxime Devos skribis: > Ludovic Court=C3=A8s schreef op zo 17-04-2022 om 23:04 [+0200]: >> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ;; XXX: The daemon need= s to live in the main user >> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ;; namespace, as root, = so it can access /var/lib/quassel >> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ;; owned by "quasselcor= e". > > The previous code did not have this comment, was the old code broken or > is this a limitation of least-authority-wrapper? It=E2=80=99s just that =E2=80=98make-forkexec-constructor/container=E2=80= =99 does it by default: --8<---------------cut here---------------start------------->8--- (define (default-namespaces args) ;; Most daemons are here to talk to the network, and most of them expect = to ;; run under a non-zero UID. (fold delq %namespaces '(net user))) --8<---------------cut here---------------end--------------->8--- =E2=80=98least-authority-wrapper=E2=80=99 is stricter by defaulting to =E2= =80=98%namespaces=E2=80=99. Ludo=E2=80=99.