commit: 08ba013322d222832ac979d0ca4b72dbdd153511 Author: Kenton Groombridge <me <AT> concord <DOT> sh> AuthorDate: Thu Dec 2 20:04:22 2021 +0000 Commit: Jason Zaman <perfinion <AT> gentoo <DOT> 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 <me <AT> concord.sh> Signed-off-by: Jason Zaman <perfinion <AT> 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) ## </desc> gen_tunable(container_manage_cgroup, false) +## <desc> +## <p> +## Allow container engines to mount on all non-security files. +## </p> +## </desc> +gen_tunable(container_mounton_non_security, false) + ## <desc> ## <p> ## 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)