Skip to content
Commit 1fc3355e authored by Zim's avatar Zim
Browse files

Fix /mnt/user/<userid> permission bits

Vold sets permission bits for /mnt/user/<userid> when mounting a
volume, zygote was setting different (more relaxed) bits for that
folder. Now we set the same (more restrictive) bits.

It is important to set it here as well because apps may start before
the volume is mounted and they should have the always have the same
permission bits for /mnt/user/<userid>

Bug: 135341433
Test: atest -c android.appsecurity.cts.ExternalStorageHostTest#testSecondaryUsersInaccessible

Change-Id: I87af1b5e63601b38443715fced8b20693b9cf5e6
parent 9aa5a8db
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment