From c0125335e5d941af603ca0af774fca1c0576c148 Mon Sep 17 00:00:00 2001 From: Jin Qian <jinqian@google.com> Date: Thu, 19 Oct 2017 14:41:37 -0700 Subject: [PATCH] allow vold_prepare_subdirs to create storaged directories Test: Boot device, observe logs Bug: 63740245 Change-Id: I1068304b12ea90736b7927b7368ba1a213d2fbae --- private/file_contexts | 1 + private/vold_prepare_subdirs.te | 2 ++ 2 files changed, 3 insertions(+) diff --git a/private/file_contexts b/private/file_contexts index 03bd889d5..ca0a69685 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 c2146f91a..7360e5848 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; -- GitLab