am cd4104e8: Revert "Revert "Dynamic insertion of pubkey to mac_permissions.xml""
* commit 'cd4104e84b438827fddd6a7fe6cb86e91392152d':
Revert "Revert "Dynamic insertion of pubkey to mac_permissions.xml""
diff --git a/bluetooth.te b/bluetooth.te
index cd17967..452c323 100644
--- a/bluetooth.te
+++ b/bluetooth.te
@@ -10,7 +10,7 @@
r_dir_file(bluetooth, bluetooth_efs_file)
# Device accesses.
-allow bluetooth { tun_device uhid_device hci_attach_dev }:chr_file rw_file_perms;
+allow bluetooth { hci_attach_dev }:chr_file rw_file_perms;
allow bluetooth input_device:chr_file write;
# sysfs access.
diff --git a/file_contexts b/file_contexts
index 4e6db16..e88f035 100644
--- a/file_contexts
+++ b/file_contexts
@@ -144,6 +144,11 @@
/system/xbin/su u:object_r:su_exec:s0
/system/vendor/bin/gpsd u:object_r:gpsd_exec:s0
#############################
+# Vendor files
+#
+/vendor(/.*)? u:object_r:system_file:s0
+/vendor/bin/gpsd u:object_r:gpsd_exec:s0
+#############################
# Data files
#
/data(/.*)? u:object_r:system_data_file:s0