summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2016-09-27 22:21:51 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2016-09-27 22:21:51 -0700
commit748dd1f40ea2d2d54ddcbb7bcc8c8ebdb10e5a64 (patch)
tree9dc728680991183c601ed7e63777bc7e771fe811
parent5f51a1b7229e2efb059db435b87733149bf1489f (diff)
parent992e1f7060bd2373afd1bc342b7d657f99362390 (diff)
downloadandroid_device_qcom_sepolicy-748dd1f40ea2d2d54ddcbb7bcc8c8ebdb10e5a64.tar.gz
android_device_qcom_sepolicy-748dd1f40ea2d2d54ddcbb7bcc8c8ebdb10e5a64.tar.bz2
android_device_qcom_sepolicy-748dd1f40ea2d2d54ddcbb7bcc8c8ebdb10e5a64.zip
Merge "msmcobalt: file_context: Add file context for non-hlos mount points"
-rw-r--r--common/init.te4
-rw-r--r--msmcobalt/file_contexts5
2 files changed, 9 insertions, 0 deletions
diff --git a/common/init.te b/common/init.te
index 02d804cd..6cde24b0 100644
--- a/common/init.te
+++ b/common/init.te
@@ -27,3 +27,7 @@ allow init { domain -lmkd }:process noatsecure;
allow init configfs:dir r_dir_perms;
allow init configfs:file { rw_file_perms link };
allow init configfs:lnk_file create_file_perms;
+
+#Allow init to mount non-hlos partitions in A/B builds
+allow init firmware_file:dir { mounton };
+allow init bt_firmware_file:dir { mounton };
diff --git a/msmcobalt/file_contexts b/msmcobalt/file_contexts
index 0a29e092..c22e4a62 100644
--- a/msmcobalt/file_contexts
+++ b/msmcobalt/file_contexts
@@ -55,3 +55,8 @@
# data files
#
/data/misc/qvop(/.*)? u:object_r:qvop_data_file:s0
+
+##################################
+# non-hlos mount points
+/firmware u:object_r:firmware_file:s0
+/bt_firmware u:object_r:bt_firmware_file:s0