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