From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 981D2158094 for ; Sat, 3 Sep 2022 19:10:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8D979E07C9; Sat, 3 Sep 2022 19:10:18 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 74CE6E07C5 for ; Sat, 3 Sep 2022 19:10:18 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 53490340F80 for ; Sat, 3 Sep 2022 19:10:17 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B533A5B5 for ; Sat, 3 Sep 2022 19:10:15 +0000 (UTC) From: "Jason Zaman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jason Zaman" Message-ID: <1662230515.31f53036b53e062550260d6da598fe58ca5dd63c.perfinion@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/services/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/services/container.te X-VCS-Directories: policy/modules/services/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 31f53036b53e062550260d6da598fe58ca5dd63c X-VCS-Branch: master Date: Sat, 3 Sep 2022 19:10:15 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 39936ca1-2fcb-4484-b553-63469cb952eb X-Archives-Hash: e0662d03c8a6f05bcdc5f7413d50cd9d commit: 31f53036b53e062550260d6da598fe58ca5dd63c Author: Kenton Groombridge concord sh> AuthorDate: Sat Apr 30 01:38:53 2022 +0000 Commit: Jason Zaman gentoo org> CommitDate: Sat Sep 3 18:41:55 2022 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=31f53036 container: allow container engines to manage tmp symlinks Signed-off-by: Kenton Groombridge concord.sh> Signed-off-by: Jason Zaman gentoo.org> policy/modules/services/container.te | 2 ++ 1 file changed, 2 insertions(+) diff --git a/policy/modules/services/container.te b/policy/modules/services/container.te index 36a7163a..166a42ae 100644 --- a/policy/modules/services/container.te +++ b/policy/modules/services/container.te @@ -509,6 +509,8 @@ read_lnk_files_pattern(container_engine_domain, container_config_t, container_co allow container_engine_domain container_engine_tmp_t:dir manage_dir_perms; allow container_engine_domain container_engine_tmp_t:file manage_file_perms; allow container_engine_domain container_engine_tmp_t:fifo_file manage_fifo_file_perms; +# podman uses temporary symlinks when loading container images +allow container_engine_domain container_engine_tmp_t:lnk_file manage_lnk_file_perms; # needed when manually spawning processes inside containers allow container_engine_domain container_engine_tmp_t:sock_file manage_sock_file_perms; files_tmp_filetrans(container_engine_domain, container_engine_tmp_t, { dir file sock_file })