Allow access to battery information for unprivileged processes 59/181159/2
authorŁukasz Stelmach <l.stelmach@samsung.com>
Fri, 8 Jun 2018 14:57:51 +0000 (16:57 +0200)
committerŁukasz Stelmach <l.stelmach@samsung.com>
Tue, 12 Jun 2018 14:55:27 +0000 (16:55 +0200)
It appears battery information should be available to unprivileged
processes. Tizen documentation[1] does not mention any privileges are
required to access the information.

[1] https://developer.tizen.org/development/guides/web-application/w3chtml5supplementary-features/device/battery-status

Change-Id: I495cc9c83bcc7bc1cd3e7b8bc42d1fc661ed1137
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
resourced.conf

index 9f5ceec2617579b9c4af23bef2ce1c1489eeda85..dd5e1165dfedc039749569af6a0d0e30978bb06d 100644 (file)
         <deny own="org.tizen.resourced"/>
         <deny send_destination="org.tizen.resourced" />
 
+       <allow send_destination="org.tizen.resourced"
+               send_interface="org.tizen.resourced.logging"
+               send_member="GetBatteryChargingTime"/>
+       <allow send_destination="org.tizen.resourced"
+               send_interface="org.tizen.resourced.logging"
+               send_member="GetBatteryRemainingTime"/>
+
         <check send_destination="org.tizen.resourced"
                send_interface="org.tizen.resourced.process"
                send_member="WatchdogResult"