commit:     fd2f4ebf4bfebbf0660ea15a84a9e5fd9db217b8
Author:     Luis Ressel <aranea <AT> aixah <DOT> de>
AuthorDate: Tue Oct 23 23:14:28 2018 +0000
Commit:     Jason Zaman <perfinion <AT> gentoo <DOT> org>
CommitDate: Sun Nov 18 10:59:17 2018 +0000
URL:        
https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=fd2f4ebf

Allow portage_sandbox_t to read /proc/sys/vm/overcommit_memory

git uses this.

Signed-off-by: Jason Zaman <jason <AT> perfinion.com>

 policy/modules/admin/portage.te | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/policy/modules/admin/portage.te b/policy/modules/admin/portage.te
index 33547b6e..bdf5d412 100644
--- a/policy/modules/admin/portage.te
+++ b/policy/modules/admin/portage.te
@@ -515,6 +515,8 @@ gen_tunable(portage_enable_test, false)
 
        dev_getattr_xserver_misc_dev(portage_sandbox_t)
 
+       kernel_read_vm_overcommit_sysctl(portage_sandbox_t)
+
        tunable_policy(`portage_enable_test',`
                # lots of tests connect over loopback
                corenet_tcp_bind_all_unreserved_ports(portage_sandbox_t)

Reply via email to