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: Sat, 03 Sep 2022 19:54:13
Message-Id: 1662232070.d958a662e13f1aaab708bc86cc260e6b582196a0.perfinion@gentoo
1 commit: d958a662e13f1aaab708bc86cc260e6b582196a0
2 Author: Dave Sugar <dsugar100 <AT> gmail <DOT> com>
3 AuthorDate: Fri Aug 26 18:12:30 2022 +0000
4 Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 3 19:07:50 2022 +0000
6 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=d958a662
7
8 firewalld: firewalld-cmd uses dbus
9
10 node=localhost type=USER_AVC msg=audit(1661536843.099:11666): pid=1037 uid=81 auid=4294967295 ses=4294967295 subj=system_u:system_r:system_dbusd_t:s0 msg='avc: denied { send_msg } for scontext=system_u:system_r:firewalld_t:s0 tcontext=toor_u:sysadm_r:sysadm_t:s0 tclass=dbus permissive=1 exe="/usr/bin/dbus-broker" sauid=81 hostname=? addr=? terminal=?'UID="dbus" AUID="unset" SAUID="dbus"
11 node=localhost type=USER_AVC msg=audit(1661536101.833:8373): pid=1037 uid=81 auid=4294967295 ses=4294967295 subj=system_u:system_r:system_dbusd_t:s0 msg='avc: denied { send_msg } for scontext=toor_u:sysadm_r:sysadm_t:s0 tcontext=system_u:system_r:firewalld_t:s0 tclass=dbus permissive=0 exe="/usr/bin/dbus-broker" sauid=81 hostname=? addr=? terminal=?'UID="dbus" AUID="unset" SAUID="dbus"
12
13 Signed-off-by: Dave Sugar <dsugar100 <AT> gmail.com>
14 Signed-off-by: Jason Zaman <perfinion <AT> gentoo.org>
15
16 policy/modules/services/firewalld.if | 2 ++
17 1 file changed, 2 insertions(+)
18
19 diff --git a/policy/modules/services/firewalld.if b/policy/modules/services/firewalld.if
20 index 4a65cecd..e77b88f8 100644
21 --- a/policy/modules/services/firewalld.if
22 +++ b/policy/modules/services/firewalld.if
23 @@ -105,6 +105,8 @@ interface(`firewalld_admin',`
24 allow $1 firewalld_t:process { ptrace signal_perms };
25 ps_process_pattern($1, firewalld_t)
26
27 + firewalld_dbus_chat($1)
28 +
29 init_startstop_service($1, $2, firewalld_t, firewalld_initrc_exec_t)
30
31 files_search_runtime($1)