Gentoo Archives: gentoo-commits

From: Jason Zaman <perfinion@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/services/
Date: Sun, 30 Jan 2022 01:22:52
Message-Id: 1643505162.08ba013322d222832ac979d0ca4b72dbdd153511.perfinion@gentoo
1 commit: 08ba013322d222832ac979d0ca4b72dbdd153511
2 Author: Kenton Groombridge <me <AT> concord <DOT> sh>
3 AuthorDate: Thu Dec 2 20:04:22 2021 +0000
4 Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 30 01:12:42 2022 +0000
6 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=08ba0133
7
8 container: add tunable to allow engines to mounton non security
9
10 Signed-off-by: Kenton Groombridge <me <AT> concord.sh>
11 Signed-off-by: Jason Zaman <perfinion <AT> gentoo.org>
12
13 policy/modules/services/container.te | 11 +++++++++++
14 1 file changed, 11 insertions(+)
15
16 diff --git a/policy/modules/services/container.te b/policy/modules/services/container.te
17 index 35613b23..82de38ee 100644
18 --- a/policy/modules/services/container.te
19 +++ b/policy/modules/services/container.te
20 @@ -9,6 +9,13 @@ policy_module(container)
21 ## </desc>
22 gen_tunable(container_manage_cgroup, false)
23
24 +## <desc>
25 +## <p>
26 +## Allow container engines to mount on all non-security files.
27 +## </p>
28 +## </desc>
29 +gen_tunable(container_mounton_non_security, false)
30 +
31 ## <desc>
32 ## <p>
33 ## Allow containers to use NFS filesystems.
34 @@ -506,6 +513,10 @@ ifdef(`init_systemd',`
35 init_run_bpf(container_engine_domain)
36 ')
37
38 +tunable_policy(`container_mounton_non_security',`
39 + files_mounton_non_security(container_engine_domain)
40 +')
41 +
42 tunable_policy(`container_use_nfs',`
43 fs_manage_nfs_dirs(container_engine_domain)
44 fs_manage_nfs_files(container_engine_domain)