From f4d327c78f3e35da66c8632feb7d98a90fed742a Mon Sep 17 00:00:00 2001 From: Lukas Vrabec Date: Tue, 23 Apr 2019 13:25:48 +0200 Subject: [PATCH] Add new interface boltd_dbus_chat() --- boltd.if | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/boltd.if b/boltd.if index cdec3f10d9..ea8924b82b 100644 --- a/boltd.if +++ b/boltd.if @@ -211,3 +211,23 @@ interface(`boltd_write_var_run_pipes',` allow $1 boltd_var_run_t:fd use; allow $1 boltd_var_run_t:fifo_file write; ') + +######################################## +## +## Send messages to boltd over dbus. +## +## +## +## Domain allowed access. +## +## +# +interface(`boltd_dbus_chat',` + gen_require(` + type hald_t; + class dbus send_msg; + ') + + allow $1 boltd_t:dbus send_msg; + allow boltd_t $1:dbus send_msg; +')