commit: e9b51f6d4a82d767b3b7da4c7a6df72a5829e438
Author: Laurent Bigonville <bigon <AT> bigon <DOT> be>
AuthorDate: Sun Nov 11 12:33:00 2018 +0000
Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org>
CommitDate: Sun Nov 18 10:56:47 2018 +0000
URL:
https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=e9b51f6d
Add systemd_dbus_chat_resolved() interface
Signed-off-by: Jason Zaman <jason <AT> perfinion.com>
policy/modules/system/systemd.if | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/policy/modules/system/systemd.if b/policy/modules/system/systemd.if
index 34685088..9247924b 100644
--- a/policy/modules/system/systemd.if
+++ b/policy/modules/system/systemd.if
@@ -753,6 +753,27 @@ interface(`systemd_tmpfilesd_managed',`
allow systemd_tmpfiles_t $1:$2 { setattr relabelfrom relabelto create };
')
+########################################
+## <summary>
+## Send and receive messages from
+## systemd resolved over dbus.
+## </summary>
+## <param name="domain">
+## <summary>
+## Domain allowed access.
+## </summary>
+## </param>
+#
+interface(`systemd_dbus_chat_resolved',`
+ gen_require(`
+ type systemd_resolved_t;
+ class dbus send_msg;
+ ')
+
+ allow $1 systemd_resolved_t:dbus send_msg;
+ allow systemd_resolved_t $1:dbus send_msg;
+')
+
#######################################
## <summary>
## Allow domain to read resolv.conf file generated by systemd_resolved