From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:700:3204::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id Vh+uL8R8h2WsLQEAkFu2QA (envelope-from ) for ; Sun, 24 Dec 2023 01:35:16 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id GKRrKMR8h2WCxQAAe85BDQ (envelope-from ) for ; Sun, 24 Dec 2023 01:35:16 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debian.org header.s=1.vagrant.user header.b="d/InvRnC"; 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"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1703378116; 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=riWvj2KBnBbDmc6/NbBhANNW6S5DAS808npRZh1SKz8=; b=S3lLIrTT6llnzoVD8xTN/NbMLFvIhSRPRvZxXiaTfTk1L8/Z5Y2LFufDSjXidw03IWt20d 3UPF7rDILBO0c6pyS2aU69NMgVQafHdcn+K4B/4fcTp5C/DDqVrftzRTCVG5GzqrZE/2is UcWjcT+plLGV9IiVUyy4e1PpKcg1Uaq46DbY0wzxLepTn4nV5ba8hfj63t/O8j7LNh7nW+ +DmSSUzCXLxWdl0irMtW8mPJh+zsUSXsLlRxggVow+XWHi7Ody9o8m4EaTMzGWaE3beL2/ E8iukBDupEhwLn2iI9QkXzXtsxdjxy3u1RrLRSCkLxzvNHY/0LuqWvQGb+5rsQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debian.org header.s=1.vagrant.user header.b="d/InvRnC"; 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"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1703378116; a=rsa-sha256; cv=none; b=Gba93t3VYuFlyyGiNrR648HkM9+/iAKYprVCZlugN/kKUmU6+SvkN+SxftqzvMsURBsLBD RJC+I7AntvXm49dyRowiIIyq7GFOg61yVgR5QD4tHOKd+hnlMJP66/wb2ANOjwH5RM3h/W yVmw/iK4xEiLeIlrI2cegWo3fGfmmbhS5E35rTOgInb+UAsvYwEOp/HFzmT2jeTLzN1qpL l73ijgPXTO/vAaNKjuM7SJB879nIaeQdEAsBN0iXOiK6JlWu8N8tDi9DLg1a3gtuCcfvVK OKK09KL8w37b+hZ1D2hrXAusa+zkn3pDfoIShK6fMEBmhWvOuD9SvBmMU+zszA== 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 F1E9E41908 for ; Sun, 24 Dec 2023 01:35:15 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rHCSJ-0004k9-8b; Sat, 23 Dec 2023 19:34:59 -0500 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 1rHCSH-0004jv-4k for guix-patches@gnu.org; Sat, 23 Dec 2023 19:34:57 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rHCSG-0008KJ-T8 for guix-patches@gnu.org; Sat, 23 Dec 2023 19:34:56 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rHCSM-0006rj-2w for guix-patches@gnu.org; Sat, 23 Dec 2023 19:35:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61462] Add support for file capabilities(7) Resent-From: Vagrant Cascadian Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 24 Dec 2023 00:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61462 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Tobias Geerinckx-Rice , 61462@debbugs.gnu.org Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , brian Received: via spool by 61462-submit@debbugs.gnu.org id=B61462.170337810126387 (code B ref 61462); Sun, 24 Dec 2023 00:35:02 +0000 Received: (at 61462) by debbugs.gnu.org; 24 Dec 2023 00:35:01 +0000 Received: from localhost ([127.0.0.1]:51499 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rHCSL-0006rR-5v for submit@debbugs.gnu.org; Sat, 23 Dec 2023 19:35:01 -0500 Received: from cascadia.aikidev.net ([173.255.214.101]:53396) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rHCSI-0006rD-KI for 61462@debbugs.gnu.org; Sat, 23 Dec 2023 19:34:59 -0500 Received: from localhost (unknown [IPv6:2600:3c01:e000:21:7:77:0:20]) (Authenticated sender: vagrant@cascadia.debian.net) by cascadia.aikidev.net (Postfix) with ESMTPSA id 098231ADE7; Sat, 23 Dec 2023 16:34:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=debian.org; s=1.vagrant.user; t=1703378084; bh=vkxhk+AOE3sKATAPKepluFVES9O/zQumCZUVTWbBqsY=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=d/InvRnChQMGWMh2W87EsaD0JhvR/laoadPo438zCToBHrKtICbBjk2ISihMGL3jh TJFnA88eOoGb9QR7JHUU+m5yLcfIYLFhZ0CkHNhBfRWfU3m0qR52nxD2vlGoI8irdi P4cqgm7LcHuc36RvpQQcZUwujhbhf25HMSjxDLe8srWpvOmsRzMHsHI8/K04rTzEfx bG8LJkeX1+Nob85fw2MWFpYQFkFg5YLcvdzDnyogAB6HJA7fw/dUHLq+QeP4f1NU9k UuuAAcOezY36e/pH2bm1W7HQb2hLOJTyjNuLTiVdY6NMecAcS86lFpOvWPtkstzl3j h9OSMjpu+Iguw== From: Vagrant Cascadian In-Reply-To: <87wmuig0kt.fsf@contorta> References: <87r0uuehlr.fsf@nckx> <129e8d298556f6a159fcb704ed3df4bf0709ddd3.1689465600.git.me@tobias.gr> <87edl1yu2k.fsf@wireframe> <87wmuig0kt.fsf@contorta> Date: Sat, 23 Dec 2023 16:34:11 -0800 Message-ID: <87r0jc1lrw.fsf@contorta> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -5.78 X-Spam-Score: -5.78 X-Migadu-Queue-Id: F1E9E41908 X-TUID: HHjlkOoD7gN0 --=-=-= Content-Type: text/plain On 2023-11-15, Vagrant Cascadian wrote: > On 2023-07-21, Vagrant Cascadian wrote: >> Thanks for the refreshed v2 patches! I gave them a quick spin... >> >> As noted on IRC, apparently it lacks actual calls to setcap, so that >> part still needs another patch at least! >> >> Otherwise, it did seem to more-or-less work... > > I did eventually get some updated patches that even followed through on > the promise of calling out to setcap, and from what I recall they even > worked! I liked them a lot. > > >> There are compatibility symlinks from /run/setuid-programs to >> /run/privledged/bin and it sets setuid on requested files. >> >> I was a little curious about why /run/privlidged/bin as opposed to >> without /bin ... keeping the door open for other privlidged things? What >> about things that come from /gnu/store/*/sbin ? are those handled any >> differently? > > Working patches aside, that is my only outstanding question, and I would > hate to see that be a blocker. :) I just noticed I pushed a branch with the working patches to a public branch last month: https://salsa.debian.org/debian/guix/-/tree/capabilities-61462-20231115?ref_type=heads They are even still cherry-pickable from current master! Yay! These patches were started over a year ago(well, probably before that, even), and had a working implementation about 6 months ago... My guess is the main blocker is nervousness about renaming setuid-programs to privilidged-programs (I know I am a bit nervous to do so!)? This would make it possible to properly fix several bugs: https://issues.guix.gnu.org/27415 https://issues.guix.gnu.org/39136 https://issues.guix.gnu.org/39136 https://issues.guix.gnu.org/55683 And have been mentioned indirectly in several others over the years: https://issues.guix.gnu.org/search?query=setcap live well, vagrant --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCZYd8hAAKCRDcUY/If5cW qpp4AQCGyHDlzR+EjZ8HYzKsJifT4+vX5j4AfhNOEumw7EZLygEA7oHPm2FVjaSZ dWECJ4Q9orjw4tSM8NR5mcjlqMynkQ8= =2Icg -----END PGP SIGNATURE----- --=-=-=--