public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
From: Sergei Zimmerman <sergei@zimmerman.foo>
To: Stefano Brivio <sbrivio@redhat.com>
Cc: Lisanna Dettwyler <lisanna.dettwyler@gmail.com>,
	passt-dev@passt.top, pennae@lix.systems, raito@lix.systems
Subject: Re: pasta: patches for --pass-fds (fix) and --ready-fd (new)
Date: Tue, 24 Nov 2026 18:46:29 +0000	[thread overview]
Message-ID: <W8-uWkbAfDylvEA9-p9MTTv96aucsZYvFLgWZ33Ftb1JIV66tEs4Qp_1PcBTHxOtRjydAMDoWO6K-dbk82TmnZgHzYRAy3bsABmubk9p1_U=@zimmerman.foo> (raw)
In-Reply-To: <20261124192024.0e16f855@elisabeth>

> 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 <sbrivio@redhat.com> wrote:
Hi Lisanna,

On Mon, 23 Nov 2026 17:11:39 -0500
Lisanna Dettwyler <lisanna.dettwyler@gmail.com> wrote:

> 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_+o8Wt5zgGYzi1gdNvtoRK-A@mail.gmail.com/

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


  reply	other threads:[~2026-11-24 18:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23 22:11 Lisanna Dettwyler
2026-11-24 18:20 ` Stefano Brivio
2026-11-24 18:46   ` Sergei Zimmerman [this message]
2026-11-24 21:32     ` Stefano Brivio

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='W8-uWkbAfDylvEA9-p9MTTv96aucsZYvFLgWZ33Ftb1JIV66tEs4Qp_1PcBTHxOtRjydAMDoWO6K-dbk82TmnZgHzYRAy3bsABmubk9p1_U=@zimmerman.foo' \
    --to=sergei@zimmerman.foo \
    --cc=lisanna.dettwyler@gmail.com \
    --cc=passt-dev@passt.top \
    --cc=pennae@lix.systems \
    --cc=raito@lix.systems \
    --cc=sbrivio@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

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 IMAP folder(s).