Andre Eisenbach | be27f92 | 2016-10-12 14:49:56 -0700 | [diff] [blame] | 1 | r_dir_file(hal_bluetooth, system_file) |
| 2 | |
| 3 | # call into the Bluetooth process (callbacks) |
| 4 | binder_call(hal_bluetooth, bluetooth) |
| 5 | |
| 6 | wakelock_use(hal_bluetooth); |
| 7 | |
| 8 | # bluetooth factory file accesses. |
| 9 | r_dir_file(hal_bluetooth, bluetooth_efs_file) |
| 10 | |
| 11 | allow hal_bluetooth { uhid_device hci_attach_dev }:chr_file rw_file_perms; |
| 12 | |
| 13 | # Access to config files to look for a Bluetooth address |
| 14 | r_dir_file(hal_bluetooth, bluetooth_data_file) |
| 15 | |
| 16 | # sysfs access. |
| 17 | r_dir_file(hal_bluetooth, sysfs_type) |
| 18 | allow hal_bluetooth sysfs_bluetooth_writable:file rw_file_perms; |
| 19 | allow hal_bluetooth self:capability2 wake_alarm; |
| 20 | |
| 21 | # Allow write access to bluetooth-specific properties |
| 22 | set_prop(hal_bluetooth, bluetooth_prop) |
Andre Eisenbach | 6e3a5d0 | 2017-02-07 20:30:40 -0800 | [diff] [blame^] | 23 | |
| 24 | # /proc access (bluesleep etc.). |
| 25 | allow hal_bluetooth proc_bluetooth_writable:file rw_file_perms; |