Skip to content
This repository has been archived by the owner on Dec 12, 2023. It is now read-only.

Commit

Permalink
fix: Allow servicemanager to access hal_audio_sysbta
Browse files Browse the repository at this point in the history
  • Loading branch information
ponces committed Oct 9, 2022
1 parent e15a25c commit fb6c71a
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14572,10 +14572,10 @@ index 999ff97..09cde27 100644
+/system/bin/hw/android\.hardware\.bluetooth\.audio-service-system u:object_r:hal_audio_sysbta_exec:s0
diff --git a/sepolicy/hal_audio_sysbta.te b/sepolicy/hal_audio_sysbta.te
new file mode 100644
index 0000000..d871ed3
index 0000000..53c31cf
--- /dev/null
+++ b/sepolicy/hal_audio_sysbta.te
@@ -0,0 +1,10 @@
@@ -0,0 +1,14 @@
+type hal_audio_sysbta, domain, coredomain;
+hal_server_domain(hal_audio_sysbta, hal_audio)
+
Expand All @@ -14586,6 +14586,10 @@ index 0000000..d871ed3
+
+# allow audioserver to call hal_audio dump with its own fd to retrieve status
+allow hal_audio_sysbta audioserver:fifo_file write;
+
+allow servicemanager hal_audio_sysbta:dir { search };
+allow servicemanager hal_audio_sysbta:file { open read };
+allow servicemanager hal_audio_sysbta:process { getattr };
diff --git a/sepolicy/service_contexts b/sepolicy/service_contexts
index 7680633..73c6722 100644
--- a/sepolicy/service_contexts
Expand Down

0 comments on commit fb6c71a

Please sign in to comment.