summaryrefslogtreecommitdiff
path: root/prebuilts/api/32.0/private/update_engine_common.te
diff options
context:
space:
mode:
authoralk3pInjection <webmaster@raspii.tech>2022-05-01 21:36:16 +0800
committeralk3pInjection <webmaster@raspii.tech>2022-05-01 21:36:16 +0800
commit329b113bc1329f83fe1eecd32213435f8885ca71 (patch)
treeaf249b7fce9300b5248cbffe94a08d48fb919f73 /prebuilts/api/32.0/private/update_engine_common.te
parent18c07b58901c9d0e7fc0d908ed38146847bab5b3 (diff)
parentd7b93dbd049c0eacfb7ad14677457836c79b38f6 (diff)
Merge tag 'LA.QSSI.12.0.r1-06800-qssi.0' into sugisawa-mr1HEADsugisawa-mr1
"LA.QSSI.12.0.r1-06800-qssi.0" Change-Id: I35dbb71151ce8b3bf68b425732a761532c638017
Diffstat (limited to 'prebuilts/api/32.0/private/update_engine_common.te')
-rw-r--r--prebuilts/api/32.0/private/update_engine_common.te13
1 files changed, 13 insertions, 0 deletions
diff --git a/prebuilts/api/32.0/private/update_engine_common.te b/prebuilts/api/32.0/private/update_engine_common.te
new file mode 100644
index 000000000..8571ff650
--- /dev/null
+++ b/prebuilts/api/32.0/private/update_engine_common.te
@@ -0,0 +1,13 @@
+# type_transition must be private policy the domain_trans rules could stay
+# public, but conceptually should go with this
+# The postinstall program is run by update_engine_common and must be tagged
+# with postinstall_exec in the new filesystem.
+# TODO Have build system attempt to verify this
+domain_auto_trans(update_engine_common, postinstall_exec, postinstall)
+
+# Vendor directories can have the transition as well during OTA. This is caused
+# by update_engine execing scripts in vendor to perform any update tasks needed
+# there.
+domain_auto_trans(update_engine_common, postinstall_file, postinstall)
+
+allow update_engine_common labeledfs:filesystem { mount unmount relabelfrom };