From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id kP4fAY49U2CBLwAA0tVLHw (envelope-from ) for ; Thu, 18 Mar 2021 11:46:22 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id MKJeOI09U2BcQgAAbx9fmQ (envelope-from ) for ; Thu, 18 Mar 2021 11:46:21 +0000 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 87540237AE for ; Thu, 18 Mar 2021 12:46:21 +0100 (CET) Received: from localhost ([::1]:34280 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lMr6a-000141-Dx for larch@yhetil.org; Thu, 18 Mar 2021 07:46:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47852) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lMr6I-00013h-LC for bug-guix@gnu.org; Thu, 18 Mar 2021 07:46:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33748) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lMr6I-0002aD-Cn for bug-guix@gnu.org; Thu, 18 Mar 2021 07:46:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lMr6I-0005Qz-Ap; Thu, 18 Mar 2021 07:46:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#47229: Local privilege escalation via guix-daemon and =?UTF-8?Q?=E2=80=98--keep-failed=E2=80=99?= Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 18 Mar 2021 11:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47229 X-GNU-PR-Package: guix X-GNU-PR-Keywords: security To: 47229@debbugs.gnu.org Received: via spool by 47229-submit@debbugs.gnu.org id=B47229.161606794720860 (code B ref 47229); Thu, 18 Mar 2021 11:46:02 +0000 Received: (at 47229) by debbugs.gnu.org; 18 Mar 2021 11:45:47 +0000 Received: from localhost ([127.0.0.1]:45292 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lMr62-0005QO-QR for submit@debbugs.gnu.org; Thu, 18 Mar 2021 07:45:47 -0400 Received: from eggs.gnu.org ([209.51.188.92]:54834) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lMr60-0005Q4-5x for 47229@debbugs.gnu.org; Thu, 18 Mar 2021 07:45:44 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:53299) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lMr5u-0002LZ-SS; Thu, 18 Mar 2021 07:45:38 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=51782 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lMr5u-0004bW-7t; Thu, 18 Mar 2021 07:45:38 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87lfaksock.fsf@gnu.org> Date: Thu, 18 Mar 2021 12:45:36 +0100 In-Reply-To: <87lfaksock.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Thu, 18 Mar 2021 12:17:15 +0100") Message-ID: <878s6ksn1b.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1616067981; h=from:from:sender:sender: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: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; bh=1ItqNSBQzQhJLP+z3gJw799Fqu8SxTli4FBbCK3jnhE=; b=kvzCNeFfea7m0rRsq9PEMr3mUwOJreCdWpqTn9Mh0FQ7zgxLQOM2uNSnWyeT6g1Ou5ukYp 0puqRtQYij4+wYPjvKeqMqsBo0o1024xw4QteMB5WYXmQRFt0dzvPYWLMqxps2RLsuhe19 yzLp2bHYaLsraMr6waglif3gQveMCOkgTyn7TtGyve1TZjeg262DqAkCf9IyiCbttOAHnV JiJ6CYdab55YmfICavWXrAWBB0DypaeWRfYeBPKtJZJg1t/rkqqutZVx/1OfQvoyYGEuTe 9CMuB5XCbjFWUwZACEu8nt7KwF09F+P3Qqv9vQ9P6/vmWwQSyBbjs/zU9bGjtQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1616067981; a=rsa-sha256; cv=none; b=upOjd6D3u/XgouqMeQ2ocqwOslUWJbSGo0ZOUf44E0y8Dz46bdtf2LFpjM32Gz057TfiCU dKTtwJ6nTZ4qn/s3DlayWJg2rjTeUziJXnRyfjsY10xO7jVsYyFqiHAU4AMtMPYuCYBQWm gkOHO7ldo3KjErgVVb7ZRtfWfzhoQP1QJ7e4uy/4WwSPuCMvR5tUxVX6uN4muNztAkikUY EPpmzw4XY038bnZb03G+hiaUVvDqlMwRV4NCoi0GFgJzj4e3wGi++Z38WPTg3jrDA5Ycx9 VlQ8SVEKgmuvtp5tiXsMTft0e7PyoIPvctFmfLYp/zrKkRCAJTxX0eH9fPxCMA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -2.90 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 87540237AE X-Spam-Score: -2.90 X-Migadu-Scanner: scn0.migadu.com X-TUID: mixmnZkACX8O Ludovic Court=C3=A8s skribis: > The fix (patch attached) consists in adding a root-owned =E2=80=9Cwrapper= =E2=80=9D > directory in which the build directory itself is located. The fix has now been pushed: https://git.savannah.gnu.org/cgit/guix.git/commit/?id=3Dec7fb669945bfb47c= 5e1fdf7de3a5d07f7002ccf Followed by an update of the =E2=80=98guix=E2=80=99 package to make the fix= available: https://git.savannah.gnu.org/cgit/guix.git/commit/?id=3D94f03125463ee0dba= 2f7916fcd43fd19d4b6c892 We recommend upgrading the daemon (using commit 94f03125 or later). On Guix System, you achieve that by running something along these lines: guix pull sudo guix system reconfigure /run/current-system/configuration.scm sudo herd restart guix-daemon On other distros, assuming services are managed by systemd: sudo --login guix pull sudo systemctl restart guix-daemon.service (See .) Ludo=E2=80=99.