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 [49.12.14.75]) by passt.top (Postfix) with ESMTPS id 48BA95A026E for ; Sat, 05 Dec 2026 02:14:46 +0100 (CET) Received: from [IPV6:2a02:810b:4d0c:d00:9795:6509:2346:6bdd] (unknown [IPv6:2a02:810b:4d0c:d00:9795:6509:2346:6bdd]) by mail.eno.space (Postfix) with ESMTPSA id 4jh9Px23BRz7nv5D; Sat, 05 Dec 2026 02:14:45 +0100 (CET) Message-ID: <6cdb247e-939c-4a63-b707-010c5a7a52c8@lix.systems> Date: Sat, 5 Dec 2026 02:14:39 +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 From: eldritch horrors To: Stefano Brivio References: <20261124192024.0e16f855@elisabeth> <6a3d919f-8fe9-4473-ac11-7d3d1a4b6173@lix.systems> <20261127232541.2474fc81@elisabeth> <6d2ed11c-0109-409c-b584-adbdc43fb862@lix.systems> <20261202124901.0ab686fd@elisabeth> <2b7695c7-dff6-43c0-bb31-dffa097714a9@lix.systems> In-Reply-To: <2b7695c7-dff6-43c0-bb31-dffa097714a9@lix.systems> 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: ZJER2EPFCQNA2XLLVVXWLK4DENNY444I X-Message-ID-Hash: ZJER2EPFCQNA2XLLVVXWLK4DENNY444I X-Mailman-Approved-At: Sat, 05 Dec 2026 04:25:49 +0100 CC: Lisanna Dettwyler , passt-dev@passt.top, raito@lix.systems, sergei@zimmerman.foo, Paul Holzinger 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: 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.