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 C7605158087 for ; Sun, 30 Jan 2022 01:22:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 44A0E2BC023; Sun, 30 Jan 2022 01:22:50 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2C9132BC021 for ; Sun, 30 Jan 2022 01:22:50 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6EA1234336B for ; Sun, 30 Jan 2022 01:22:49 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 30B3F2BF for ; Sun, 30 Jan 2022 01:22:45 +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: <1643505162.08ba013322d222832ac979d0ca4b72dbdd153511.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: 08ba013322d222832ac979d0ca4b72dbdd153511 X-VCS-Branch: master Date: Sun, 30 Jan 2022 01:22:45 +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: a19c3c85-031b-4d04-b889-92a8a3abd13c X-Archives-Hash: 76ba9485c7257b1dc01dbac584083a4b commit: 08ba013322d222832ac979d0ca4b72dbdd153511 Author: Kenton Groombridge concord sh> AuthorDate: Thu Dec 2 20:04:22 2021 +0000 Commit: Jason Zaman gentoo org> CommitDate: Sun Jan 30 01:12:42 2022 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=08ba0133 container: add tunable to allow engines to mounton non security Signed-off-by: Kenton Groombridge concord.sh> Signed-off-by: Jason Zaman gentoo.org> policy/modules/services/container.te | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/policy/modules/services/container.te b/policy/modules/services/container.te index 35613b23..82de38ee 100644 --- a/policy/modules/services/container.te +++ b/policy/modules/services/container.te @@ -9,6 +9,13 @@ policy_module(container) ## gen_tunable(container_manage_cgroup, false) +## +##

+## Allow container engines to mount on all non-security files. +##

+##
+gen_tunable(container_mounton_non_security, false) + ## ##

## Allow containers to use NFS filesystems. @@ -506,6 +513,10 @@ ifdef(`init_systemd',` init_run_bpf(container_engine_domain) ') +tunable_policy(`container_mounton_non_security',` + files_mounton_non_security(container_engine_domain) +') + tunable_policy(`container_use_nfs',` fs_manage_nfs_dirs(container_engine_domain) fs_manage_nfs_files(container_engine_domain)