Remove unnecessary dbus policy
[platform/upstream/bluez.git] / src / bluetooth.conf
1 <!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
2  "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
3 <busconfig>
4   <!-- ../system.conf have denied everything, so we just punch some holes -->
5   <policy user="root">
6     <allow own="org.bluez.frwk_agent"/>
7     <allow send_destination="org.bluez.frwk_agent"/>
8     <allow own="org.bluez"/>
9     <allow send_destination="org.bluez"/>
10   </policy>
11   <!-- allow users of bt_use group (Tizen BT group) to
12        communicate with bluetoothd -->
13   <policy group="bt_use">
14     <allow send_destination="org.bluez.frwk_agent"/>
15     <allow send_destination="org.bluez"/>
16   </policy>
17   <!-- allow users of lp group (printing subsystem) to
18        communicate with bluetoothd -->
19   <policy group="lp">
20     <allow send_destination="org.bluez.frwk_agent"/>
21     <allow send_destination="org.bluez"/>
22   </policy>
23   <policy group="network_fw">
24     <allow own="org.bluez.frwk_agent"/>
25     <allow send_destination="org.bluez.frwk_agent"/>
26     <allow own="org.bluez"/>
27     <allow send_destination="org.bluez"/>
28   </policy>
29   <policy context="default">
30     <deny own="org.bluez"/>
31     <deny send_destination="org.bluez"/>
32     <deny own="org.bluez.frwk_agent"/>
33     <deny send_destination="org.bluez.frwk_agent"/>
34
35     <allow send_destination="org.bluez" send_interface="org.freedesktop.DBus.Properties" send_member="Get"/>
36     <allow send_destination="org.bluez" send_interface="org.freedesktop.DBus.Properties" send_member="GetAll"/>
37     <allow send_destination="org.bluez" send_interface="org.freedesktop.DBus.ObjectManager" send_member="DefaultAdapter"/>
38     <allow send_destination="org.bluez" send_interface="org.freedesktop.DBus.ObjectManager" send_member="GetManagedObjects"/>
39
40     <check send_destination="org.bluez" send_interface="org.bluez.Adapter1" send_member="CreateDevice" privilege="http://tizen.org/privilege/bluetooth"/>
41
42     <allow send_destination="org.bluez" send_interface="org.bluez.Device1" send_member="DiscoverServices"/>
43     <check send_destination="org.bluez" send_interface="org.bluez.Device1" send_member="ConnectProfile" privilege="http://tizen.org/privilege/bluetooth"/>
44     <check send_destination="org.bluez" send_interface="org.bluez.Device1" send_member="DisconnectProfile" privilege="http://tizen.org/privilege/bluetooth"/>
45     <check send_destination="org.bluez" send_interface="org.bluez.Device1" send_member="DisconnectExtProfile" privilege="http://tizen.org/privilege/bluetooth"/>
46     <check send_destination="org.bluez" send_interface="org.bluez.Device1" send_member="CancelDiscovery" privilege="http://tizen.org/privilege/bluetooth"/>
47
48     <allow send_destination="org.bluez" send_interface="org.bluez.GattManager1" send_member="GetService"/>
49     <check send_destination="org.bluez" send_interface="org.bluez.GattManager1" send_member="RegisterApplication" privilege="http://tizen.org/privilege/bluetooth"/>
50     <check send_destination="org.bluez" send_interface="org.bluez.GattManager1" send_member="UnregisterApplication" privilege="http://tizen.org/privilege/bluetooth"/>
51
52     <check send_destination="org.bluez" send_interface="org.bluez.ProfileManager1" send_member="RegisterProfile" privilege="http://tizen.org/privilege/bluetooth"/>
53     <check send_destination="org.bluez" send_interface="org.bluez.ProfileManager1" send_member="RegisterProfile1" privilege="http://tizen.org/privilege/bluetooth.admin"/>
54     <check send_destination="org.bluez" send_interface="org.bluez.ProfileManager1" send_member="RegisterProfile2" privilege="http://tizen.org/privilege/bluetooth.admin"/>
55     <check send_destination="org.bluez" send_interface="org.bluez.ProfileManager1" send_member="UnregisterProfile" privilege="http://tizen.org/privilege/bluetooth"/>
56
57     <check send_destination="org.bluez" send_interface="org.bluez.Input1" send_member="GetFD" privilege="http://tizen.org/privilege/bluetooth"/>
58   </policy>
59 </busconfig>