!9IQChSjwSHXPPWTa:lix.systems

Lix

1138 Members
Lix user channel. Feel free to discuss on-topic issues here and give each other help. For matrix.to links to the rest of the Lix channels, see: https://wiki.lix.systems/books/lix-organisation/page/matrix-rooms314 Servers

Load older messages


SenderMessageTime
10 Apr 2026
@raitobezarius:matrix.orgraitobezariusand intercept what is being built11:16:56
@emilazy:matrix.orgemilyin this setting you have peer credentials from the build11:17:01
@raitobezarius:matrix.orgraitobezariusit would be great to have a generic toolkit to do that11:17:05
@raitobezarius:matrix.orgraitobezariusyes11:17:10
@emilazy:matrix.orgemilyso can walk up to the daemon proc to get its PID, look that up, (and then make sure the PID/socket still lives to avoid TOCTOU I guess)11:17:56
@raitobezarius:matrix.orgraitobezariusah btw, if you have cgroups11:18:04
@raitobezarius:matrix.orgraitobezariusyou can do nice things11:18:06
@raitobezarius:matrix.orgraitobezariusjust list all the cgroups11:18:08
@raitobezarius:matrix.orgraitobezariusthey contain the drvHash in their names11:18:12
@raitobezarius:matrix.orgraitobezariusby that, I mean: https://gerrit.lix.systems/c/lix/+/477311:19:12
@emilazy:matrix.orgemilyright. that is nice but not sure I can assume it. (can builds make child cgroups? I guesS you need to check hierarchy if so?)11:20:49
@emilazy:matrix.orgemily * 11:20:56
@emilazy:matrix.orgemilyalso can you actually query the daemon for a hash w/o drv name or do you need to walk the store? 🤔11:21:28
@raitobezarius:matrix.orgraitobezariusbuild can make child cgroups11:36:49
@raitobezarius:matrix.orgraitobezariusyou can probably directly query the sqlite database i think :D11:37:07
@raitobezarius:matrix.orgraitobezariusyou can prevent that manually if you listen on cgroup appearances11:37:25
@raitobezarius:matrix.orgraitobezariusand write in subtree_control11:37:31
@ktrompfl:matrix.org@ktrompfl:matrix.org joined the room.11:54:28
@emilazy:matrix.orgemilynot sure that's better :D12:15:43
@emilazy:matrix.orgemilysystemd stores env var style metadata about cgroups or such right? I guess the full drvPath could go in there?12:16:22
@raitobezarius:matrix.orgraitobezariusThis doesn't ring a bell to me, what are you thinking of?12:16:45
@emilazy:matrix.orgemilyI may be completely hallucinating a memory12:17:41
@raitobezarius:matrix.orgraitobezariusI think I know systemd stores things like INVOCATION_ID and so on, but I don't really know where they live, I think they're in the sd PID1 memory or something12:20:17
@raitobezarius:matrix.orgraitobezariusI know there's some desires to add xattrs to cgroups inodes to store more data, in relation with the Flatpak sandboxing work and real-time permission bestow/removal12:20:46
@raitobezarius:matrix.orgraitobezariusBut the kernel feature is not even ready yet12:20:50
@emilazy:matrix.orgemilyyeah I was thinking more attaching stuff to systemd scope units12:22:18
@raitobezarius:matrix.orgraitobezariusThere might be something but my brain cannot come up with a hit on this sort of question12:23:15
@ktrompfl:matrix.org@ktrompfl:matrix.orgHey, I'm not sure if this is the right place to ask, but I have a question about a rust package (https://github.com/Ktrompfl/jay/tree/nix-flake) which builds fine with CppNix 2.31.3 but fails to build with Lix 2.94.1 due to some failing tests. These tests fail on creating an io_uring instance with os error 38, most likely due to the sandboxed build environment. Is this intended and the package should just skip the respective tests or is this a problem with either CppNix or Lix?12:30:27
@xokdvium:matrix.orgSergei Zimmerman (xokdvium) joined the room.12:31:36
@k900:0upti.meK900Yes, intended12:32:44

Show newer messages


Back to Room ListRoom Version: 10