From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id iFogEWARW2FxYQAAgWs5BA (envelope-from ) for ; Mon, 04 Oct 2021 16:36:16 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id yITODGARW2EoCwAAB5/wlQ (envelope-from ) for ; Mon, 04 Oct 2021 14:36:16 +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 D4A282DDD7 for ; Mon, 4 Oct 2021 16:36:15 +0200 (CEST) Received: from localhost ([::1]:37676 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXP4h-0005IY-0O for larch@yhetil.org; Mon, 04 Oct 2021 10:36:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51880) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXP1U-0003XE-Ds for guix-devel@gnu.org; Mon, 04 Oct 2021 10:32:56 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:56118) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXP1S-0006gD-CN; Mon, 04 Oct 2021 10:32:54 -0400 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=60566 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXP1O-0000lt-6t; Mon, 04 Oct 2021 10:32:53 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Maxime Devos Subject: Re: Code sharing between system and home services (was Re: On the naming of System and Home services modules.) References: <87tuiajdv1.fsf@yoctocell.xyz> <87a6k2ng48.fsf@dismail.de> <875yukdh6a.fsf@gnu.org> <87zgrrwlgy.fsf@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 13 =?utf-8?Q?Vend=C3=A9miaire?= an 230 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Mon, 04 Oct 2021 16:32:47 +0200 In-Reply-To: (Maxime Devos's message of "Sun, 03 Oct 2021 10:45:38 +0200") Message-ID: <87k0isoo6o.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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=1633358175; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=EB19O7/8JNVsY59+KCsguRO1GpAkzulbBmPTTVefbBE=; b=SGKFfrUA7+Y7o+NVS5n5tlquhfXGM4rirUSCbyKZ5cloVqwEALbTju/IT+Pk4S7j2EqeM2 B6YAlSQnQ+07MiECVkphX4/l4DdwfjdhEXk7lh2WZgntsV8sYqUAzqfLZxjzqul8QvHw4a ZCJ/b5Yt42sY+sZEA4uhhLfP/TzyYA6EBKkGgRaxRSGuIhKZHUfQXXqhBeRs27IBGdOgkh 50Ojt7KZ4zC3qp/ZqUG4bOrJ0qAyndIneYzgbNB/1N9hqd8RARODfRiIGSlpLB1qIpaRSB LeMO/w33VfJon2xDreq0TUvT8Q4a/gMGeA/38XxZd619DOMstBhvAk+MgZFOSw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633358175; a=rsa-sha256; cv=none; b=At8nky3xTYO1SnkZWbPklJsDFzBNpuCxMjfupwF+iZuDtNsGvtxQ9Xx39X4GCiApBI0nFD Mvd6k83gPLIeSxZDq1+ghhSJTHRfwwH+xdDjfqVDjx8Mr5CVNjgFdyuKffYcIIjGVMwbQq ZZ/0tpFd3ovhBcBpbKgQ6Abe8umEMrJzJT5Nsr8OYnlk5yFlbfxHviXMJSPpQGiAUcMsag gV2BSlgfCzT2anrvzGlswld0boR12SM3BWzSJQI2yukixAeFTu2nrFHyLaynx1ICizJK4r nxlrx+R/EObVTD3qhDIwCseMAPcWwda5tlP0Cp8IdhACIUKTxeUgR4KDZnys1A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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.01 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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: D4A282DDD7 X-Spam-Score: -2.01 X-Migadu-Scanner: scn1.migadu.com X-TUID: DDH8T0wlLyOd Maxime Devos skribis: > Ludovic Court=C3=A8s schreef op za 02-10-2021 om 16:27 [+0200]: >> Maxime Devos skribis: >>=20 >> > Ludovic Court=C3=A8s schreef op di 28-09-2021 om 14:21 [+0200]: >> > > Hi, >> > >=20 >> > > 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 u= ser >> > > > and a group field? For the syncthing service, perhaps the user wa= nts to >> > > > limit Syncthing's runtime permissions. So instead of running as t= he >> > > > user, the user would run synthing as a different user with less pe= rmissions? >> > >=20 >> > > That=E2=80=99s not possible unless the calling user is root, since y= ou=E2=80=99d need >> > > the ability to switch users somehow. >> >=20 >> > On Debian, a user has a list of =E2=80=98subordinate user IDs=E2=80=99= which can be switched >> > to without root: ;. >> >=20 >> > Maybe "guix home" could use that mechanism, and this mechanism could b= e implemented >> > on Guix System as well? >>=20 >> 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 forei= gn >> distro. > > I don't recall newuidmap requiring unprivileged user namespaces -- it's a= setuid binary. Ah right. But we=E2=80=99re not call do (system* "/usr/sbin/newuidmap") in service code, so that=E2=80=99s still a problem, no? Thanks, Ludo=E2=80=99.