summaryrefslogtreecommitdiff
path: root/libs/gui/ConsumerBase.cpp
diff options
context:
space:
mode:
author Jeff Sharkey <jsharkey@android.com> 2016-09-20 18:21:42 -0600
committer Jeff Sharkey <jsharkey@google.com> 2016-09-22 17:58:38 +0000
commit993de79607f5bef0f92004f1ed8a388eda9078bc (patch)
treeae4661e4e8b8274442ed092f1488562af7d9a558 /libs/gui/ConsumerBase.cpp
parent5df47cb648a6911dd62527901bb209fd65c73bed (diff)
Recursively restorecon when SELinux label changes.
PackageManager has been pretty aggressive about asking installd to restorecon over app data when it thinks something might have changed. However, in the vast majority of cases these are no-op requests, and we waste a bunch of time recursively walking all private data, easily costing 60+ seconds on dogfooder devices. This change updates the initial "create_app_data" command to kick off a recursive restorecon if it detects that the top-level SELinux label on the app private data directory changes. The "create_app_data" command is designed to ensure that an app's storage is ready, so PackageManager always calls it at least once per boot before apps can run. (This change means that PackageManager no longer needs to make separate "restorecon_app_data" calls.) Test: booted, verified that a label change triggered restorecon Bug: 30768146 Change-Id: I0c8d4018cf8ff888d0ae07a82adc3d61a6002aad
Diffstat (limited to 'libs/gui/ConsumerBase.cpp')
0 files changed, 0 insertions, 0 deletions