diff options
author | Oli Lan <olilan@google.com> | 2020-01-17 11:41:04 +0000 |
---|---|---|
committer | Oli Lan <olilan@google.com> | 2020-01-17 11:41:04 +0000 |
commit | 90c523b30bcaaf5096ea1136e4f2a1e5d22e7e46 (patch) | |
tree | b8258de82d613c69af33f91db8885727d62a1d8d /init/builtins.cpp | |
parent | d82d9851de4667fdae2bca4e601cb74d91f3a2a5 (diff) |
Give x permission on apex data directories.
This gives search (x) permission on the parent apex data
directory /data/misc/apexdata so that directories below it
may be opened. It also gives that permission on the apex
data directories themselves.
Bug: 147848983
Test: Build & flash, check perms are correct
Change-Id: I27c4ea01602002c89d0771a144265e3879d9041a
Diffstat (limited to 'init/builtins.cpp')
-rw-r--r-- | init/builtins.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/init/builtins.cpp b/init/builtins.cpp index adcba3a02..c87759016 100644 --- a/init/builtins.cpp +++ b/init/builtins.cpp @@ -1276,7 +1276,7 @@ static Result<void> create_apex_data_dirs() { if (strchr(name, '@') != nullptr) continue; auto path = "/data/misc/apexdata/" + std::string(name); - auto options = MkdirOptions{path, 0770, AID_ROOT, AID_SYSTEM, FscryptAction::kNone, "ref"}; + auto options = MkdirOptions{path, 0771, AID_ROOT, AID_SYSTEM, FscryptAction::kNone, "ref"}; make_dir_with_options(options); } return {}; |