From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=none (p=none dis=none) header.from=lix.systems Received: from mail.eno.space (eno.space [IPv6:2a01:4f8:c17:fec::1]) by passt.top (Postfix) with ESMTPS id A151A5A0269 for ; Thu, 26 Nov 2026 20:04:37 +0100 (CET) Received: from [IPV6:2003:e5:3f1c:c865:b951:d4e:4ff9:3960] (p200300e53f1cc865b9510d4e4ff93960.dip0.t-ipconnect.de [IPv6:2003:e5:3f1c:c865:b951:d4e:4ff9:3960]) by mail.eno.space (Postfix) with ESMTPSA id 4jb5ZX5Lplz7mPSK; Thu, 26 Nov 2026 20:04:36 +0100 (CET) Message-ID: <6a3d919f-8fe9-4473-ac11-7d3d1a4b6173@lix.systems> Date: Thu, 26 Nov 2026 20:04:34 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: pasta: patches for --pass-fds (fix) and --ready-fd (new) Content-Language: en-US To: Stefano Brivio , Lisanna Dettwyler References: <20261124192024.0e16f855@elisabeth> From: eldritch horrors In-Reply-To: <20261124192024.0e16f855@elisabeth> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-MailFrom: pennae@lix.systems X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation Message-ID-Hash: EGD37FHI5AB4VEYO6XJTCJK3TMQYSA3L X-Message-ID-Hash: EGD37FHI5AB4VEYO6XJTCJK3TMQYSA3L X-Mailman-Approved-At: Thu, 26 Nov 2026 20:10:12 +0100 CC: passt-dev@passt.top, raito@lix.systems, sergei@zimmerman.foo X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: 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.