aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSharvil Nanavati <sharvil@google.com>2015-08-31 23:28:15 -0700
committerSharvil Nanavati <sharvil@google.com>2015-08-31 23:28:15 -0700
commitbea8a99c916742fa153cabb82777ad0ccbb8a3c3 (patch)
tree6f69979c754a43e7a842ad30d9d5722dc79c6126
parent1c38b8a225db3fa3f12e4892985c48e369550235 (diff)
downloadandroid_external_sepolicy-bea8a99c916742fa153cabb82777ad0ccbb8a3c3.tar.gz
android_external_sepolicy-bea8a99c916742fa153cabb82777ad0ccbb8a3c3.tar.bz2
android_external_sepolicy-bea8a99c916742fa153cabb82777ad0ccbb8a3c3.zip
DO NOT MERGE Grant Bluetooth the ability to acquire wake locks.
Bug: 23375670 Change-Id: I0454c580b465a2f0edc928cf0effb71733866f03
-rw-r--r--bluetooth.te4
1 files changed, 3 insertions, 1 deletions
diff --git a/bluetooth.te b/bluetooth.te
index a79023d..338f2b2 100644
--- a/bluetooth.te
+++ b/bluetooth.te
@@ -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 };