From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 18 07:45:47 2021 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: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: 47229@debbugs.gnu.org Subject: Re: bug#47229: Local privilege escalation via guix-daemon and =?utf-8?Q?=E2=80=98--keep-failed=E2=80=99?= 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=22'?= =?utf-8?Q?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-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 47229 Cc: Leo Famulari 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: -1.7 (-) 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.