From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id cMJoHvKupmTZ9QAASxT56A (envelope-from ) for ; Thu, 06 Jul 2023 14:09:22 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id uFUQHvKupmScZQAAauVa8A (envelope-from ) for ; Thu, 06 Jul 2023 14:09:22 +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 343A64170 for ; Thu, 6 Jul 2023 14:09:22 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qHNnF-0007uP-BC; Thu, 06 Jul 2023 08:09:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qHNnD-0007uE-FA for bug-guix@gnu.org; Thu, 06 Jul 2023 08:09:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qHNnD-0002mG-6P for bug-guix@gnu.org; Thu, 06 Jul 2023 08:09:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qHNnC-00067u-H3 for bug-guix@gnu.org; Thu, 06 Jul 2023 08:09:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#63904: Can't setuid programs to anybody but root Resent-From: Edouard Klein Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 06 Jul 2023 12:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63904 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Josselin Poiret Cc: 63904@debbugs.gnu.org Received: via spool by 63904-submit@debbugs.gnu.org id=B63904.168864529723494 (code B ref 63904); Thu, 06 Jul 2023 12:09:02 +0000 Received: (at 63904) by debbugs.gnu.org; 6 Jul 2023 12:08:17 +0000 Received: from localhost ([127.0.0.1]:40311 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qHNmT-00066s-0v for submit@debbugs.gnu.org; Thu, 06 Jul 2023 08:08:17 -0400 Received: from sender11-op-o11.zoho.eu ([31.186.226.225]:17169) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qHNmP-00066b-Ba for 63904@debbugs.gnu.org; Thu, 06 Jul 2023 08:08:15 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1688645291; cv=none; d=zohomail.eu; s=zohoarc; b=iCpSvZ6/OQPJ+sViQMZNaMkMNs2FmRsVzqR3bCda9CQFdWh5kkgk6P33g9XpNSFngEyICEciVs/WSvJkEyw0WrIuQHAacAZPYMxSUcY0esQ0jViZDi2KkHhSBZn7JDAoAEUFTMIu9ziIvw05PTDlRT0ppESZHFk5JfRoPGAEisg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1688645291; h=Content-Type:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=07zKmM2Uzzc53aT7NB5/mhs0cgb7pWxsvihdoOK6xV0=; b=aPELjcWPtdpKmpFZ80IcXfyrg04M9Gdt75l3wgLa8wvBEnw2+BMuIzZnMQMVD6eo/gKLjsmMRVr2TZugDnKbXTFFoeU2eeanSefsNUzktw+pvwQOIFbxTYyikaYJUIF5wBR2G60XIWeAFUIGhyZF0QgKCyVi18TIaNdoaJ/BDcQ= ARC-Authentication-Results: i=1; mx.zohomail.eu; dkim=pass header.i=rdklein.fr; spf=pass smtp.mailfrom=edou@rdklein.fr; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1688645291; s=zoho; d=rdklein.fr; i=edou@rdklein.fr; h=References:From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:In-reply-to:Message-ID:MIME-Version:Content-Type:Message-Id:Reply-To; bh=07zKmM2Uzzc53aT7NB5/mhs0cgb7pWxsvihdoOK6xV0=; b=kVm03hPCtIyx1mK1w+aaIabVbo1JFwH/WDppsBj4Zt+Pq95PSs/pN4/GwhJq3M0p +eNPjVEW2fz9EkYil//czv37dAIOJxpwbUFuUkFg096aqX3ZLUIGXE56+3GCHekLp/w U2ACf4kOHfAOb8vLJ+OZ6yU/+PEDS98rSYB42zMsmCBC56RDl2MhGu6Auoj0jJ9aU5w JIx2txY0QFivMNKbcsu08RWvrYwUKs2OtMOZa0rSzMkvetjh1J9O2I3NZpE4B66bJuN GCJVwsNXlbPuvnUhkXq65MdftOGFEKa8j8iPqzOB449Ljtt12a4WP9CiYbFD39JsRKc g+rx2V9/UQ== Received: from schwarzy (lfbn-idf3-1-667-244.w86-252.abo.wanadoo.fr [86.252.237.244]) by mx.zoho.eu with SMTPS id 1688645288999343.43815681767694; Thu, 6 Jul 2023 14:08:08 +0200 (CEST) References: <87h6rmtdzk.fsf@rdklein.fr> <878rcxt4jt.fsf@rdklein.fr> <87edmma0bf.fsf@jpoiret.xyz> User-agent: mu4e 1.10.2; emacs 28.2 From: Edouard Klein Date: Thu, 06 Jul 2023 14:04:02 +0200 In-reply-to: <87edmma0bf.fsf@jpoiret.xyz> Message-ID: <87edll9ra0.fsf@rdklein.fr> MIME-Version: 1.0 Content-Type: text/plain X-ZohoMailClient: External 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=2; s=key1; d=yhetil.org; t=1688645362; a=rsa-sha256; cv=fail; b=Ftc5bDjN/zufIiz4SOAky1l8zZXKwy5Oj9pAlvSeAFmhm7DQ9yWQzCUjbHJXbJhx95sVmA wj0XahWpWpSoZsLEZpyAxV8EapSlW1pZeyRX7xLqL8Cii5qm1w6F3BZRWqAmvHS7FJ3JUh vj1YS6+RHGkAEjSYmwfiw0TdylrzrhP4PrtFcB1Nl43MRohIEcMDeK0/O9VOznkH6+Q/ZE AoSSG0rmcoYupwYs7tL97vyOi188sGEUKRw1NKRLRFyCDqvKsNTW1xh5vXqusS27263Bw7 yAFXX4li9XQ86zIsSVpl/EQUxeADV67f8kRv8YNlvFH6DFyFVK1VLngX1pM0vQ== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=rdklein.fr header.s=zoho header.b=kVm03hPC; dmarc=none; arc=reject ("signature check failed: fail, {[1] = sig:zohomail.eu:reject}"); 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" ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1688645362; 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: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=07zKmM2Uzzc53aT7NB5/mhs0cgb7pWxsvihdoOK6xV0=; b=C6ll1GKrBXKqAkxRjLNghzRoGqYdAWoeemt02/jAlqNoxz0q9NgYhg7WuRm/DLYsCCj16R KDdbqyzh8R+oaDLlN2v360LDMV7yrmE7JyS2BO/BM3rdxNXmAQCRQwZA1+YPQYnW3RVd0G /h6Ygbw/tVwudoS30i9+FTCCW38EVjS97ZG32oFdzPgqa5Pom4GfdUn1g410S1GgHXfyN8 GN3Kr9eIFMkhqs+kK3HdNn8DuYhUK0AWvH9dv8e6rmU4TnkN8cok1PlnxndVcmC3xsXgtv G4hp7Y8rcqwEvEJB/rLmxTPy29iGYWOWPyj3bRcPPxLR33NA/0/KtyaMaAoIzg== Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=rdklein.fr header.s=zoho header.b=kVm03hPC; dmarc=none; arc=reject ("signature check failed: fail, {[1] = sig:zohomail.eu:reject}"); 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-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -0.57 X-Spam-Score: -0.57 X-Migadu-Queue-Id: 343A64170 X-TUID: ItGwd8Wk553Y Thank you Josselin :) I ended up basically reusing this code in my own system layer, while we wait on 62726 to be merged. Also, I needed a new keyword argument to change the name of the setuid binary. It works flawlessly, thanks ! Cheers, Edouard. Josselin Poiret writes: > [[PGP Signed Part:Undecided]] > Hi everyone, > > You might want to have a look at [1], which should resolve this. I've > held off on reviewing it for quite a bit but have talked on IRC recently > with bjc about it. With this approach, while cleaner, we'll need to > identify which services rely on the setuid binaries being present, as > well as ensure they're up before any interaction with the user is > possible. > > [1] https://issues.guix.gnu.org/62726 > > HTH,