From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 GAdTH8sXpGI/RgAAbAwnHQ (envelope-from ) for ; Sat, 11 Jun 2022 06:19:23 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id SO5AH8sXpGLh+gAA9RJhRA (envelope-from ) for ; Sat, 11 Jun 2022 06:19:23 +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 3390ACF71 for ; Sat, 11 Jun 2022 06:19:23 +0200 (CEST) Received: from localhost ([::1]:57338 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nzsao-0005T4-Eb for larch@yhetil.org; Sat, 11 Jun 2022 00:19:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33778) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzsaU-0005BS-Dn for bug-guix@gnu.org; Sat, 11 Jun 2022 00:19:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:57765) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nzsaU-0005Nv-4q for bug-guix@gnu.org; Sat, 11 Jun 2022 00:19:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nzsaU-0005bU-0w for bug-guix@gnu.org; Sat, 11 Jun 2022 00:19:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#54786: Installation tests are failing Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 11 Jun 2022 04:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54786 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: othacehe@gnu.org, 54786@debbugs.gnu.org Received: via spool by 54786-submit@debbugs.gnu.org id=B54786.165492110821490 (code B ref 54786); Sat, 11 Jun 2022 04:19:01 +0000 Received: (at 54786) by debbugs.gnu.org; 11 Jun 2022 04:18:28 +0000 Received: from localhost ([127.0.0.1]:51662 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzsZw-0005aY-AL for submit@debbugs.gnu.org; Sat, 11 Jun 2022 00:18:28 -0400 Received: from mail-qt1-f179.google.com ([209.85.160.179]:43722) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzsZs-0005aF-VQ for 54786@debbugs.gnu.org; Sat, 11 Jun 2022 00:18:27 -0400 Received: by mail-qt1-f179.google.com with SMTP id hh4so679087qtb.10 for <54786@debbugs.gnu.org>; Fri, 10 Jun 2022 21:18:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=dwkgjgr5z643hERklhT4OIo7YnjXKawZU1dz9He29X8=; b=WvllOTeD/JC1c3XLStTwmm0cyUrFDNyFnTqSZNKwQxDgd1Lyt7tgKIWTYs4VlBj6zY bhbWt8SXaxojYY68766UOEbsHDylgHOY2YdT+E0pmoD2koIE8pwZt+YHOgbVCWeyt3cU KcHIbkqiXAyQXJG+GCRtrsFuerhByW4z7L1Fo7vIJCkBbh7xckeLY6vJPqAUla3JUCgW m6jy2iivWP2ae9k4EePuwUEjwhA9ywf5+x/gaIH82xnOe6RuxM0Q9cJz4A3GVv1QTCQa mw39CNDtZM9eXBEUI9ZDRlM0jcVvZsV/nvyrwa6LTvgM8uqU58Nr77xRFN9GQijddu0w Uivg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=dwkgjgr5z643hERklhT4OIo7YnjXKawZU1dz9He29X8=; b=KTFZWi2eMQkDjhOcEYp+tGPRarmKp0obRR8qSErlL/7gdJ+gNW21JigxNT1Z3OXhRl TjQRt/5xUBEtGCyyj/UbXaIgMTr6r1uOtmR01mVeFLG5NEX3ZhC2+gO9KPg0nWt4QwDp +BC/mhrkGad2UKO7JUcpeaiZi9lhk0Mu8JByXwMQSJ7FfMxKKj6Q9SgHpbPG9KjYzxqI yiIaYZgis/p1GzDDogsouiYxHintj37xx8l3ekLLlfXPAKdAbedhIIWO4thdCYPQuDvq mJa1B0EBlA6x495Ah2MuTMncAJmmpBoh9eQia/MgTZW6YwS04+xBkQC5PWBfudqt8Nqj dYQg== X-Gm-Message-State: AOAM532fuiAObjXuNTGphe9D3+r3q1jikYqxirA/w21Xvvv5kiJGats1 Co42PmPRxlelK8lSXZnL+WSpgITgKy9Aww== X-Google-Smtp-Source: ABdhPJx2KwGSAp8ruVobp5d/zBePYrMjuvplg/n+jJE66hJZLG3+Iq/h5bYh3TcCRus4FxwFL+dAuQ== X-Received: by 2002:a05:622a:15c7:b0:304:ec84:7718 with SMTP id d7-20020a05622a15c700b00304ec847718mr24907838qty.585.1654921098702; Fri, 10 Jun 2022 21:18:18 -0700 (PDT) Received: from hurd (dsl-155-254.b2b2c.ca. [66.158.155.254]) by smtp.gmail.com with ESMTPSA id c7-20020a05620a268700b006a6f57fe2e1sm1100639qkp.98.2022.06.10.21.18.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jun 2022 21:18:18 -0700 (PDT) From: Maxim Cournoyer References: <878rql9wh9.fsf@gnu.org> <20220531164407.13914-1-maxim.cournoyer@gmail.com> <87o7zcwvy6.fsf_-_@gnu.org> <878rqgr0l4.fsf@gmail.com> <8735gnqkcp.fsf@gnu.org> <877d5zx9jt.fsf@gmail.com> <87v8tilrsh.fsf@gnu.org> <874k11ujqq.fsf@gmail.com> <877d5sbmjt.fsf@gnu.org> Date: Sat, 11 Jun 2022 00:18:16 -0400 In-Reply-To: <877d5sbmjt.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Tue, 07 Jun 2022 16:00:54 +0200") Message-ID: <87h74rg7ef.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (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: 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" 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=1654921163; 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=dwkgjgr5z643hERklhT4OIo7YnjXKawZU1dz9He29X8=; b=o8mVROylX+ImQz5HG4Ddjq7s1Y0ZDtPJ+jcTan8kz/5yJxKoP0Q6qhapH5L+5x7tZwmfIt k6n+7ayLozUpXhobgFlpcwXzL22w+Pnyn/uxLloIFBLMsi+JW3YHlR9l7BZnxLqkUWKBl4 0TkPWDse6QlB6D0miFS6lOwREkAD7PUi45N3cFaZBv6jYVbsQ2IwP5htY/OeKqIpNlv/6V 8Nn98Rc2WKORkAC12Jg+FBJa8becNCQGrQG0LG+oAEXx/boOb50wwYLXNLA2BBz1DQvEza JmfuGqThtK8qaIVNYLA3aG4EO+y9t2SD4JX1jKI1TqmPxxKDI0xweowPvET3fQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1654921163; a=rsa-sha256; cv=none; b=C1n9Fy311cmhLZgxnEaTgRZI4QU8Ja1+VKHEmV5gD3G6vIgj9qVgaa21kWfoMCxzI+Geg2 Q+Xtks0x0WmaspnQ6THe410/Isj3TsfhB+ozph2W6LBrpGVHZ/rbkEOJc5Ze2apyy9HnrJ GjZ3cBdwFyU64F1/Q6h6isg/0zamD2JglgDst6jxkvKCX1JKu+5EjhXaspXRTqNBz+nhv+ vJMGVTTwjrGsMGdOfMS62xd8W3b0A4ZTZEGfLsrKEvZYHMScMkCwpg+QdwU39nyX7+3TNA O2qEZXa3DKw+qJ1PpRdvB9jmBINmvmJUgXm5xTRtb0wzlNenUqNt6nQYOih17w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=WvllOTeD; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: 4.72 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=WvllOTeD; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: 3390ACF71 X-Spam-Score: 4.72 X-Migadu-Scanner: scn0.migadu.com X-TUID: CRB1gR9PjPwA Hi Ludo, Ludovic Court=C3=A8s writes: [...] >> When using 'make-forkexec-constructor/container', the clone(2) call >> happens before switching user, thus as 'root' in Shepherd, which >> explains why it works. > > Damnit, that=E2=80=99s right. For example the result of: > > (lower-object (least-authority-wrapper (file-append coreutils "/bin/un= ame") > #:namespaces (delq 'user %names= paces))) > > won=E2=80=99t run as an unprivileged user: [...] > I think we would add #:user and #:group to =E2=80=98least-authority-wrapp= er=E2=80=99 and > have it call setuid/setgid. =E2=80=98make-forkexec-constructor=E2=80=99 = doesn=E2=80=99t need to > be modified, but the user simply won=E2=80=99t pass #:user and #:group to= it. OK! I'll adjust the jami-service-type when we get around to implement the above; for now I've pushed my proposed fix which still uses 'make-forkexec-constructor/container' as 85b4dabd94d53f8179f31a42046cd83fc3a352fc. Thanks, Maxim