From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.5 (2021-03-20) on atuin.qyliss.net X-Spam-Level: X-Spam-Status: No, score=-4.5 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=3.4.5 Received: by atuin.qyliss.net (Postfix, from userid 496) id 1101616CC0; Thu, 22 Apr 2021 01:01:26 +0000 (UTC) Received: from atuin.qyliss.net (localhost [IPv6:::1]) by atuin.qyliss.net (Postfix) with ESMTP id F2EBC16C6D; Thu, 22 Apr 2021 01:01:20 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 496) id 162D016C5E; Thu, 22 Apr 2021 01:01:19 +0000 (UTC) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by atuin.qyliss.net (Postfix) with ESMTPS id 9E15516C5D for ; Thu, 22 Apr 2021 01:01:15 +0000 (UTC) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 6E2AF5C0062 for ; Wed, 21 Apr 2021 21:01:14 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Wed, 21 Apr 2021 21:01:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alyssa.is; h= from:to:subject:date:message-id:mime-version :content-transfer-encoding; s=fm2; bh=DISXm7rsiTdwPKAxZPlcCKM7P5 8gSgR+pt5r5B+ECpc=; b=OLws8wsfUTsxxXHW+F1zyAdJ9dNPhXXrqTlq3J26gf bGzoRmpmmEQEcZP+pR12ur4809q+uqc/nZ+eSrcImRyBaenvZLyX2VdNxqf487gG LJgv2pOdZgPV5rXeHCul3S5J05lRDfwu/5IrJiXSa5/RRzpfrEDAxFyhozK4v2yb 1RBwwbtvnu5wQNrq+CK5nEV04ZjRFRtutDM8ZCYA0FgDQaaJmLY8co/7QSnA1MXh 0p7/T4H9GctH8vshSsYwkuRYpZCGvrNYb0nVnfBlh7Hpv3jF+DjUhiDJeocFrD7K GaD+2IZ1u4QJ+UEcRy9a2SSqgFFMpMlTekqrcHsWJ1fw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=DISXm7rsiTdwPKAxZ PlcCKM7P58gSgR+pt5r5B+ECpc=; b=e04l+gjiLHbrgaOxQQ4DzN9hL8fWORh6T LebSXT7pv7ctVz1pRc0bjdim3DbhEcuhWNxlW/v6XhkHa9e4GEe6oh3njgGuovOM tL7Cefi8/oFBa3TN9L0HXzMuPNnLix6fmwyKpfiA5TaG3Ksnme0Ar29EyMlJJvq6 Ey3OL6m3iOtUWTBx680MKuMf2OVhRUiq9qVOl5fqhaEGixgui+JhM56aKwhMXDgc khS0c9l1UZERsJ48nCm+kavbapftZafg9TKKptgnUaJ4V2yL8KgmEWiUx1A+bf6s RN+XL6ko57piVYfbwtRbUI839Ct7AAA7t9wmTM8wqayYwE8ffFuoQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvddtledggeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgggfestdekredtre dttdenucfhrhhomheptehlhihsshgrucftohhsshcuoehhihesrghlhihsshgrrdhisheq necuggftrfgrthhtvghrnhephedvfffghfetieejgfetfedtgffhvdehueehvdejudfgge fgleejgfelfeevgfefnecukfhppeekgedrudekgedrvddviedrkedunecuvehluhhsthgv rhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepqhihlhhishhsseigvddvtd drqhihlhhishhsrdhnvght X-ME-Proxy: Received: from x220.qyliss.net (p54b8e251.dip0.t-ipconnect.de [84.184.226.81]) by mail.messagingengine.com (Postfix) with ESMTPA id A3BE524005A for ; Wed, 21 Apr 2021 21:01:13 -0400 (EDT) Received: by x220.qyliss.net (Postfix, from userid 1000) id 97C1E392; Thu, 22 Apr 2021 01:01:11 +0000 (UTC) From: Alyssa Ross To: devel@spectrum-os.org Subject: [PATCH nixpkgs] spectrumPackages.makeRootfs: fix messagebus group Date: Thu, 22 Apr 2021 01:01:05 +0000 Message-Id: <20210422010105.415233-1-hi@alyssa.is> X-Mailer: git-send-email 2.31.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: Q64N6KDQ3GM6OAR4XHB2L4CKXVCFN7RV X-Message-ID-Hash: Q64N6KDQ3GM6OAR4XHB2L4CKXVCFN7RV X-MailFrom: qyliss@x220.qyliss.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.4 Precedence: list List-Id: Patches and low-level development discussion Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: /etc/passwd set the messagebus user's primary group to 1, but there was no group with that id in /etc/group. The messagebus group had id 4. The 4 comes from NixOS. I think it's probably a good idea to use the same user and group ids where possible -- there's no particular reason to diverge -- so let's fix it in /etc/passwd instead of changing the id in /etc/group to 1. And while we're here, for consistency, let's change the user id of messagebus to 4 as well, so that's consistent with NixOS as well. I don't think the user ID is used anywhere else. This fixes the DBus "Permission denied" errors that have been showing up in vm-net since forever (but never seemed to cause any real harm...). --- pkgs/os-specific/linux/spectrum/rootfs/etc/passwd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/os-specific/linux/spectrum/rootfs/etc/passwd b/pkgs/os-specific/linux/spectrum/rootfs/etc/passwd index c76fb8f2a99..ddb1f854a6e 100644 --- a/pkgs/os-specific/linux/spectrum/rootfs/etc/passwd +++ b/pkgs/os-specific/linux/spectrum/rootfs/etc/passwd @@ -1,3 +1,3 @@ root:x:0:0:System administrator:/:/bin/sh -messagebus:x:1:1:D-Bus system message bus daemon user:/run/dbus:/bin/sh +messagebus:x:4:4:D-Bus system message bus daemon user:/run/dbus:/bin/sh user:x:1000:1000:User:/:/bin/sh -- 2.31.0