summaryrefslogtreecommitdiff
path: root/libs/gui/SurfaceComposerClient.cpp
diff options
context:
space:
mode:
author Jeff Sharkey <jsharkey@android.com> 2016-10-31 11:22:19 -0600
committer Jeff Sharkey <jsharkey@android.com> 2016-12-06 08:58:07 -0700
commit95d9ac642f082870fd4d2419f534171a9b82bbcd (patch)
tree3a45835eaab49c00e81ce360ae4761f73724ae5f /libs/gui/SurfaceComposerClient.cpp
parent7db6041d156b750689b32e340d8a0753061262a3 (diff)
DO NOT MERGE. Check and restorecon cache/code_cache directories.
To speed up boot times, we recently relaxed SELinux restorecon logic to only consider relabeling app storage when the top level SELinux label changed. However, if an app manually deletes either their cache or code_cache directories, installd will helpfully recreate those directories at the next boot, but they'll be stuck with incorrect SELinux labels which an app can't fix. (Our historically aggressive restorecons had relabeled them, which is why we didn't observe until now.) This change checks the labels of the cache/code_cache directories, and runs a restorecon if needed, fixing the issue above. Test: delete cache and verify recreated with correct label Bug: 32504081 Change-Id: I0114ae4129223e5909b1075d56a9b1145ebc5ef4
Diffstat (limited to 'libs/gui/SurfaceComposerClient.cpp')
0 files changed, 0 insertions, 0 deletions