blob: 207f718b3133b0052e5d077e03c612826eca459d [file] [log] [blame]
Alex Klyubin168435f2017-02-16 20:14:56 -08001# HwBinder IPC from clients into server, and callbacks
2binder_call(hal_bluetooth_client, hal_bluetooth_server)
3binder_call(hal_bluetooth_server, hal_bluetooth_client)
Andre Eisenbachbe27f922016-10-12 14:49:56 -07004
5wakelock_use(hal_bluetooth);
6
7# bluetooth factory file accesses.
8r_dir_file(hal_bluetooth, bluetooth_efs_file)
9
10allow hal_bluetooth { uhid_device hci_attach_dev }:chr_file rw_file_perms;
11
12# Access to config files to look for a Bluetooth address
13r_dir_file(hal_bluetooth, bluetooth_data_file)
14
15# sysfs access.
16r_dir_file(hal_bluetooth, sysfs_type)
17allow hal_bluetooth sysfs_bluetooth_writable:file rw_file_perms;
18allow hal_bluetooth self:capability2 wake_alarm;
19
20# Allow write access to bluetooth-specific properties
21set_prop(hal_bluetooth, bluetooth_prop)
Andre Eisenbach6e3a5d02017-02-07 20:30:40 -080022
23# /proc access (bluesleep etc.).
24allow hal_bluetooth proc_bluetooth_writable:file rw_file_perms;