blob: e9679de5c61973533f97c92af2cddc32c182177a [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
Myles Watson20b8d6b2017-02-22 11:50:20 -08007# The HAL toggles rfkill to power the chip off/on.
8allow hal_bluetooth self:capability net_admin;
9
Andre Eisenbachbe27f922016-10-12 14:49:56 -070010# bluetooth factory file accesses.
11r_dir_file(hal_bluetooth, bluetooth_efs_file)
12
13allow hal_bluetooth { uhid_device hci_attach_dev }:chr_file rw_file_perms;
14
15# Access to config files to look for a Bluetooth address
16r_dir_file(hal_bluetooth, bluetooth_data_file)
17
18# sysfs access.
19r_dir_file(hal_bluetooth, sysfs_type)
20allow hal_bluetooth sysfs_bluetooth_writable:file rw_file_perms;
21allow hal_bluetooth self:capability2 wake_alarm;
22
23# Allow write access to bluetooth-specific properties
24set_prop(hal_bluetooth, bluetooth_prop)
Andre Eisenbach6e3a5d02017-02-07 20:30:40 -080025
26# /proc access (bluesleep etc.).
27allow hal_bluetooth proc_bluetooth_writable:file rw_file_perms;