Deny D-Bus message only having battery monitor's interface 50/231150/1 accepted/tizen/5.5/unified/20200420.142830 submit/tizen_5.5/20200417.121935
authorKichan Kwon <k_c.kwon@samsung.com>
Fri, 17 Apr 2020 12:05:43 +0000 (21:05 +0900)
committerKichan Kwon <k_c.kwon@samsung.com>
Fri, 17 Apr 2020 12:15:58 +0000 (21:15 +0900)
- Because different receiver can have same D-Bus ID,
  other process having same ID with battery monitor
  can be rejected
- To prevent this situation, we have to limit the policy
  to apply only for battery monitor's D-Bus message

Change-Id: If702b07cac89bbd77cc0dd9da80e3ee94bd4fa82
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
packaging/org.tizen.battery.monitor.conf

index bcfaa20..8155a62 100644 (file)
@@ -11,7 +11,7 @@
        </policy>
        <policy context="default">
                <deny own="org.tizen.battery.monitor"/>
-               <deny send_destination="org.tizen.battery.monitor"/>
+               <deny send_destination="org.tizen.battery.monitor" send_interface="org.tizen.battery.monitor"/>
 
                <check send_destination="org.tizen.battery.monitor" send_interface="org.tizen.battery.monitor"
                        send_member="get_usage_by_app_id_for_resource_id" privilege="http://tizen.org/privilege/systemmonitor"/>