Skip to content

Commit

Permalink
[dbus] Allow everybody to make battery data method calls. Fixes JB#37492
Browse files Browse the repository at this point in the history
The methods are supposed to be callable by anybody, but D-Bus configuration
allowing that was forgotten and thus the methods can be used only by root
processes.

Allow also unprivileged user processes to send the battery data method
call messages to mce.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
  • Loading branch information
spiiroin committed Jan 24, 2017
1 parent 6e988ad commit 03fee61
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions mce.conf
Expand Up @@ -201,6 +201,19 @@
<allow send_destination="com.nokia.mce"
send_interface="com.nokia.mce.request"
send_member="req_ignore_incoming_call"/>

<allow send_destination="com.nokia.mce"
send_interface="com.nokia.mce.request"
send_member="get_usb_cable_state"/>
<allow send_destination="com.nokia.mce"
send_interface="com.nokia.mce.request"
send_member="get_battery_status"/>
<allow send_destination="com.nokia.mce"
send_interface="com.nokia.mce.request"
send_member="get_battery_level"/>
<allow send_destination="com.nokia.mce"
send_interface="com.nokia.mce.request"
send_member="get_charger_state"/>
</policy>

<!-- MCE expects some user process to provide compositor
Expand Down

0 comments on commit 03fee61

Please sign in to comment.