summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2021-07-22 01:08:16 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2021-07-22 01:08:16 +0000
commita556e3c11c3dc64164f7c668264137bf221bd340 (patch)
treec11504bec6e206cb8f7af8ed77919aaaae8f80cc
parentccc43dadec755b3895c411ad28fc7044a8d051ef (diff)
parent4342600ecf7625a3de9eb80c3a5f85a06a15794f (diff)
downloadpixel-sepolicy-a556e3c11c3dc64164f7c668264137bf221bd340.tar.gz
Snap for 7571067 from 4342600ecf7625a3de9eb80c3a5f85a06a15794f to sc-release
Change-Id: I90bb3ebf68ef1759564c211171adc7dd6745ab73
-rw-r--r--factory_boost/factory-post-boot.te6
-rw-r--r--factory_boost/file_contexts1
2 files changed, 7 insertions, 0 deletions
diff --git a/factory_boost/factory-post-boot.te b/factory_boost/factory-post-boot.te
new file mode 100644
index 0000000..103b6eb
--- /dev/null
+++ b/factory_boost/factory-post-boot.te
@@ -0,0 +1,6 @@
+# for factory_-prefixed targets only
+type factory-post-boot-sh, domain;
+type factory-post-boot-sh_exec, vendor_file_type, exec_type, file_type;
+init_daemon_domain(factory-post-boot-sh)
+
+allow factory-post-boot-sh vendor_toolbox_exec:file execute_no_trans;
diff --git a/factory_boost/file_contexts b/factory_boost/file_contexts
new file mode 100644
index 0000000..976e219
--- /dev/null
+++ b/factory_boost/file_contexts
@@ -0,0 +1 @@
+/vendor/bin/factory/factory_post_boot u:object_r:factory-post-boot-sh_exec:s0