dbus: allow GetAll method call for g_dbus_proxy. 11/211911/2
authorsanghyeok.oh <sanghyeok.oh@samsung.com>
Mon, 12 Aug 2019 03:17:10 +0000 (12:17 +0900)
committersanghyeok.oh <sanghyeok.oh@samsung.com>
Mon, 12 Aug 2019 06:14:45 +0000 (15:14 +0900)
g_dbus_proxy_new_*() function generate dbus properties related method
call.
Without allow rule, It makes dbus policy error.

Deviced doesn't have any dbus properties.
G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES flag is recommended to create g_dbus_proxy for deviced.

Change-Id: I095d3df2711c5ef7bf06fc90c5e54d60e4532ffd
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
conf/org.tizen.system.deviced.conf

index 58737c0..53535a8 100644 (file)
@@ -27,6 +27,7 @@
     <policy context="default">
         <deny own="org.tizen.system.deviced"/>
         <deny send_destination="org.tizen.system.deviced" send_type="method_call"/>
+        <allow send_destination="org.tizen.system.deviced" send_interface="org.freedesktop.DBus.Properties" send_member="GetAll"/>
 
         <check send_destination="org.tizen.system.deviced" send_interface="org.tizen.system.deviced.display"
                 privilege="http://tizen.org/privilege/display"/>