summaryrefslogtreecommitdiff
path: root/libs/binder/IPCThreadState.cpp
diff options
context:
space:
mode:
author Eric Biggers <ebiggers@google.com> 2022-04-28 04:42:45 +0000
committer Eric Biggers <ebiggers@google.com> 2022-04-29 19:05:51 +0000
commitc3d9dce96f44e2a978613de3a3ea8bd99a107a7d (patch)
treee68403f413dee670422a89a13b564c7c09acd108 /libs/binder/IPCThreadState.cpp
parent27590051170905e2d1792e8958d3a6b72e47acf5 (diff)
installd: only delete contents of user's CE and DE dirs
The /data/user/$userId, /data/user_de/$userId, and /data/media/$userId directories (or their /mnt/expand equivalents) are created by vold, so they should be deleted by vold as well, and in fact that would already happen except that installd deletes them recursively before vold gets to it. Change installd to delete just the contents of these directories. This is a prerequisite to locking down the ability to create these directories (https://r.android.com/2078213), which is needed to stop subdirectories from accidentally being created too early. Technically we could achieve this goal without limiting delete access, as it's create access that really matters, but having the operations be paired properly is much cleaner. Test: Created and deleted a user, and verified that all their directories still got deleted. Bug: 156305599 Change-Id: I93f0f86df10829818d0becb65af31190dd008b3c
Diffstat (limited to 'libs/binder/IPCThreadState.cpp')
0 files changed, 0 insertions, 0 deletions