common: Add policy for sehradiomanager
authorTim Zimmermann <tim@linux4.de>
Thu, 14 Mar 2024 05:45:29 +0000 (06:45 +0100)
committerFrancescodario Cuzzocrea <bosconovic@gmail.com>
Fri, 26 Apr 2024 12:32:21 +0000 (14:32 +0200)
Change-Id: Iee652c13477e4ee0f6347bc473f82ed43de393b2

common/vendor/file_contexts
common/vendor/sehradiomanager.te [new file with mode: 0644]

index 2ded2968c8a3f868ad95e02dc854124c945045b0..d0a28d13b8a0b4f8a5dc871d23cb9b152fecd8c4 100644 (file)
 /(vendor|system/vendor)/bin/hw/gpsd              u:object_r:gpsd_exec:s0
 /(vendor|system/vendor)/bin/hw/lhd               u:object_r:lhd_exec:s0
 /(vendor|system/vendor)/bin/hw/macloader         u:object_r:macloader_exec:s0
+/(vendor|system/vendor)/bin/hw/sehradiomanager   u:object_r:sehradiomanager_exec:s0
 
 /(vendor|system/vendor)/lib(64)?/hw/gralloc\.exynos[0-9]*\.so    u:object_r:same_process_hal_file:s0
 /(vendor|system/vendor)/lib(64)?/hw/vulkan\.mali\.so             u:object_r:same_process_hal_file:s0
diff --git a/common/vendor/sehradiomanager.te b/common/vendor/sehradiomanager.te
new file mode 100644 (file)
index 0000000..e856ecf
--- /dev/null
@@ -0,0 +1,9 @@
+type sehradiomanager, domain;
+type sehradiomanager_exec, exec_type, file_type, vendor_file_type;
+
+init_daemon_domain(sehradiomanager)
+
+get_prop(sehradiomanager, vendor_radio_prop)
+get_prop(sehradiomanager, hwservicemanager_prop)
+binder_call(sehradiomanager, hwservicemanager)
+hal_client_domain(sehradiomanager, hal_telephony)