OSDN Git Service

Protect runtime storage mount points.
authorJeff Sharkey <jsharkey@android.com>
Thu, 6 Aug 2015 18:40:00 +0000 (11:40 -0700)
committerJeff Sharkey <jsharkey@android.com>
Thu, 6 Aug 2015 18:45:50 +0000 (11:45 -0700)
commit1bd078fa7b5ca613cb3e793d67ccd86d2602787d
tree637546f74c946cfceb57a6805204d0f99c8939dd
parent8474ee323131fdadcc17f09eab25003a7ae934e0
Protect runtime storage mount points.

We have a bunch of magic that mounts the correct view of storage
access based on the runtime permissions of an app, but we forgot to
protect the real underlying data sources; oops.

This series of changes just bumps the directory heirarchy one level
to give us /mnt/runtime which we can mask off as 0700 to prevent
people from jumping to the exposed internals.

Also add CTS tests to verify that we're protecting access to
internal mount points like this.

Bug: 22964288
Change-Id: I83f09f0423f4993e766273c50389dd29b1c50589
EmulatedVolume.cpp
PublicVolume.cpp
VolumeManager.cpp