Skip to content
Snippets Groups Projects
Commit bea8a99c authored by Sharvil Nanavati's avatar Sharvil Nanavati
Browse files

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

Bug: 23375670
Change-Id: I0454c580b465a2f0edc928cf0effb71733866f03
parent 1c38b8a2
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,8 @@ type bluetooth, domain; ...@@ -3,6 +3,8 @@ type bluetooth, domain;
app_domain(bluetooth) app_domain(bluetooth)
net_domain(bluetooth) net_domain(bluetooth)
wakelock_use(bluetooth);
# Data file accesses. # Data file accesses.
allow bluetooth bluetooth_data_file:dir create_dir_perms; allow bluetooth bluetooth_data_file:dir create_dir_perms;
allow bluetooth bluetooth_data_file:notdevfile_class_set create_file_perms; allow bluetooth bluetooth_data_file:notdevfile_class_set create_file_perms;
...@@ -70,4 +72,4 @@ allow bluetooth shell_data_file:file read; ...@@ -70,4 +72,4 @@ allow bluetooth shell_data_file:file read;
# Superuser capabilities. # Superuser capabilities.
# bluetooth requires net_admin and wake_alarm. # bluetooth requires net_admin and wake_alarm.
neverallow bluetooth self:capability ~net_admin; neverallow bluetooth self:capability ~net_admin;
neverallow bluetooth self:capability2 ~wake_alarm; neverallow bluetooth self:capability2 ~{ wake_alarm block_suspend };
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment