common: Add hal_vendor_hwcservice_default
authorAndreas Schneider <asn@cryptomilk.org>
Mon, 16 Mar 2020 17:10:39 +0000 (18:10 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 1 Apr 2020 05:43:22 +0000 (07:43 +0200)
Change-Id: Id99d963e16a5480b8e310bcc5be0de9f16dc6935

common/vendor/file_contexts
common/vendor/hal_vendor_hwcservice_default.te [new file with mode: 0644]
common/vendor/vndservice.te [new file with mode: 0644]
common/vendor/vndservice_contexts [new file with mode: 0644]

index c454f332deb6c0c4871aff923b29e12432f6508a..f680d56a399d372286d317267a67e701d218e5dd 100644 (file)
@@ -5,3 +5,4 @@
 /(vendor|system/vendor)/bin/hw/android\.hardware\.power@[0-9].[0-9]-service\.exynos               u:object_r:hal_power_default_exec:s0
 /(vendor|system/vendor)/bin/hw/android\.hardware\.vibrator@[0-9].[0-9]-service\.samsung-haptic    u:object_r:hal_vibrator_default_exec:s0
 /(vendor|system/vendor)/bin/hw/vendor\.samsung_slsi\.hardware\.configstore@[0-9]\.[0-9]-service   u:object_r:hal_vendor_configstore_default_exec:s0
+/(vendor|system/vendor)/bin/hw/vendor\.samsung_slsi\.hardware\.ExynosHWCServiceTW@[0-9]\.[0-9]-service    u:object_r:hal_vendor_hwcservice_default_exec:s0
diff --git a/common/vendor/hal_vendor_hwcservice_default.te b/common/vendor/hal_vendor_hwcservice_default.te
new file mode 100644 (file)
index 0000000..24ecb3d
--- /dev/null
@@ -0,0 +1,17 @@
+# hal_vendor_hwcservice_default.te
+
+type hal_vendor_hwcservice_default, domain;
+hal_client_domain(hal_vendor_hwcservice_default, hal_graphics_composer)
+
+type hal_vendor_hwcservice_default_exec, exec_type, vendor_file_type, file_type;
+init_daemon_domain(hal_vendor_hwcservice_default)
+
+vndbinder_use(hal_vendor_hwcservice_default)
+allow hal_vendor_hwcservice_default vendor_surfaceflinger_vndservice:service_manager { add find };
+
+add_hwservice(hal_vendor_hwcservice_default, hal_vendor_surfaceflinger_hwservice)
+hwbinder_use(hal_vendor_hwcservice_default)
+get_prop(hal_vendor_hwcservice_default, hwservicemanager_prop)
+
+# /acct/tasks
+allow hal_vendor_configstore_default cgroup:file getattr;
diff --git a/common/vendor/vndservice.te b/common/vendor/vndservice.te
new file mode 100644 (file)
index 0000000..12a4819
--- /dev/null
@@ -0,0 +1 @@
+type vendor_surfaceflinger_vndservice, vndservice_manager_type;
diff --git a/common/vendor/vndservice_contexts b/common/vendor/vndservice_contexts
new file mode 100644 (file)
index 0000000..f088001
--- /dev/null
@@ -0,0 +1,3 @@
+# vndservice_contexts
+
+Exynos.HWCService                      u:object_r:vendor_surfaceflinger_vndservice:s0