Merge "Remove write permission from file mode of top-level user dirs" am: c73150307a
am: 55593258ac
am: 0f7c1825b1
am: 4801c65d8e
Original change: https://android-review.googlesource.com/c/platform/system/vold/+/2617599 Change-Id: I039c2599039c8c46326c0c5c311b8cb4580292db Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
d1cf82849a
1 changed files with 5 additions and 5 deletions
|
@ -171,11 +171,11 @@ status_t PrivateVolume::doMount() {
|
|||
|
||||
// Verify that common directories are ready to roll
|
||||
if (PrepareDir(mPath + "/app", 0771, AID_SYSTEM, AID_SYSTEM) ||
|
||||
PrepareDir(mPath + "/user", 0711, AID_SYSTEM, AID_SYSTEM) ||
|
||||
PrepareDir(mPath + "/user_de", 0711, AID_SYSTEM, AID_SYSTEM) ||
|
||||
PrepareDir(mPath + "/misc_ce", 0711, AID_SYSTEM, AID_SYSTEM) ||
|
||||
PrepareDir(mPath + "/misc_de", 0711, AID_SYSTEM, AID_SYSTEM) ||
|
||||
PrepareDir(mPath + "/media", 0770, AID_MEDIA_RW, AID_MEDIA_RW, attrs) ||
|
||||
PrepareDir(mPath + "/user", 0511, AID_SYSTEM, AID_SYSTEM) ||
|
||||
PrepareDir(mPath + "/user_de", 0511, AID_SYSTEM, AID_SYSTEM) ||
|
||||
PrepareDir(mPath + "/misc_ce", 0511, AID_SYSTEM, AID_SYSTEM) ||
|
||||
PrepareDir(mPath + "/misc_de", 0511, AID_SYSTEM, AID_SYSTEM) ||
|
||||
PrepareDir(mPath + "/media", 0550, AID_MEDIA_RW, AID_MEDIA_RW, attrs) ||
|
||||
PrepareDir(mPath + "/media/0", 0770, AID_MEDIA_RW, AID_MEDIA_RW) ||
|
||||
PrepareDir(mPath + "/local", 0751, AID_ROOT, AID_ROOT) ||
|
||||
PrepareDir(mPath + "/local/tmp", 0771, AID_SHELL, AID_SHELL)) {
|
||||
|
|
Loading…
Reference in a new issue