public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
From: eldritch horrors <pennae@lix.systems>
To: Stefano Brivio <sbrivio@redhat.com>,
	Lisanna Dettwyler <lisanna.dettwyler@gmail.com>
Cc: passt-dev@passt.top, raito@lix.systems, sergei@zimmerman.foo
Subject: Re: pasta: patches for --pass-fds (fix) and --ready-fd (new)
Date: Thu, 26 Nov 2026 20:04:34 +0100	[thread overview]
Message-ID: <6a3d919f-8fe9-4473-ac11-7d3d1a4b6173@lix.systems> (raw)
In-Reply-To: <20261124192024.0e16f855@elisabeth>

hi,

On 24/11/2026 19:20, Stefano Brivio wrote:
> ...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.

that just doesn't seem to work for us. we can't pass a PID for pasta to 
pull namespaces from because it'll fail to adopt user namespaces when 
run with non-root credentials. we can't pass procfs paths to namespace 
descriptors on other processes because pasta can't even open them in 
that case for some reason? when running pasta with high capabilities and 
letting it drop privs this works reasonably well, but we must also 
support unprivileged instances with user namespaces. some sort of fd 
passing seems to be essential to make our use case work at all.

we also need to tear down pasta *quickly* once our processes using the 
isolated network terminate. we can run hundreds of them per second, 
leaving pasta instances around until they find the namespace gone is the 
kind of drain on resources our scheduler wants to avoid, and on highly 
loaded system we can't even guarantee that any given pasta instance can 
check whether its namespaces are still live in any reasonable amount of 
time. we could probably get around *that* by shoving pasta into a fresh 
pid namespace under a manager as pid1, then killing that manager and 
having the manager wait for pasta to fork.

      parent reply	other threads:[~2026-11-26 19:04 UTC|newest]

Thread overview: 5+ 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 [this message]

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=6a3d919f-8fe9-4473-ac11-7d3d1a4b6173@lix.systems \
    --to=pennae@lix.systems \
    --cc=lisanna.dettwyler@gmail.com \
    --cc=passt-dev@passt.top \
    --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).