diff options
author | Corentin Lecouvey <corentin.lecouvey@open.eurogiciel.org> | 2014-11-04 18:43:47 +0100 |
---|---|---|
committer | Corentin Lecouvey <corentin.lecouvey@open.eurogiciel.org> | 2014-11-04 19:04:21 +0100 |
commit | 2b6c74a80072e1380265224b5383f4a8686d9cf6 (patch) | |
tree | 7401ca89658ebc89161aa6be6633bad156259ef0 | |
parent | 6770f705904f10fccedf265824e632a41874884b (diff) | |
download | bluez-2b6c74a80072e1380265224b5383f4a8686d9cf6.tar.gz bluez-2b6c74a80072e1380265224b5383f4a8686d9cf6.tar.bz2 bluez-2b6c74a80072e1380265224b5383f4a8686d9cf6.zip |
clean up org.bluez dbus policy file and add rules for 'bluetooth' user
Change-Id: I476cfc0c2641b98030c8be30a67e0dcad2763fc2
Signed-off-by: Corentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
-rw-r--r-- | src/bluetooth.conf | 65 |
1 files changed, 9 insertions, 56 deletions
diff --git a/src/bluetooth.conf b/src/bluetooth.conf index fa23ce14..c9e52ce2 100644 --- a/src/bluetooth.conf +++ b/src/bluetooth.conf @@ -10,30 +10,14 @@ <policy user="root"> <allow own="org.bluez"/> <allow send_destination="org.bluez"/> - <allow own="org.projectx.bluetooth"/> - <allow send_interface="org.projectx.bluetooth"/> - <allow send_destination="org.projectx.bluetooth"/> - <allow own="org.bluez.frwk_agent"/> - <allow send_interface="org.bluez.frwk_agent"/> - <allow send_destination="org.bluez.frwk_agent"/> - <allow own="org.bluez.Agent1"/> <allow send_interface="org.bluez.Agent1"/> - <allow send_destination="org.bluez.Agent1"/> - <allow own="org.bluez.Adapter1"/> - <allow send_interface="org.bluez.Adapter1"/> - <allow send_destination="org.bluez.Adapter1"/> - <allow own="org.bluez.Device1"/> - <allow send_interface="org.bluez.Device1"/> - <allow send_destination="org.bluez.Device1"/> - <allow own="org.bluez.MediaEndpoint1"/> <allow send_interface="org.bluez.MediaEndpoint1"/> - <allow send_destination="org.bluez.MediaEndpoint1"/> - <allow own="org.bluez.MediaPlayer1"/> <allow send_interface="org.bluez.MediaPlayer1"/> - <allow send_destination="org.bluez.MediaPlayer1"/> - <allow own="org.bluez.Profile1"/> + <allow send_interface="org.bluez.ThermometerWatcher1"/> + <allow send_interface="org.bluez.AlertAgent1"/> <allow send_interface="org.bluez.Profile1"/> - <allow send_destination="org.bluez.Profile1"/> + <allow send_interface="org.bluez.HeartRateWatcher1"/> + <allow send_interface="org.bluez.CyclingSpeedWatcher1"/> <allow send_interface="org.freedesktop.DBus.ObjectManager"/> </policy> @@ -41,27 +25,11 @@ <allow send_destination="org.bluez"/> </policy> - <!-- allow users of bt_use group (Tizen BT group) to - communicate with bluetoothd --> - <policy group="bt_use"> - <allow send_interface="org.freedesktop.DBus.ObjectManager"/> + <!-- allow bluetooth user (dedicated to run bluetooth-service daemon) + communicates with bluetoothd --> + <policy user="bluetooth"> + <allow own="org.bluez"/> <allow send_destination="org.bluez"/> - <allow send_interface="org.projectx.bluetooth"/> - <allow send_destination="org.projectx.bluetooth"/> - <allow send_interface="org.bluez.frwk_agent"/> - <allow send_destination="org.bluez.frwk_agent"/> - <allow send_interface="org.bluez.Agent1"/> - <allow send_destination="org.bluez.Agent1"/> - <allow send_interface="org.bluez.Adapter1"/> - <allow send_destination="org.bluez.Adapter1"/> - <allow send_interface="org.bluez.Device1"/> - <allow send_destination="org.bluez.Device1"/> - <allow send_interface="org.bluez.MediaEndpoint1"/> - <allow send_destination="org.bluez.MediaEndpoint1"/> - <allow send_interface="org.bluez.MediaPlayer1"/> - <allow send_destination="org.bluez.MediaPlayer1"/> - <allow send_interface="org.bluez.Profile1"/> - <allow send_destination="org.bluez.Profile1"/> </policy> <!-- allow users of lp group (printing subsystem) to @@ -71,22 +39,7 @@ </policy> <policy context="default"> - <deny send_interface="org.projectx.bluetooth"/> - <deny send_destination="org.projectx.bluetooth"/> - <deny send_interface="org.bluez.frwk_agent"/> - <deny send_destination="org.bluez.frwk_agent"/> - <deny send_interface="org.bluez.Agent1"/> - <deny send_destination="org.bluez.Agent1"/> - <deny send_interface="org.bluez.Adapter1"/> - <deny send_destination="org.bluez.Adapter1"/> - <deny send_interface="org.bluez.Device1"/> - <deny send_destination="org.bluez.Device1"/> - <deny send_interface="org.bluez.MediaEndpoint1"/> - <deny send_destination="org.bluez.MediaEndpoint1"/> - <deny send_interface="org.bluez.MediaPlayer1"/> - <deny send_destination="org.bluez.MediaPlayer1"/> - <deny send_interface="org.bluez.Profile1"/> - <deny send_destination="org.bluez.Profile1"/> + <deny send_destination="org.bluez"/> </policy> </busconfig> |