!UNVBThoJtlIiVwiDjU:nixos.org

Staging

315 Members
Staging merges | Running staging cycles: https://github.com/NixOS/nixpkgs/pulls?q=is%3Apr+is%3Aopen+head%3Astaging-next+head%3Astaging-next-25.05 | Review Reports: https://malob.github.io/nix-review-tools-reports/108 Servers

Load older messages


SenderMessageTime
19 Oct 2025
@elvishjerricco:matrix.orgElvishJerriccoright I'm not saying the rule is the problem19:12:47
@elvishjerricco:matrix.orgElvishJerriccoI'm saying I don't understand what has changed here19:13:01
@dramforever:matrix.orgdramforeverright but point is it's probably something about the uaccess redesign right19:13:08
@elvishjerricco:matrix.orgElvishJerricco because even if /dev/snd/timer isn't tracked by udev, it should (I think?) still have that rule apply to it when any other sound device appears 19:13:30
@elvishjerricco:matrix.orgElvishJerriccoanyway the fix for the test is probably just to check a different device, since something funky is going on with this one specifically19:16:35
@elvishjerricco:matrix.orgElvishJerriccobut I'm still concerned with what's going on with this device specifically19:16:45
@dramforever:matrix.orgdramforeverthe device itself is normal, this is a fake "static node" device19:18:19
@dramforever:matrix.orgdramforeverwhen you access it the kernel loads the corresponding kernel module19:18:46
@dramforever:matrix.orgdramforeverthe not normal part is udev not applying the permission to this placeholder device19:19:03
@dramforever:matrix.orgdramforever* the device itself is normal, this is a fake, really placeholder "static node" device19:19:10
@dramforever:matrix.orgdramforeverbut if that's the case this is a regression in sd 258, this means users can't trigger the module load anymore19:21:54
@elvishjerricco:matrix.orgElvishJerricco dramforever: I think I'm going to learn something today :P I have never been clear on what "static device nodes" actually are. 19:24:03
@dramforever:matrix.orgdramforeverso19:24:32
@dramforever:matrix.orgdramforever you notice how you have /dev/snd/timer but lsmod has no snd-timer, right? 19:24:45
@dramforever:matrix.orgdramforever go head -c 0 /dev/snd/timer which opens the device, and closes 19:24:59
@dramforever:matrix.orgdramforever * go head -c 0 /dev/snd/timer which opens the device, and closes it 19:25:01
@dramforever:matrix.orgdramforevernow you magically do have snd-timer loaded19:25:10
@elvishjerricco:matrix.orgElvishJerriccook19:25:50
@elvishjerricco:matrix.orgElvishJerricco so, what, userspace creates fake device nodes, and the major/minor thing tells the kernel what it's supposed to be, and the kernel knows to load the corresponding module when it's accessed? 19:26:26
@dramforever:matrix.orgdramforeverexactly19:26:55
@elvishjerricco:matrix.orgElvishJerriccointeresting19:27:01
@dramforever:matrix.orgdramforever userspace knows what placeholders there could be by reading /lib/modules/*/modules.devname 19:28:19
@dramforever:matrix.orgdramforeverand i think it loads module by a device number alias, so snd-timer is char-major-116-3319:29:01
@elvishjerricco:matrix.orgElvishJerricco so, running on systemd 257.9, I still see that udev doesn't recognize /dev/snd/timer as a device, and snd_timer is not in lsmod 19:31:38
@elvishjerricco:matrix.orgElvishJerriccoso those things are the same19:31:41
@dramforever:matrix.orgdramforeveroh, right, https://www.freedesktop.org/software/systemd/man/latest/udev.html#static_node=19:31:50
@dramforever:matrix.orgdramforever.... i thought i understood what this is but now i don't anymore19:32:33
@elvishjerricco:matrix.orgElvishJerricco I mean it almost certainly has something to do with the uaccess changes 19:34:41
@elvishjerricco:matrix.orgElvishJerriccowat 19:35:31
@elvishjerricco:matrix.orgElvishJerricco
In [2]: print(machine.execute("ls -lha /run/udev/static_node-tags/uaccess/")[1])
total 0
drwxr-xr-x 2 root root 80 Oct 19 19:34 .
drwxr-xr-x 3 root root 60 Oct 19 19:34 ..
lrwxrwxrwx 1 root root 12 Oct 19 19:34 snd\x2fseq -> /dev/snd/seq
lrwxrwxrwx 1 root root 14 Oct 19 19:34 snd\x2ftimer -> /dev/snd/timer
19:35:35

Show newer messages


Back to Room ListRoom Version: 6