commit: 9aaa2422ee9903dab8bd049c7cbc7f17850cd66d
Author: cgzones <cgzones <AT> googlemail <DOT> com>
AuthorDate: Thu Jan 5 10:32:17 2017 +0000
Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org>
CommitDate: Mon Feb 27 10:38:00 2017 +0000
URL:
https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=9aaa2422
newrole: fix denials
dontaudit net_admin access due to setsockopt
allow communication with systemd-logind
policy/modules/system/selinuxutil.te | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/policy/modules/system/selinuxutil.te
b/policy/modules/system/selinuxutil.te
index bc57e4a7..5f624126 100644
--- a/policy/modules/system/selinuxutil.te
+++ b/policy/modules/system/selinuxutil.te
@@ -221,6 +221,7 @@ optional_policy(`
# Newrole local policy
#
+dontaudit newrole_t self:capability net_admin;
allow newrole_t self:capability { dac_override fowner setgid setuid };
allow newrole_t self:process setexec;
allow newrole_t self:fd use;
@@ -282,6 +283,7 @@ auth_use_nsswitch(newrole_t)
auth_run_chk_passwd(newrole_t, newrole_roles)
auth_run_upd_passwd(newrole_t, newrole_roles)
auth_rw_faillog(newrole_t)
+auth_use_pam_systemd(newrole_t)
# Write to utmp.
init_rw_utmp(newrole_t)
@@ -330,6 +332,10 @@ tunable_policy(`allow_polyinstantiation',`
files_polyinstantiate_all(newrole_t)
')
+optional_policy(`
+ systemd_use_logind_fds(newrole_t)
+')
+
########################################
#
# Restorecond local policy