* [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
* Re: [PATCH] host/rootfs: create groups assumed by udev
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:54 ` Alyssa Ross
1 sibling, 1 reply; 5+ messages in thread
From: Demi Marie Obenour @ 2025-12-05 10:11 UTC (permalink / raw)
To: Alyssa Ross, devel
[-- Attachment #1.1.1: Type: text/plain, Size: 1365 bytes --]
On 12/4/25 10:04, Alyssa Ross wrote:
> 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:
Do we even need this? SGX needs userspace tools that Spectrum
doesn't have. I presume that the need for this will go away once
Spectrum's host is built without SGX.
> +audio:x:9:
> +lp:x:10:
> +disk:x:11:
> +cdrom:x:12:
> +tape:x:13:
> +kvm:x:14:
>
> base-commit: a13d3403c1ddbb8dbbbdb05416350b2846162ed1
With or without the above change:
Acked-by: Demi Marie Obenour <demiobenour@gmail.com>
--
Sincerely,
Demi Marie Obenour (she/her/hers)
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 7253 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] host/rootfs: create groups assumed by udev
2025-12-05 10:11 ` Demi Marie Obenour
@ 2025-12-05 10:18 ` Alyssa Ross
2025-12-05 10:22 ` Demi Marie Obenour
0 siblings, 1 reply; 5+ messages in thread
From: Alyssa Ross @ 2025-12-05 10:18 UTC (permalink / raw)
To: Demi Marie Obenour; +Cc: devel
[-- Attachment #1: Type: text/plain, Size: 1358 bytes --]
Demi Marie Obenour <demiobenour@gmail.com> writes:
> On 12/4/25 10:04, Alyssa Ross wrote:
>> 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:
>
> Do we even need this? SGX needs userspace tools that Spectrum
> doesn't have. I presume that the need for this will go away once
> Spectrum's host is built without SGX.
I think it's better to have it, because without it udev will continue to
warn about it when it reads the default rules. This happens regardless
of whether a matching device actually exists.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] host/rootfs: create groups assumed by udev
2025-12-05 10:18 ` Alyssa Ross
@ 2025-12-05 10:22 ` Demi Marie Obenour
0 siblings, 0 replies; 5+ messages in thread
From: Demi Marie Obenour @ 2025-12-05 10:22 UTC (permalink / raw)
To: Alyssa Ross; +Cc: devel
[-- Attachment #1.1.1: Type: text/plain, Size: 1529 bytes --]
On 12/5/25 05:18, Alyssa Ross wrote:
> Demi Marie Obenour <demiobenour@gmail.com> writes:
>
>> On 12/4/25 10:04, Alyssa Ross wrote:
>>> 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:
>>
>> Do we even need this? SGX needs userspace tools that Spectrum
>> doesn't have. I presume that the need for this will go away once
>> Spectrum's host is built without SGX.
>
> I think it's better to have it, because without it udev will continue to
> warn about it when it reads the default rules. This happens regardless
> of whether a matching device actually exists.
Ah, I missed that part. Then keep it.
--
Sincerely,
Demi Marie Obenour (she/her/hers)
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 7253 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] host/rootfs: create groups assumed by udev
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:54 ` Alyssa Ross
1 sibling, 0 replies; 5+ messages in thread
From: Alyssa Ross @ 2025-12-05 10:54 UTC (permalink / raw)
To: Alyssa Ross, devel; +Cc: Demi Marie Obenour
This patch has been committed as 92e219e7c08c479d216a46d2736ea9d229ff034d,
which can be viewed online at
https://spectrum-os.org/git/spectrum/commit/?id=92e219e7c08c479d216a46d2736ea9d229ff034d.
This is an automated message. Send comments/questions/requests to:
Alyssa Ross <hi@alyssa.is>
^ permalink raw reply [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).