From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id iIQkJLzZWGEwgAAAgWs5BA (envelope-from ) for ; Sun, 03 Oct 2021 00:14:20 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id cSPpH7zZWGG9OQAA1q6Kng (envelope-from ) for ; Sat, 02 Oct 2021 22:14:20 +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 393823324C for ; Sun, 3 Oct 2021 00:14:20 +0200 (CEST) Received: from localhost ([::1]:50066 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWnGt-0006im-Cu for larch@yhetil.org; Sat, 02 Oct 2021 18:14:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45450) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWnGX-0006ie-Og for guix-devel@gnu.org; Sat, 02 Oct 2021 18:13:57 -0400 Received: from cascadia.aikidev.net ([2600:3c01:e000:267:0:a171:de7:c]:49064) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWnGV-0004OV-Bn; Sat, 02 Oct 2021 18:13:57 -0400 Received: from localhost (unknown [IPv6:2600:3c01:e000:21:21:21:0:100b]) (Authenticated sender: vagrant@cascadia.debian.net) by cascadia.aikidev.net (Postfix) with ESMTPSA id 189141AA2C; Sat, 2 Oct 2021 15:13:48 -0700 (PDT) From: Vagrant Cascadian To: Ludovic =?utf-8?Q?Court=C3=A8s?= , Maxime Devos Subject: Re: Code sharing between system and home services In-Reply-To: <87zgrrwlgy.fsf@gnu.org> References: <87tuiajdv1.fsf@yoctocell.xyz> <87a6k2ng48.fsf@dismail.de> <875yukdh6a.fsf@gnu.org> <87zgrrwlgy.fsf@gnu.org> Date: Sat, 02 Oct 2021 15:13:30 -0700 Message-ID: <877devhy7p.fsf@yucca> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: none client-ip=2600:3c01:e000:267:0:a171:de7:c; envelope-from=vagrant@debian.org; helo=cascadia.aikidev.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org, Xinglu Chen , Maxim Cournoyer , Andrew Tropin Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1633212860; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=bfldYqzb/KYRU+9rfgHGFy0h+1lW3TxARHNysf4TsxY=; b=LvSaghQrFP1jbFhD+UcViTTsQs1b8HI3Qy544iSaKXq0JrRuuWRL1ZAEhVCFqOq8cPSSrN Tb5zLjX0XNi210kBnVWGJWXIBS21oNgkMxrZh3v2p1m/FDn1MAjtN6ZU4UU6UKpia//nb2 2uAI+4bXZ4/gTxDRi8XPglz8VakZeCSIYmqwJOy0zMfG+bV+xAP9oC+eWrnsOqjj9yRoXf SdgNL2PrhrGwAHujaB8O+PYpe6kahI9d8s5vqk2gfkWmB/UYTt0vA0hlfLVcSIfQGJDFGO nLMFgIkvl1ssvXpP9EJxb42Ekc6MbiKLvy0CjIQathixV0Xbw/HqOUWapWiHlQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633212860; a=rsa-sha256; cv=none; b=R1kf+uRavCcrh0xpdAQjTcoRalIUDUd8Lr8CJNBAztxj+oN2072UDanm5GrWHvnd2ED5O+ E1DwUqf6A6C/ykQmd4XuD2NHbtUV6yRccGCaguhZa5EypkEKlHwe7/lSLl7uOqK2ezMHy+ x/rsDQcgtJc4AndSIcgeOe5q0L9+ZjWDXNIef9m00ucYXjQLZ4XmjWhShM4TrIIvU31UtC X4+6b/9Der4EPXGCr/9MIBtsk6ehf0/rNG6gXLQLsLElZah1s1Y5YYit1OGt21E/bOFD4l ZwACc3wOcBwbe+YMkae4WH7SWy5ssJLVh03alYoGnwJM7gYK7N27M1ECX4K5Ow== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Spam-Score: -2.51 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: 393823324C X-Spam-Score: -2.51 X-Migadu-Scanner: scn0.migadu.com X-TUID: p8hV7nXgg/V8 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2021-10-02, Ludovic Court=C3=A8s wrote: > Maxime Devos skribis: >> Ludovic Court=C3=A8s schreef op di 28-09-2021 om 14:21 [+0200]: >>> Joshua Branson skribis: >>>=20 >>> > Apologies if I'm speaking for something I know very little >>> > about...Wouldn't it be nice if guix home services would accept a user >>> > and a group field? For the syncthing service, perhaps the user wants= to >>> > limit Syncthing's runtime permissions. So instead of running as the >>> > user, the user would run synthing as a different user with less permi= ssions? >>>=20 >>> That=E2=80=99s not possible unless the calling user is root, since you= =E2=80=99d need >>> the ability to switch users somehow. >> >> On Debian, a user has a list of =E2=80=98subordinate user IDs=E2=80=99 w= hich can be switched >> to without root: . >> >> Maybe "guix home" could use that mechanism, and this mechanism could be = implemented >> on Guix System as well? > > Yes but that requires unprivileged user namespaces, which may or may not > be supported=E2=80=94e.g., likely unsupported when using Home on a foreign > distro. Debian finally enabled it by default in the current stable release, bullseye, which was released just a few months ago (and it was possible to enable with a boot flag in earlier releases). Not sure which distros still disable unprivledged user namespaces... I am definitely curious to test guix home on a foreign distro at some point! :) live well, vagrant --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCYVjZiwAKCRDcUY/If5cW qpPvAQCzdGokyBEsSOMu7lXICIA2jipIovPVU51TslGnKFRl1wEAtcnHQLFYT5J7 /5lwrcNbI9A0P/zGMSAiO8rCnTtt6wM= =ahhO -----END PGP SIGNATURE----- --=-=-=--