Move mounting from devices to common place

Bug: 130377452
Test: boot to home with firmware and persist image mounted
Change-Id: I30e7dad45a94522a45e64dfb86363723d96bd4dc
diff --git a/common/file.te b/common/file.te
new file mode 100644
index 0000000..7dc080d
--- /dev/null
+++ b/common/file.te
@@ -0,0 +1,4 @@
+type persist_file, file_type, vendor_persist_type;
+type firmware_file, file_type, contextmount_type, vendor_file_type;
+
+allow firmware_file self:filesystem associate;
diff --git a/common/file_contexts b/common/file_contexts
new file mode 100644
index 0000000..b8aed0e
--- /dev/null
+++ b/common/file_contexts
@@ -0,0 +1,3 @@
+/mnt/vendor/persist(/.*)?       u:object_r:persist_file:s0
+/vendor/firmware_mnt(/.*)?      u:object_r:firmware_file:s0
+/persist(/.*)?                  u:object_r:persist_file:s0
diff --git a/common/init.te b/common/init.te
new file mode 100644
index 0000000..1ff76db
--- /dev/null
+++ b/common/init.te
@@ -0,0 +1,2 @@
+allow init firmware_file:dir mounton;
+allow init firmware_file:filesystem { getattr mount relabelfrom };