From 06588b55b43d977742c404835863e8d549072907 Mon Sep 17 00:00:00 2001 From: Laurent Bigonville Date: Sun, 11 Nov 2018 13:33:00 +0100 Subject: [PATCH] Add systemd_dbus_chat_resolved() interface --- 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 346850881..9247924b2 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 }; ') +######################################## +## +## Send and receive messages from +## systemd resolved over dbus. +## +## +## +## Domain allowed access. +## +## +# +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; +') + ####################################### ## ## Allow domain to read resolv.conf file generated by systemd_resolved