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

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

index 8907cbbe945e3db69a9b021e6c38adbfa1559bb5..c454f332deb6c0c4871aff923b29e12432f6508a 100644 (file)
@@ -4,3 +4,4 @@
 /(vendor|system/vendor)/bin/hw/android\.hardware\.light@[0-9].[0-9]-service\.samsung              u:object_r:hal_light_default_exec:s0
 /(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
diff --git a/common/vendor/hal_vendor_configstore_default.te b/common/vendor/hal_vendor_configstore_default.te
new file mode 100644 (file)
index 0000000..cb75640
--- /dev/null
@@ -0,0 +1,13 @@
+# hal_vendor_configstore_default.te
+
+type hal_vendor_configstore_default, domain;
+type hal_vendor_configstore_default_exec, exec_type, vendor_file_type, file_type;
+init_daemon_domain(hal_vendor_configstore_default)
+
+add_hwservice(hal_vendor_configstore_default, hal_vendor_configstore_hwservice)
+
+hwbinder_use(hal_vendor_configstore_default)
+get_prop(hal_vendor_configstore_default, hwservicemanager_prop)
+
+# /acct/tasks
+allow hal_vendor_configstore_default cgroup:file getattr;