From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=pass (p=quarantine dis=none) header.from=dbb.dev Authentication-Results: passt.top; dkim=pass (1024-bit key; secure) header.d=dbb.dev header.i=@dbb.dev header.a=rsa-sha256 header.s=jul08 header.b=OzuuYiyy; dkim-atps=neutral Received: from taz.dbb.computer (taz.dbb.computer [45.77.147.241]) by passt.top (Postfix) with ESMTPS id 481D15A0269 for ; Tue, 21 Jul 2026 17:37:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dbb.dev; s=jul08; t=1784648250; bh=Dcb2Ed17A36DbJRgSdm72ttwZBK39Ep6LfIMe6+FM5s=; h=From:To:Cc:Subject:Date; b=OzuuYiyyQ3/LuQkNb97f9abpGAIFpYJ4kHeT81893u9WhAc8WEn2BogMyFM24MBs1 ai9Nwm8A4XBkfH+1nAO/gdbXWj1ouG76T1YnrZQVi6dcZWfaHQIBqRH8JiM1wMlzKe JIOP3M9hAGyVLKAVoOitY3D0UpJFDjLabzu4Sm+0= Authentication-Results: taz.dbb.computer; dmarc=pass (p=quarantine dis=none) header.from=dbb.dev Authentication-Results: taz.dbb.computer; spf=pass smtp.mailfrom=dbb.dev Received: from taz.dbb.computer (localhost [IPv6:::1]) by taz.dbb.computer (Postfix) with ESMTP id 394B429C8B6; Tue, 21 Jul 2026 15:37:30 +0000 (UTC) Received: from localhost ([69.119.138.76]) by taz.dbb.computer with ESMTPSA id IIX8BzqSX2pXdQwArUmV4g (envelope-from ); Tue, 21 Jul 2026 15:37:30 +0000 From: "Dwayne B. Bent" To: passt-dev@passt.top Subject: [PATCH 0/2] pasta: Do not configure ID mappings when invoked with --netns-only Date: Tue, 21 Jul 2026 11:37:25 -0400 Message-ID: <20260721153727.2173831-1-dbb@dbb.dev> X-Mailer: git-send-email 2.55.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: 5NI6RAJ4KOU4HOZYYTSS3IAING2A3QBJ X-Message-ID-Hash: 5NI6RAJ4KOU4HOZYYTSS3IAING2A3QBJ X-MailFrom: dbb@dbb.dev X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: "Dwayne B. Bent" 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: This is a narrow fix for bug 216 where `pasta` attempts to configure user and group ID mappings when invoked with `--netns-only`. A new `bool` argument `config_idmaps` was added to `pasta_start_ns()` that guards the logic to configure user and group ID mappings. It is set to `false` when `netns_only` is `true`. OpenAI Codex was used to explore and understand the codebase. Code written myself. Test written by Codex guided and reviewed by me. Dwayne B. Bent (2): pasta: Regression test for bug 216 pasta: Do not configure ID mappings when invoked with --netns-only conf.c | 2 +- pasta.c | 24 ++++++++++++++---------- pasta.h | 3 ++- test/pasta_options/netns_only | 19 +++++++++++++++++++ test/run | 1 + 5 files changed, 37 insertions(+), 12 deletions(-) create mode 100644 test/pasta_options/netns_only -- 2.55.0