From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id MP0RKsO4TGT6KwAASxT56A (envelope-from ) for ; Sat, 29 Apr 2023 08:27:15 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 2BEKKsO4TGSqbQAAauVa8A (envelope-from ) for ; Sat, 29 Apr 2023 08:27:15 +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 52AEC10BE9 for ; Sat, 29 Apr 2023 08:27:15 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pse2y-0006au-CL; Sat, 29 Apr 2023 02:27:04 -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 1pse2w-0006ad-8G for bug-guix@gnu.org; Sat, 29 Apr 2023 02:27:02 -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 1pse2v-0006Vj-Vh for bug-guix@gnu.org; Sat, 29 Apr 2023 02:27:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pse2v-0000qC-Ra for bug-guix@gnu.org; Sat, 29 Apr 2023 02:27:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#63082: [PATCH 04/17] services: mpd: Obsolete the 'group' field. Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 29 Apr 2023 06:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63082 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Maxim Cournoyer , 63082@debbugs.gnu.org Received: via spool by 63082-submit@debbugs.gnu.org id=B63082.16827495843188 (code B ref 63082); Sat, 29 Apr 2023 06:27:01 +0000 Received: (at 63082) by debbugs.gnu.org; 29 Apr 2023 06:26:24 +0000 Received: from localhost ([127.0.0.1]:34993 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pse2K-0000pL-94 for submit@debbugs.gnu.org; Sat, 29 Apr 2023 02:26:24 -0400 Received: from mail-ed1-f67.google.com ([209.85.208.67]:48231) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pse2G-0000p6-Nb for 63082@debbugs.gnu.org; Sat, 29 Apr 2023 02:26:22 -0400 Received: by mail-ed1-f67.google.com with SMTP id 4fb4d7f45d1cf-505035e3368so934254a12.0 for <63082@debbugs.gnu.org>; Fri, 28 Apr 2023 23:26:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682749575; x=1685341575; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=8QaLvOuGvP/VTY5fNEvyFgLx3AUnJ5DiY7zL+MDNAxk=; b=QrfxJ6XV3edz34IrPyA2TqKtn6YTrquxOU34vjMTc1kt4hbj4hP5QtuWcBcXrvtKkm /Skg88Rm2mdpaGT9lQfg6H4fBA1eGhl9nyRHOzujT1K1MSe+pnrjH1t/oSV9KZJ30sEN p9TQ8szpVNP86cA/+AzEhyIOEqJ0Erw4VNy907jthuf86V8p+g+jwvSFDvvvhNArAr4c JCllGUxCK749DGjYlGj9Bc3Q50M3rPOOCR59vkCMw2+5pyTb6Dm6JMyUsMV6WPgbDQhV kYhFrBnBmK+W1BMSciMgS54/bcdtKoAmr6NJ/Sqfaxr+qDtusvM4zzfpwUHruZMcEtKE 1BQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682749575; x=1685341575; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=8QaLvOuGvP/VTY5fNEvyFgLx3AUnJ5DiY7zL+MDNAxk=; b=dscx3/Bm88YT6XRDXwD7AI+oRRxhuzaCoY5+CI2HKpkcYeSyRY6VRrAiQqGA84V7fw /V4uga3ZBaD1ERjA3eAtE8pf2TWFhFBzkoOilpnnCCoboE6cG6UzyRyJ7cW9uDt++j9T W0LF0jbniQNdRMPVdDub7L+Tb2nxubl5A+Q/kxo+NWcAZidWbEOWDOHIlmJYzSNbV/BB x/zce6oxoj+7EV65zZPi8biQtHrvx6x3ed91mumyoBSYYtY2mw+RnW6N8nydbur8MFoU Der+p70Yy/0jEiq+OOjcaUcWkDRizr5c+K9go/1vK2hvXiKxOSokQtEMIjJ745KarajW B0Vg== X-Gm-Message-State: AC+VfDxpzwPkocKhTIJBYuhnYZ46Qm4nwIr5j7n2WCRuZ/4hB7alSrQP 40FzDUINh9L5CPeRz+V+Ya4= X-Google-Smtp-Source: ACHHUZ7aBRiX0aGGui40N2Qad/IuEq5er8s1CBm7SNgY6BktRYH+EqjY3hUbKIc1qpOIBPNTin8iJg== X-Received: by 2002:a17:907:268e:b0:862:c1d5:ea1b with SMTP id bn14-20020a170907268e00b00862c1d5ea1bmr6436101ejc.8.1682749574579; Fri, 28 Apr 2023 23:26:14 -0700 (PDT) Received: from lumine.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id v10-20020a1709063bca00b0094ee3e4c934sm12193625ejf.221.2023.04.28.23.26.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Apr 2023 23:26:14 -0700 (PDT) Message-ID: <172f246e91445b431fb289b6cb346d37a8da1c08.camel@gmail.com> From: Liliana Marie Prikler Date: Sat, 29 Apr 2023 08:26:13 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.0 MIME-Version: 1.0 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-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1682749635; a=rsa-sha256; cv=none; b=bzTIGZnfJIhOT9k+jsNGhQY15A8D5tdPZcNtEkUkD8i8Zf7CLM6e015ww/K8k0HD6Cpcm1 LqokqNIvOM0qFnZbBTUDWOkNQOdKESKAqUbY1iXxul6a9amaXLZgHHwfHYPVody7+wrDsn QvMQVJaeVjdcYuHzYeernyKFNNOVTNvYo1omq14JZaalzr7bVLTLiH9aphWyLfqkJ4AB8l HT4aKccdwNrLmTFGhIqmOQTIL9MtR1En6ADtSAcwhvCZ3k44/32M6Wk7dXhIvhKfRd66/4 a6Ps/8MF5OsRmo8mE3voaQ6RKBi57qQlf2y6U4LaEDNjZbFNoYAVR5sC4swJQQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=QrfxJ6XV; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1682749635; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: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=8QaLvOuGvP/VTY5fNEvyFgLx3AUnJ5DiY7zL+MDNAxk=; b=Adq1ckhoTNdpqU5ydGfl3oPEjuBiE688Mlv9cJ1zlt6c6tvIpZcNy3SrzGQ8sPAXdKa0bB SU82dItYVscokpBeNvZDLd8YbEUum8fCkH/TU4ZYZcBXZQD3aRqxKgg3GnsGEWwG+HWmPA 1mcVfB74bInVH8m1s5igibl7Dt7LO/XcDc+JkCpqRJcYsTKUcmnBQQBgANoQ7lII/TlQKc VZ98tnWVxNbwGkckN6fe0nh/yPUNz/v9cT/qsunlDXPY7nMo6Uoznf291jDWtD/TL0DsLN iUVbMg2bBuO/yS4uIoPRY2RGQ+dWBll/Ld3Is+fvpNGYMfv52AwuUxUymRppjw== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=QrfxJ6XV; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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-Spam-Score: 5.80 X-Spam-Score: 5.80 X-Migadu-Queue-Id: 52AEC10BE9 X-TUID: F6qXIU+9Z2Q1 Am Freitag, dem 28.04.2023 um 10:26 -0400 schrieb Maxim Cournoyer: > Prior to this change, there was a discrepancy where a user could have > disagreeing groups between the group and user fields (the user field > being a record, which includes its primary group as a > string).=C2=A0 This could have caused problems because the USER's group > was being used to set the file permissions, while the GROUP name was > serialized to MPD's configuration, and MPD would use it to set the > group of its running process.=C2=A0 Synchronizing both is not practical, > as it can easily lead to slightly different objects > conflicting, again causing problems. >=20 > The compromise is to obsolete the 'group' field.=C2=A0 A group can still > be configured via the 'user' field, which accepts a > object, with the limitation that the group should already exist. Most services generate both an account and a group, whereas MPD would be the odd one out here. Defaulting to mpd:audio also has some minor consequences when group permissions entail semantics, as this would allow everyone in the audio group group access to mpd's stuff, which seems needlessly permissive. For this reason I think it makes sense to allow users to specify a group, though it need not necessarily be via the group field =E2=80=93 for instance, we could make the user-accounts vis= ible to allow both specification of (list user group) and user alone, deprecating the user and group fields in the process. (Though we could still provide read accessors to those.) This still leaves us with the question of how to make audio work out of the box. IIRC using supplementary groups does not suffice, because the service won't work then; do I actually recall that correctly? =20 Cheers