dbus: Allow plinth user to own FreedomBox DBus service

Without this fix, the daemon plinth will not able to acquire a DBus connection
and listen for the FreedomBox DBus service when running as user plinth user.
This is the case for production FreedomBox machines.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa 2019-07-09 15:37:57 -07:00 committed by James Valleroy
parent 43b5bd5227
commit d205455cda
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -5,15 +5,21 @@
<!--
This file is part of FreedomBox.
Allow only root user to send any notifications to FreedomBox.
Allow only root and plinth users to send any notifications to FreedomBox Service
or to own the FreedomBox Service.
-->
<busconfig>
<policy user="root">
<allow own="org.freedombox.Service"/>
<allow send_destination="org.freedombox.Service"
send_path="/org/freedombox/Service/PackageHandler"/>
<allow send_destination="org.freedombox.Service"/>
</policy>
<policy user="plinth">
<allow own="org.freedombox.Service"/>
<allow send_destination="org.freedombox.Service"/>
</policy>
</busconfig>