From a02bd89a10514a823d9acc759943302f65609aa5 Mon Sep 17 00:00:00 2001 From: Pavlin Radoslavov <pavlin@google.com> Date: Mon, 28 Dec 2015 16:54:53 -0800 Subject: [PATCH] Minor cleanup to align the content with AOSP No functional changes. Change-Id: Ic9e5aae5b4a214f5dc4c710e7bdcd51eb7b63e75 --- bluetooth.te | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bluetooth.te b/bluetooth.te index 6ff7f4863..6a329b70c 100644 --- a/bluetooth.te +++ b/bluetooth.te @@ -3,6 +3,8 @@ type bluetooth, domain, domain_deprecated; 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; @@ -20,7 +22,6 @@ allow bluetooth { uhid_device hci_attach_dev }:chr_file rw_file_perms; allow bluetooth sysfs_bluetooth_writable:file rw_file_perms; allow bluetooth self:capability net_admin; allow bluetooth self:capability2 wake_alarm; -wakelock_use(bluetooth); # tethering allow bluetooth self:tun_socket create_socket_perms; @@ -60,4 +61,4 @@ allow bluetooth shell_data_file:file read; # Superuser capabilities. # bluetooth requires net_admin, wake_alarm and block_suspend neverallow bluetooth self:capability ~net_admin; -neverallow bluetooth self:capability2 ~{wake_alarm block_suspend}; +neverallow bluetooth self:capability2 ~{ wake_alarm block_suspend }; -- GitLab