allow vold_prepare_subdirs to create storaged directories
Test: Boot device, observe logs
Bug: 63740245
Change-Id: I1068304b12ea90736b7927b7368ba1a213d2fbae
diff --git a/private/file_contexts b/private/file_contexts
index 03bd889..ca0a696 100644
--- a/private/file_contexts
+++ b/private/file_contexts
@@ -396,6 +396,7 @@
/data/misc/profman(/.*)? u:object_r:profman_dump_data_file:s0
# storaged proto files
+/data/misc_de/[0-9]+/storaged(/.*)? u:object_r:storaged_data_file:s0
/data/misc_ce/[0-9]+/storaged(/.*)? u:object_r:storaged_data_file:s0
# Fingerprint data
diff --git a/private/vold_prepare_subdirs.te b/private/vold_prepare_subdirs.te
index c2146f9..7360e58 100644
--- a/private/vold_prepare_subdirs.te
+++ b/private/vold_prepare_subdirs.te
@@ -1 +1,3 @@
domain_auto_trans(vold, vold_prepare_subdirs_exec, vold_prepare_subdirs)
+
+allow vold_prepare_subdirs storaged_data_file:dir create_dir_perms;