DO NOT MERGE Grant Bluetooth the ability to acquire wake locks.

Bug: 23375670
Change-Id: I0454c580b465a2f0edc928cf0effb71733866f03
This commit is contained in:
Sharvil Nanavati 2015-08-31 23:28:15 -07:00
parent 1c38b8a225
commit bea8a99c91

View File

@ -3,6 +3,8 @@ type bluetooth, domain;
app_domain(bluetooth)
net_domain(bluetooth)
wakelock_use(bluetooth);
# Data file accesses.
allow bluetooth bluetooth_data_file:dir create_dir_perms;
allow bluetooth bluetooth_data_file:notdevfile_class_set create_file_perms;
@ -70,4 +72,4 @@ allow bluetooth shell_data_file:file read;
# Superuser capabilities.
# bluetooth requires net_admin and wake_alarm.
neverallow bluetooth self:capability ~net_admin;
neverallow bluetooth self:capability2 ~wake_alarm;
neverallow bluetooth self:capability2 ~{ wake_alarm block_suspend };