From: eldritch horrors <pennae@lix.systems>
To: Stefano Brivio <sbrivio@redhat.com>
Cc: Lisanna Dettwyler <lisanna.dettwyler@gmail.com>,
passt-dev@passt.top, raito@lix.systems, sergei@zimmerman.foo,
Paul Holzinger <pholzing@redhat.com>
Subject: Re: pasta: patches for --pass-fds (fix) and --ready-fd (new)
Date: Sat, 5 Dec 2026 02:14:39 +0100 [thread overview]
Message-ID: <6cdb247e-939c-4a63-b707-010c5a7a52c8@lix.systems> (raw)
In-Reply-To: <2b7695c7-dff6-43c0-bb31-dffa097714a9@lix.systems>
On 04/12/2026 19:42, eldritch horrors wrote:
> we've already tested this in principle, but haven't had the time to
> integrate it in lix and test it there. this does seem to work (thanks --
> pid /dev/stout), it just has the slight annoyance factor that stdout
> isn't closed once the pid is written. we can totally live with that
> though; pid on stdout is a fine signal for startup completion :)
correction after further tests: this does not work under all
circumstances. we've also rediscovered our original issue that led to
the fd passing crimes.
pasta, when called with namespaces paths or a pid, must be able to read
the namespace files in /proc. changing the owner of these files requires
an exec transition *after* the namespaces have been unshared. requiring
an exec transition introduces synchronization overhead because we can't
simply wait for clone() to return and be sure to have access to all the
namespaces we need, and we need something to exec in the first place,
including a bunch of overhead for the exec process. passing namespace
fds via inheritance solves all of these problems.
running pasta as root or with capabilities is not always possible, so
having pasta open namespace files early will not help.
we're not fully positive that /dev/stdout is a viable target in all
cases either, we've seen open failures for both that and /proc/self/fd/1
in some tests. not sure where those came from, but a --pid-to-stdout
option or similar would be greatly appreciated.
next prev parent reply other threads:[~2026-12-05 1:14 UTC|newest]
Thread overview: 11+ 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
2026-11-24 21:32 ` Stefano Brivio
2026-11-26 19:04 ` eldritch horrors
2026-11-27 22:25 ` Stefano Brivio
2026-11-29 20:11 ` eldritch horrors
2026-12-02 11:49 ` Stefano Brivio
2026-12-04 18:42 ` eldritch horrors
2026-12-05 1:14 ` eldritch horrors [this message]
2026-12-05 23:30 ` 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=6cdb247e-939c-4a63-b707-010c5a7a52c8@lix.systems \
--to=pennae@lix.systems \
--cc=lisanna.dettwyler@gmail.com \
--cc=passt-dev@passt.top \
--cc=pholzing@redhat.com \
--cc=raito@lix.systems \
--cc=sbrivio@redhat.com \
--cc=sergei@zimmerman.foo \
/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).