summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorCalvin Huang <calhuang@google.com>2019-12-12 10:24:45 -0800
committerMikhail Naganov <mnaganov@google.com>2020-02-03 17:27:37 -0800
commit51a2bba730ee841a1d49c2193a747f07df7398d0 (patch)
tree961e9d969bac26d4191c07e944acadfe820ea101 /common
parentd232236f02ad0235dd0a8dc372b54fd5166903b2 (diff)
downloaddevice_generic_car-51a2bba730ee841a1d49c2193a747f07df7398d0.tar.gz
device_generic_car-51a2bba730ee841a1d49c2193a747f07df7398d0.tar.bz2
device_generic_car-51a2bba730ee841a1d49c2193a747f07df7398d0.zip
Update bluetooth sepolicy on car emu
Update bluetooth related sepolicy based on cuttlefish Bug: 144849034 Test: Manual Change-Id: I6f70fef58b113e39f20f67fe5bd941ec2653066b Merged-In: I6f70fef58b113e39f20f67fe5bd941ec2653066b
Diffstat (limited to 'common')
-rw-r--r--common/sepolicy/file_contexts2
-rw-r--r--common/sepolicy/property_contexts0
-rw-r--r--common/sepolicy/vendor/property_contexts2
-rw-r--r--common/sepolicy/vendor/vendor_init.te8
4 files changed, 11 insertions, 1 deletions
diff --git a/common/sepolicy/file_contexts b/common/sepolicy/file_contexts
index e3e07d2..ed5712b 100644
--- a/common/sepolicy/file_contexts
+++ b/common/sepolicy/file_contexts
@@ -1,2 +1,2 @@
# label the bluetooth@1.0-service.sim or it won't register during system boot
-/vendor/bin/hw/android\.hardware\.bluetooth@1\.0-service\.sim u:object_r:hal_bluetooth_default_exec:s0
+/vendor/bin/hw/android\.hardware\.bluetooth@1\.1-service\.sim u:object_r:hal_bluetooth_default_exec:s0
diff --git a/common/sepolicy/property_contexts b/common/sepolicy/property_contexts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/common/sepolicy/property_contexts
diff --git a/common/sepolicy/vendor/property_contexts b/common/sepolicy/vendor/property_contexts
new file mode 100644
index 0000000..1925671
--- /dev/null
+++ b/common/sepolicy/vendor/property_contexts
@@ -0,0 +1,2 @@
+bt.rootcanal_mac_address u:object_r:hal_bluetooth_sim_prop:s0
+bt.rootcanal_test_console u:object_r:hal_bluetooth_sim_prop:s0 \ No newline at end of file
diff --git a/common/sepolicy/vendor/vendor_init.te b/common/sepolicy/vendor/vendor_init.te
new file mode 100644
index 0000000..d3a115f
--- /dev/null
+++ b/common/sepolicy/vendor/vendor_init.te
@@ -0,0 +1,8 @@
+allow vendor_init {
+ audio_device
+ input_events_device
+ libcuttlefish_rild_device
+ region_screen_device
+}:chr_file { getattr };
+
+set_prop(vendor_init, hal_bluetooth_sim_prop)