From: Alyssa Ross <hi@alyssa.is>
To: devel@spectrum-os.org
Cc: Demi Marie Obenour <demiobenour@gmail.com>
Subject: [PATCH] host/rootfs: create groups assumed by udev
Date: Thu, 4 Dec 2025 16:04:10 +0100 [thread overview]
Message-ID: <20251204152239.1508396-1-hi@alyssa.is> (raw)
We don't really care about these groups, but if they don't exist, udev
will also not apply the "other" modes from rules, leaving
e.g. /dev/kvm root-only when it should be globally read/write.
tty is set to 5, conforming with the systemd convention.
Link: https://systemd.io/UIDS-GIDS/
Signed-off-by: Alyssa Ross <hi@alyssa.is>
---
Demi, this should avoid the need to add a udev rule for /dev/kvm.
host/rootfs/image/etc/group | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/host/rootfs/image/etc/group b/host/rootfs/image/etc/group
index 18acc30..e3ade46 100644
--- a/host/rootfs/image/etc/group
+++ b/host/rootfs/image/etc/group
@@ -1 +1,15 @@
root:x:0:root
+clock:x:1:
+dialout:x:2:
+kmem:x:3:
+input:x:4:
+tty:x:5:
+video:x:6:
+render:x:7:
+sgx:x:8:
+audio:x:9:
+lp:x:10:
+disk:x:11:
+cdrom:x:12:
+tape:x:13:
+kvm:x:14:
base-commit: a13d3403c1ddbb8dbbbdb05416350b2846162ed1
--
2.51.0
next reply other threads:[~2025-12-04 15:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-04 15:04 Alyssa Ross [this message]
2025-12-05 10:11 ` [PATCH] host/rootfs: create groups assumed by udev Demi Marie Obenour
2025-12-05 10:18 ` Alyssa Ross
2025-12-05 10:22 ` Demi Marie Obenour
2025-12-05 10:54 ` Alyssa Ross
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251204152239.1508396-1-hi@alyssa.is \
--to=hi@alyssa.is \
--cc=demiobenour@gmail.com \
--cc=devel@spectrum-os.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://spectrum-os.org/git/crosvm
https://spectrum-os.org/git/doc
https://spectrum-os.org/git/mktuntap
https://spectrum-os.org/git/nixpkgs
https://spectrum-os.org/git/spectrum
https://spectrum-os.org/git/ucspi-vsock
https://spectrum-os.org/git/www
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).