platform_system_sepolicy/private/hal_bluetooth_default.te
Myles Watson 1e588b02bc Allow the Bluetooth HAL to log firmware versions
Give the default implementation access to /data/misc/blue* for
backward compatibility.

Future Bluetooth HAL implementations should use the system log.

Test: VTS tests pass, Bluetooth starts/stops
Change-Id: Ia67896b46e3e9ce3421bbb0c8a8542f290b39083
2017-01-17 15:15:07 -08:00

14 lines
489 B
Text

type hal_bluetooth_default, domain;
hal_impl_domain(hal_bluetooth_default, hal_bluetooth)
type hal_bluetooth_default_exec, exec_type, file_type;
init_daemon_domain(hal_bluetooth_default)
# VTS tests need to be able to toggle rfkill
userdebug_or_eng(`
allow hal_bluetooth_default self:capability net_admin;
')
# Logging for backward compatibility
allow hal_bluetooth_default bluetooth_data_file:dir ra_dir_perms;
allow hal_bluetooth_default bluetooth_data_file:file create_file_perms;