Remove unnecessary dbus policy rules 11/190311/1 submit/tizen/20181001.165743
authorHyotaek Shim <hyotaek.shim@samsung.com>
Mon, 1 Oct 2018 02:57:15 +0000 (11:57 +0900)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Mon, 1 Oct 2018 02:57:25 +0000 (11:57 +0900)
For the dbus session bus,
default allow rule is applied, and only a certain uid is allowed to use.
Thus, <check> rules are only required.

Change-Id: I62a2420ac9060634ad3f4390224abb6fad1fd1c2
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
geofence-server/config/geofence-server.conf

index d2ab32a..991769e 100644 (file)
@@ -1,29 +1,7 @@
 <!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
  "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
 <busconfig>
-
-       <!-- root can own the service -->
-       <policy user="root">
-               <allow own="org.tizen.lbs.Providers.GeofenceServer"/>
-               <allow send_destination="org.tizen.lbs.Providers.GeofenceServer"/>
-       </policy>
-
-       <policy user="system">
-               <allow own="org.tizen.lbs.Providers.GeofenceServer"/>
-               <allow send_destination="org.tizen.lbs.Providers.GeofenceServer"/>
-       </policy>
-
-    <policy group="users">
-               <allow own="org.tizen.lbs.Providers.GeofenceServer"/>
-               <allow send_destination="org.tizen.lbs.Providers.GeofenceServer"
-                       send_path="/org/tizen/lbs/Providers/GeofenceServer"/>
-       </policy>
-
        <policy context="default">
-               <deny own="org.tizen.lbs.Providers.GeofenceServer"/>
-               <deny send_destination="org.tizen.lbs.Providers.GeofenceServer"/>
-               <allow send_destination="org.tizen.lbs.Providers.GeofenceServer"
-                       send_interface="org.tizen.alarm.client" send_member="alarm_expired"/>
                <check send_destination="org.tizen.lbs.Providers.GeofenceServer"
                        send_interface="org.tizen.lbs.Geofence"
                        privilege="http://tizen.org/privilege/location"/>