and at that point it looked like you could just let pasta do its job and daemonise itself
Forgive me if I’m slightly incorrect on the details, but here’s the simplification that can be done in the lix build launcher: https://gerrit.lix.systems/c/lix/+/6897
There’s several arguments I see for the ready pipe:
* Asynchronous waiting for the child exit is painful without pidfd. This seems relevant for lix.
* The setup completion is waited upon in another child process of lix while the parent that spawned pasta goes off on its merry way, so I’m not even sure you *could* wait for the daemonization to complete in this process setup? I’d need to brush up on pidfd polling and whether it can work around wait4 limiting you to child processes.
As for the other commit, fd inheritance seems like a useful simplification. Closing leaked FDs is the parent’s responsibility that cppnix and lix* already handle so whatever is inherited is done intentionally.
Best regards,
Sergei
-------- Original Message --------
On Tuesday, 11/24/26 at 22:20 Stefano Brivio
Hello!
I have a couple patches that makes pasta easier for us to use.
...and that's indeed a relevant goal for passt as a project, by all means, but I still have some questions about this:
--ready-fd allows us to wait on fd activity rather than sleep polling with an ioctl (we do not want to let pasta daemonize itself). --pass-fds is fixed to allow opening namespaces by inherited parent fd.
https://github.com/lisanna-dettwyler/passt/compare/master...dev-nix
We discussed about this some months ago, remember? https://archives.passt.top/passt-dev/CAC-VXLYqvXu+yHsM=DUt-7MSGp_+o8Wt5zgGYz... ...and at that point it looked like you could just let pasta do its job and daemonise itself, but there were some residual issues with capabilities you were investigating. Did you find out anything else? Is there another way we can fix this? My concerns from back then remain. I would like to keep pasta's interfaces as simple, limited, conventional, and boring as possible, for ease of auditing and also for the sake of LSM policies, and the current model just works for Podman and moby / rootlesskit.
Please let me know if these can be merged! We are interested as both https://nixos.org and https://lix.systems/
If this is the only way you can fix things up, sure... but there seemed to be hope? -- Stefano