diff options
| author | Rygebin <kaankulahli@gmail.com> | 2016-12-08 15:47:56 +0000 |
|---|---|---|
| committer | Rygebin <kaankulahli@gmail.com> | 2016-12-08 15:55:29 +0000 |
| commit | 0a60d4024be0c9f431169f7a818769bf54b7e275 (patch) | |
| tree | c081fb4a3472013ca384e1d970e7a30498a26865 | |
| parent | 3561e88bee26c7b5e001707a1885ac2aaeb07061 (diff) | |
* Reorganized file_contexts suitability
* Remove bluetooth_loader , It's in device/qcom/sepolicy
Change-Id: I633ea9cefe6a57572d127b9809aa96e1798a722c
| -rw-r--r-- | sepolicy/bluetooth_loader.te | 31 | ||||
| -rw-r--r-- | sepolicy/file_contexts | 9 |
2 files changed, 4 insertions, 36 deletions
diff --git a/sepolicy/bluetooth_loader.te b/sepolicy/bluetooth_loader.te deleted file mode 100644 index 242f4a2..0000000 --- a/sepolicy/bluetooth_loader.te +++ /dev/null @@ -1,31 +0,0 @@ -# Bluetooth executables and scripts -type bluetooth_loader, domain; -type bluetooth_loader_exec, exec_type, file_type; - -# Start bdAddrLoader from init -init_daemon_domain(bluetooth_loader) - -# Run init.qcom.bt.sh -allow bluetooth_loader shell_exec:file { entrypoint read }; -allow bluetooth_loader bluetooth_loader_exec:file { getattr open execute_no_trans }; - -# init.qcom.bt.sh needs /system/bin/log access -allow bluetooth_loader devpts:chr_file rw_file_perms; - -# Run hci_qcomm_init from init.qcom.bt.sh -domain_auto_trans(bluetooth_loader, hci_attach_exec, hci_attach) -allow hci_attach bluetooth_loader:fd use; - -# Set persist.service.bdroid.* and bluetooth.* property values -set_prop(bluetooth_loader, bluetooth_prop) - -# Allow getprop/setprop for init.qcom.bt.sh -allow bluetooth_loader system_file:file execute_no_trans; - -# Access the smd device -allow bluetooth_loader hci_attach_dev:chr_file rw_file_perms; - -# And qmuxd -allow bluetooth_loader qmuxd_socket:dir { write add_name remove_name search }; -allow bluetooth_loader qmuxd_socket:sock_file { create setattr getattr write unlink }; -allow bluetooth_loader qmuxd:unix_stream_socket { connectto }; diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts index 6ac26d6..2de59ba 100644 --- a/sepolicy/file_contexts +++ b/sepolicy/file_contexts @@ -1,7 +1,6 @@ -/persist/.genmac u:object_r:wifi_data_file:s0 -/persist/.bt_nv.bin u:object_r:bluetooth_data_file:s0 +#Sensor +/dev/mmc3416x u:object_r:sensors_device:s0 -/system/etc/init\.qcom\.bt\.sh u:object_r:bluetooth_loader_exec:s0 +# Wifi +/persist/.genmac u:object_r:wifi_data_file:s0 -/dev/smd3 u:object_r:hci_attach_dev:s0 -/dev/mmc3416x u:object_r:sensors_device:s0 |
