Revert dbus rule for mesh with send_destination 45/236845/1
authorDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 22 Jun 2020 23:18:16 +0000 (08:18 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 22 Jun 2020 23:18:16 +0000 (08:18 +0900)
When we remove the original rules, some method calls
are rejected by 'AccessDenied' error.

Change-Id: Ifc5f04455c412be9da7d94cb5b9a69e8eb412804
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
mesh/bluetooth-mesh.conf

index 8208e79..a5e0080 100644 (file)
   <policy user="root">
     <allow own="org.bluez.mesh"/>
     <allow send_destination="org.bluez.mesh"/>
+    <allow send_destination="org.bluez.mesh" send_interface="org.bluez.mesh.Application1"/>
+    <allow send_destination="org.bluez.mesh" send_interface="org.bluez.mesh.Element1"/>
+    <allow send_destination="org.bluez.mesh" send_interface="org.bluez.mesh.ProvisionAgent1"/>
+    <allow send_destination="org.bluez.mesh" send_interface="org.bluez.mesh.Provisioner1"/>
+    <allow send_destination="org.bluez.mesh" send_interface="org.freedesktop.DBus.Properties"/>
+    <allow send_destination="org.bluez.mesh" send_interface="org.freedesktop.DBus.ObjectManager"/>
   </policy>
 
   <policy user="network_fw">
     <allow own="org.bluez.mesh"/>
     <allow send_destination="org.bluez.mesh"/>
+    <allow send_destination="org.bluez.mesh" send_interface="org.bluez.mesh.Application1"/>
+    <allow send_destination="org.bluez.mesh" send_interface="org.bluez.mesh.Element1"/>
+    <allow send_destination="org.bluez.mesh" send_interface="org.bluez.mesh.ProvisionAgent1"/>
+    <allow send_destination="org.bluez.mesh" send_interface="org.bluez.mesh.Provisioner1"/>
+    <allow send_destination="org.bluez.mesh" send_interface="org.freedesktop.DBus.Properties"/>
+    <allow send_destination="org.bluez.mesh" send_interface="org.freedesktop.DBus.ObjectManager"/>
   </policy>
 
   <policy context="default">