commit | 772e250333241e420855b27421ba9d9a0f02ca0b | [log] [tgz] |
---|---|---|
author | Alan Stokes <alanstokes@google.com> | Tue Dec 15 16:32:53 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue Dec 15 16:32:53 2020 +0000 |
tree | 5c587667d620aa54b6ce04231c83b4d1d3144da5 | |
parent | 6fb06bc262a414903fea700d8d2a3542d6d9c619 [diff] | |
parent | bce32a6ba7e141faa7b3031a30a5c664c3dd98e8 [diff] |
Merge "Run restorecon on new profile directories." am: 2705d04f15 am: 903d5086e3 am: bce32a6ba7 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1523799 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I40e61230e375674b3fa503395f55210721100e09
diff --git a/cmds/installd/InstalldNativeService.cpp b/cmds/installd/InstalldNativeService.cpp index b821578..818804a 100644 --- a/cmds/installd/InstalldNativeService.cpp +++ b/cmds/installd/InstalldNativeService.cpp
@@ -398,6 +398,10 @@ PLOG(ERROR) << "Failed to prepare " << profile_dir; return false; } + if (selinux_android_restorecon(profile_dir.c_str(), 0)) { + PLOG(ERROR) << "Failed to restorecon " << profile_dir; + return false; + } const std::string ref_profile_path = create_primary_reference_profile_package_dir_path(packageName);