From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: passt.top; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=Qgl3meeS; dkim-atps=neutral Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by passt.top (Postfix) with ESMTPS id 3340E5A06E2 for ; Wed, 17 Sep 2025 14:05:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1758110751; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NiaIGq/KdRoVccqWDwRPS1T+UJ//Gm8dcjC0R+jcRRg=; b=Qgl3meeS/gXY+5C0FnClsqma8LrX7M0SmmoIzw8A4BjXYCsjXhtr8WZ835VZsJExH6sz1a PArLTNq3izWh5p/kabLTifjqGmziapDRYyHLIiv0x3pqjhFNBd5AIA0CjHB1BTVhQdPUfh andJ7sbgu54NCD24s5ql6jSM2u1RaAc= Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-46-83aW6FMDPSWbBgtIluX_XA-1; Wed, 17 Sep 2025 08:05:47 -0400 X-MC-Unique: 83aW6FMDPSWbBgtIluX_XA-1 X-Mimecast-MFC-AGG-ID: 83aW6FMDPSWbBgtIluX_XA_1758110747 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 06F6219560B5; Wed, 17 Sep 2025 12:05:47 +0000 (UTC) Received: from pholzing-fedora.redhat.com (unknown [10.44.33.167]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 9232619560BA; Wed, 17 Sep 2025 12:05:44 +0000 (UTC) From: Paul Holzinger To: Stefano Brivio , passt-dev@passt.top Subject: [PATCH 2/2] selinux: add missing file contexts for Podman Date: Wed, 17 Sep 2025 14:04:52 +0200 Message-ID: <20250917120450.36181-4-pholzing@redhat.com> In-Reply-To: <20250917120450.36181-2-pholzing@redhat.com> References: <20250917120450.36181-2-pholzing@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: pKc3A5utqfLFP0jcUpq2VwNiXQ_7lV0JoWc4r4Ig3RA_1758110747 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit content-type: text/plain; charset="US-ASCII"; x-default=true Message-ID-Hash: A5EHJUEUBS53WJHGA5CBYMDROPJ3FC4M X-Message-ID-Hash: A5EHJUEUBS53WJHGA5CBYMDROPJ3FC4M X-MailFrom: pholzing@redhat.com 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: Max Chernoff , Giuseppe Scrivano , Lokesh Mandvekar , Dan Walsh , 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: Podman may also use directories under /tmp if XDG_RUNTIME_DIR is not defined. Make sure the policy defined the right context for them as well. Link: https://github.com/containers/podman/issues/26473 Link: https://bugzilla.redhat.com/show_bug.cgi?id=2373054 Signed-off-by: Paul Holzinger --- contrib/selinux/pasta.fc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/contrib/selinux/pasta.fc b/contrib/selinux/pasta.fc index e4aefc4..c0f91df 100644 --- a/contrib/selinux/pasta.fc +++ b/contrib/selinux/pasta.fc @@ -14,3 +14,8 @@ /var/run/pasta\.pid system_u:object_r:pasta_pid_t:s0 /run/user/%{USERID}/netns system_u:object_r:ifconfig_var_run_t:s0 /run/user/%{USERID}/containers/networks/rootless-netns system_u:object_r:ifconfig_var_run_t:s0 +# In case XDG_RUNTIME_DIR is not set (i.e. no systemd user session) podman falls back to a location under /tmp +/tmp/storage-run-%{USERID}/netns system_u:object_r:ifconfig_var_run_t:s0 +/tmp/storage-run-%{USERID}/containers/networks/rootless-netns system_u:object_r:ifconfig_var_run_t:s0 +/tmp/containers-user-%{USERID}/netns system_u:object_r:ifconfig_var_run_t:s0 +/tmp/containers-user-%{USERID}/containers/networks/rootless-netns system_u:object_r:ifconfig_var_run_t:s0 -- 2.51.0