Split bluetooth sepolicy file to avoid conflict
- Move bluetooth related config to bluetooth folder Bug: 196308076 Test: make; boot with service btlinux started Change-Id: I8d40697f20a916fc154f0b60851abecd1deadc0d
This commit is contained in:
parent
f12ab4e795
commit
9795c12e8f
3 changed files with 2 additions and 1 deletions
2
bluetooth/file_contexts
Normal file
2
bluetooth/file_contexts
Normal file
|
@ -0,0 +1,2 @@
|
|||
# Bluetooth
|
||||
/(vendor|system/vendor)/bin/hw/android\.hardware\.bluetooth@1\.1-service\.bcmbtlinux u:object_r:hal_bluetooth_btlinux_exec:s0
|
22
bluetooth/hal_bluetooth_btlinux.te
Normal file
22
bluetooth/hal_bluetooth_btlinux.te
Normal file
|
@ -0,0 +1,22 @@
|
|||
add_hwservice(hal_bluetooth_btlinux, hal_bluetooth_coexistence_hwservice);
|
||||
get_prop(hal_bluetooth_btlinux, boot_status_prop)
|
||||
|
||||
allow hal_bluetooth_btlinux sysfs_bluetooth_writable:file rw_file_perms;
|
||||
allow hal_bluetooth_btlinux proc_bluetooth_writable:file rw_file_perms;
|
||||
allow hal_bluetooth_btlinux hci_attach_dev:chr_file rw_file_perms;
|
||||
allow hal_bluetooth_btlinux wb_coexistence_dev:chr_file rw_file_perms;
|
||||
binder_call(hal_bluetooth_btlinux, servicemanager)
|
||||
|
||||
# power stats
|
||||
vndbinder_use(hal_bluetooth_btlinux)
|
||||
allow hal_bluetooth_btlinux hal_power_stats_vendor_service:service_manager find;
|
||||
binder_call(hal_bluetooth_btlinux, hal_power_stats_default)
|
||||
|
||||
allow hal_bluetooth_btlinux sscoredump_vendor_data_crashinfo_file:dir create_dir_perms;
|
||||
allow hal_bluetooth_btlinux sscoredump_vendor_data_crashinfo_file:file create_file_perms;
|
||||
|
||||
userdebug_or_eng(`
|
||||
allow hal_bluetooth_btlinux sscoredump_vendor_data_coredump_file:dir create_dir_perms;
|
||||
allow hal_bluetooth_btlinux sscoredump_vendor_data_coredump_file:file create_file_perms;
|
||||
allow hal_bluetooth_btlinux logbuffer_device:chr_file r_file_perms;
|
||||
')
|
Loading…
Add table
Add a link
Reference in a new issue