summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Jeff Sharkey <jsharkey@android.com> 2015-07-20 23:56:41 +0000
committer Android Git Automerger <android-git-automerger@android.com> 2015-07-20 23:56:41 +0000
commit9ca52e34f742f6b8da936733626c334260c6edc8 (patch)
tree50dd2550f65c28e9d6b61b881f991bd7b6e8e29e
parent59d6f2c322080c5fee214ba2401ab271fd0440f7 (diff)
parenta2307aefd06f1310660ef1d35ce01bcfc72c9633 (diff)
am a2307aef: Only restorecon_data once for all users.
* commit 'a2307aefd06f1310660ef1d35ce01bcfc72c9633': Only restorecon_data once for all users.
-rw-r--r--cmds/installd/commands.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmds/installd/commands.cpp b/cmds/installd/commands.cpp
index 880877c021..7090b36775 100644
--- a/cmds/installd/commands.cpp
+++ b/cmds/installd/commands.cpp
@@ -257,11 +257,11 @@ int copy_complete_app(const char *from_uuid, const char *to_uuid,
<< ": status " << rc;
goto fail;
}
+ }
- if (restorecon_data(to_uuid, package_name, seinfo, uid) != 0) {
- LOG(ERROR) << "Failed to restorecon " << to;
- goto fail;
- }
+ if (restorecon_data(to_uuid, package_name, seinfo, multiuser_get_uid(0, appid)) != 0) {
+ LOG(ERROR) << "Failed to restorecon";
+ goto fail;
}
// We let the framework scan the new location and persist that before