From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=fail (p=quarantine dis=none) header.from=zimmerman.foo Received: from mail-4318.protonmail.ch (mail-4318.protonmail.ch [185.70.43.18]) by passt.top (Postfix) with ESMTPS id A4EAA5A026E for ; Tue, 24 Nov 2026 19:46:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zimmerman.foo; s=protonmail3; t=1795545992; x=1795805192; bh=MDbNpNfZIrOYmMEP45/zOWfc5F61iPmY7fPBLCwFZLI=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=Ku0kB/15tdUY/LQRB0npziFpayIekjVyS60BOmM83Mu5JuF+Xqxx31l0x67pSVPM7 GP15nDZCk1ho2xXkq6Kt89PqVxakHXobv5urx8QFVJsjZlzCbAbdlhqaRDdkpnW/Fg MWFiT/l6R58xM+iynoTBnNOhyOypFXrbHNEKiE6xIQuUp2OQyg8DDiXuPhNVOkY/Vw TRHlqpviEcPRtGSYvtvpO80DCERqT4RKBpiZaUeKsxWda4brYUFrX1rQji4wUnohSQ NDFkVFx4MMTT9LBULSPNw2SX42ZHuQD5Kn0vz7eick0M2/f9SClZlkDBxY/7vd4g8w Ugs0J3FR/+2ww== Date: Tue, 24 Nov 2026 18:46:29 +0000 To: Stefano Brivio From: Sergei Zimmerman Subject: Re: pasta: patches for --pass-fds (fix) and --ready-fd (new) Message-ID: In-Reply-To: <20261124192024.0e16f855@elisabeth> References: <20261124192024.0e16f855@elisabeth> Feedback-ID: 151242948:user:proton X-Pm-Message-ID: f1b77bcc1e8f4cb3ca8ba3381791249512ff23db MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-MailFrom: sergei@zimmerman.foo X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation Message-ID-Hash: CJWP3R4RNBM5XHQ6KILERHH66FSXBA2Z X-Message-ID-Hash: CJWP3R4RNBM5XHQ6KILERHH66FSXBA2Z X-Mailman-Approved-At: Tue, 24 Nov 2026 20:16:17 +0100 CC: Lisanna Dettwyler , passt-dev@passt.top, pennae@lix.systems, raito@lix.systems 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: > and at that point it looked like you could just let pasta do its job and daemonise itself Forgive me if I=E2=80=99m slightly incorrect on the details, but here= =E2=80=99s the simplification that can be done in the lix build launcher: h= ttps://gerrit.lix.systems/c/lix/+/6897 There=E2=80=99s several arguments I see for the ready pipe: * Asynchronous waiting for the child exit is painful without pidfd. This se= ems 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=E2=80=99m no= t even sure you *could* wait for the daemonization to complete in this proc= ess setup? I=E2=80=99d 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=E2=80=99s 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 wrote: Hi Lisanna, On Mon, 23 Nov 2026 17:11:39 -0500 Lisanna Dettwyler 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=3DDUt-7MSGp_+o8Wt5= zgGYzi1gdNvtoRK-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