summaryrefslogtreecommitdiff
path: root/libs/gui/LayerDebugInfo.cpp
diff options
context:
space:
mode:
author Eric Biggers <ebiggers@google.com> 2023-06-14 00:53:20 +0000
committer Eric Biggers <ebiggers@google.com> 2023-06-14 01:02:46 +0000
commit5818c65aafcdef4feae6f57091e1083cd64247df (patch)
treec9d361fdcfd07d55bc4b4ea04872b830042e0a08 /libs/gui/LayerDebugInfo.cpp
parent2bde961aeb99fd5d1cac94f0d5eea2797949a271 (diff)
Remove write permission from file mode of top-level user dirs
https://r.android.com/2620458 and https://r.android.com/2617599 are removing the write mode bit from the top-level user directories, in order to make the DAC consistent with the SELinux policy. This commit makes the corresponding change to InstalldNativeService::tryMountDataMirror(). This method creates /data_mirror/data_ce/$volume_uuid and bind-mounts /data/user onto it, and similarly for several other directories. It should not really need to be changed, but the issue is that for adoptable storage it runs multiple times, so the modes it uses to prepare the directories with must match the modes of the corresponding bind-mounted directories. Bug: 285239971 Test: sm set-virtual-disk true sm partition disk:7,392 private Verified no error message from tryMountDataMirror() in log Change-Id: I17dfbe10909b34c2046a4d5b4ffd7764d5ae083b
Diffstat (limited to 'libs/gui/LayerDebugInfo.cpp')
0 files changed, 0 insertions, 0 deletions