patches and low-level development discussion
 help / color / mirror / code / Atom feed
* [PATCH] host/rootfs: create groups assumed by udev
@ 2025-12-04 15:04 Alyssa Ross
  2025-12-05 10:11 ` Demi Marie Obenour
  2025-12-05 10:54 ` Alyssa Ross
  0 siblings, 2 replies; 5+ messages in thread
From: Alyssa Ross @ 2025-12-04 15:04 UTC (permalink / raw)
  To: devel; +Cc: Demi Marie Obenour

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


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-12-05 10:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-04 15:04 [PATCH] host/rootfs: create groups assumed by udev Alyssa Ross
2025-12-05 10:11 ` 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

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).