From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id oMp9IWNm0WDUKwEAgWs5BA (envelope-from ) for ; Tue, 22 Jun 2021 06:26:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 4O8XHWNm0WBpZwAAbx9fmQ (envelope-from ) for ; Tue, 22 Jun 2021 04:26:11 +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 4DC1914756 for ; Tue, 22 Jun 2021 06:26:08 +0200 (CEST) Received: from localhost ([::1]:35458 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lvXzD-0005cf-5M for larch@yhetil.org; Tue, 22 Jun 2021 00:26:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56940) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lvXz8-0005cR-L9 for guix-patches@gnu.org; Tue, 22 Jun 2021 00:26:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53931) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lvXz8-0004io-CZ for guix-patches@gnu.org; Tue, 22 Jun 2021 00:26:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lvXz8-0006Y7-5U for guix-patches@gnu.org; Tue, 22 Jun 2021 00:26:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48729] [PATCH v5 25/25] services: Add bitmask-service-type. Resent-From: Raghav Gururajan Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 22 Jun 2021 04:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48729 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: Maxime Devos , 48729@debbugs.gnu.org Received: via spool by 48729-submit@debbugs.gnu.org id=B48729.162433592425123 (code B ref 48729); Tue, 22 Jun 2021 04:26:02 +0000 Received: (at 48729) by debbugs.gnu.org; 22 Jun 2021 04:25:24 +0000 Received: from localhost ([127.0.0.1]:37244 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lvXyV-0006X9-SR for submit@debbugs.gnu.org; Tue, 22 Jun 2021 00:25:24 -0400 Received: from out2.migadu.com ([188.165.223.204]:39037) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lvXyT-0006X0-TK for 48729@debbugs.gnu.org; Tue, 22 Jun 2021 00:25:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raghavgururajan.name; s=key1; t=1624335919; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=qXbb97wlagDOoZocrfcDM+aWnfizSPgMGQsPWkg6V8I=; b=NPMdtD79FZvnW0ryuHyM2WcMcf+X55sRpcG3YHPILDF9jbiTiAPD6rjQJ34sBukrkDzPXd KOhzuvogUhmyenjo4g4/2xYORAzBgKlSC9EbLsWfsZctpzhay9Ae7d2sEOxY2IMzZ8JNTT VTKzJBDrZ53+S6fqtzpi4qACAlaCSqUnbcvvRqeAljfv4B2Z1UcOiSfqCg+ESZgYuIIgjJ wLJYyxdRZktc+r8OcEDG0ea8D3bZ7QjRaFiZo+NJ8VAe+GJEq7QpJRCnlA2lM+gefT7Nn9 aLVA23NouBH5BvS39O54r+9ln/SobQKyXDKqR2kPn60s3yDw+JNdcSBczQWd4g== References: <20210618065416.22391-14-rg@raghavgururajan.name> <20210618065416.22391-25-rg@raghavgururajan.name> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. Message-ID: <788c1bd0-9804-26b5-c727-da9610bae8d9@raghavgururajan.name> Date: Tue, 22 Jun 2021 00:25:15 -0400 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="yo6yy83oe3q6W32KvRQYdMSgVtSFOXa6n" X-Migadu-Auth-User: rg@raghavgururajan.name 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" Reply-to: Raghav Gururajan X-ACL-Warn: , Raghav Gururajan via Guix-patches From: Raghav Gururajan via Guix-patches via X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1624335971; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=qXbb97wlagDOoZocrfcDM+aWnfizSPgMGQsPWkg6V8I=; b=grIfa0lkNfhzb17ON3YILbKH9CzKIZDd95JDbu2/V3auaSst8QQKuTF2fRZOGiv/BWWt3U bhxXuw6A2wc9nKz/iSuOnM5YmAg/N51//Bb+hPs/QlzzQWftlnY1yzFMZKSjqFsxlHw59k 7lpfeTaXxas2Mg4rjPc1l3kOjdMughB8jzRK45X6CP2quJTr11BHB7L0nqgNmTm8gEus1M Xr466A7bHGkWIJiNjkXKxB30OeFd2zBwxYiIRJYoRaxpUMYZQGSbyybN129x3a67zywq7g wrXSfWhOi0FNf42Yil76KquTaHOtQV8TKN7NtCMsfU3euSvgrLI0Iy/enaWKXw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1624335971; a=rsa-sha256; cv=none; b=LEL9JIkhvhUdcw+BDEzExy4D6E/JYusZCvZDDxX55M1nBP6rrWWhQd+NopoA9MVnzHzciO FzKWjhLqDGg2LqS/O2SJUyDEK87iGKqRoKNXeoegCB0I/J5D6TEISo07abQnTUIwkFa4eF Y+ZpobYuijqHuyY7yoeoKhRRmW0eibb/3Cl01a4hZy3+ysE5me1DlQc8YJBOoZfgyBCFD6 9jXwFiYUyp6iiN659nZJfIRbQMDuotq3e5mqCexJQdLStOLzOcBbNJ0ZJpj+waaa924cbg f8+v6nFxKogqxfTvZXNF5wzLPdLCsNxtHo9HC2ToT+DteYvcPFYXBkCpgRhO6g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=raghavgururajan.name header.s=key1 header.b=NPMdtD79; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -5.02 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=raghavgururajan.name header.s=key1 header.b=NPMdtD79; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 4DC1914756 X-Spam-Score: -5.02 X-Migadu-Scanner: scn0.migadu.com X-TUID: +NQZPG5xpoOe This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --yo6yy83oe3q6W32KvRQYdMSgVtSFOXa6n Content-Type: multipart/mixed; boundary="nYRTIVqjunLwfoyJbAKLP79B52k8M3Kta"; protected-headers="v1" From: Raghav Gururajan To: Maxime Devos , 48729@debbugs.gnu.org Message-ID: <788c1bd0-9804-26b5-c727-da9610bae8d9@raghavgururajan.name> Subject: Re: [bug#48729] [PATCH v5 25/25] services: Add bitmask-service-type. References: <20210618065416.22391-14-rg@raghavgururajan.name> <20210618065416.22391-25-rg@raghavgururajan.name> In-Reply-To: --nYRTIVqjunLwfoyJbAKLP79B52k8M3Kta Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-CA Content-Transfer-Encoding: quoted-printable Hi Maxime! > Is there any specific reason that bitmask must be added to the profile?= > On a multi-user system, not all users might be interested in bitmask, > and do not need it in their "PATH". >=20 > I prefer only adding packages that are explicitely in the =E2=80=98pack= ages=E2=80=99 > field of 'operating-system' to the system profile. >=20 > One possible reason could be that the polkit policy whitelists a few > binaries, say, /gnu/store/aaa-bitmask/sbin/stuff, so > "pkexec stuff" (equivalent to "pkexec /gnu/store/aaa-bitmask/sbin/stuff= ") > doesn't require special permissions or a password of any kind. >=20 > However, if the user has a slightly different version of bitmask > in their profile, then the store path will be different > (/gnu/store/bbb-bitmask/sbin/stuff), then "pkexec stuff" will try > to use the not-authorised version, which will require passwords > or such. Yes, that's the reason I am adding it to the profile. I thought of patching the policy file to refer to=20 /run/current-system/profile/sbin/bitmask-root, but that would also=20 require bitmask to be in system profile. Btw, the upstream is planning on removing dependency on polkit. When=20 they get there, I'll remove this service-type. > (TODO to self: modify "pkexec" to support an --action-id argument, > in order to avoid store paths ...) Yeah, good idea. Regards, RG. --nYRTIVqjunLwfoyJbAKLP79B52k8M3Kta-- --yo6yy83oe3q6W32KvRQYdMSgVtSFOXa6n Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wnsEABYIACMWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCYNFmKwUDAAAAAAAKCRBfWBZkf4vlUctl AQCBghbMozwhVRW4vyMnAOaXU5l/FA8SfdFEl4294X8LHQEAp2LLlKtTVGHDF63Gcdh8KAXse4HQ bz/cZyVtMgG28wU= =i01J -----END PGP SIGNATURE----- --yo6yy83oe3q6W32KvRQYdMSgVtSFOXa6n--