From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=pass (p=quarantine dis=none) header.from=maxchernoff.ca Authentication-Results: passt.top; dkim=pass (2048-bit key; secure) header.d=maxchernoff.ca header.i=@maxchernoff.ca header.a=rsa-sha256 header.s=key1 header.b=Zf1a1crT; dkim-atps=neutral Received: from out-173.mta0.migadu.com (out-173.mta0.migadu.com [91.218.175.173]) by passt.top (Postfix) with ESMTPS id ED76E5A027E for ; Wed, 14 May 2025 12:44:44 +0200 (CEST) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maxchernoff.ca; s=key1; t=1747219484; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=ziv4iJ6TRs44yRyt/bmYGhLd48E26Q2wZB+yrRZtZ3Y=; b=Zf1a1crTMFg41EmcCvrIhVL9xvZ7ZhllpcEbQYH2Wrt0jsylgxV+fLwOqco2FI3+6rtqUH az9P7oqyeW9e9JkPUdk1TBjtZKqRVHD7sA+mmHXFW600/oai2LjzWWa47y5IPKcVu2fHiQ UsA8lbd1P+6h4RHPjiNMtuFwgqMJdHCE1CNW20u0DgFO+rYfE9LZJKzZNdjUw6LcpAfOT4 EVHRh9cijLpivr4PwxoupuuXLjoiil6fTDqpxZCoLA7qRXP8dFJclZD2gx1xlSKpAw0LF2 WI1aMjtvX1Iz/j1Nx9/A2yvc5g9GRbVACcnQGPcxCDQXouBu+yJOHZ9iIgnH8g== From: Max Chernoff To: passt-dev@passt.top Subject: [PATCH 0/1] selinux: Transition to pasta_t in containers Date: Wed, 14 May 2025 04:44:11 -0600 Message-ID: <20250514104413.197448-2-git@maxchernoff.ca> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-MailFrom: git@maxchernoff.ca X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation Message-ID-Hash: U7GZIINGLR5HRJHWOA4PM6BRSTXYYYXZ X-Message-ID-Hash: U7GZIINGLR5HRJHWOA4PM6BRSTXYYYXZ X-Mailman-Approved-At: Wed, 14 May 2025 14:20:16 +0200 CC: Max Chernoff 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, Currently, pasta runs in the container_runtime_exec_t context when running in a container. This commit updates the SELinux policy so that pasta instead runs in the pasta_t context. I'm more familiar with CIL, so I initially developed the modified policy in CIL, and then later ported it to the kernel policy language. My original CIL source is available here: https://github.com/gucci-on-fleek/maxchernoff.ca/blob/master/etc/selinux/local-policies/local-pasta.cil I've tested this on Fedora 42 with rootless Podman, with both unconfined (unconfined_u) and confined (user_u) users, and with both TCP and UDP. I've never actually used the email workflow for Git before, so please let me know if I've done something wrong. Thanks, -- Max Max Chernoff (1): selinux: Transition to pasta_t in containers contrib/selinux/pasta.fc | 10 ++++++---- contrib/selinux/pasta.te | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+), 4 deletions(-) -- 2.49.0