OSDN Git Service

Enable vold to set level from user.
authorAlan Stokes <alanstokes@google.com>
Fri, 7 Feb 2020 09:29:38 +0000 (09:29 +0000)
committerAlan Stokes <alanstokes@google.com>
Fri, 2 Oct 2020 13:49:25 +0000 (14:49 +0100)
commitbe3db7b7aeb10adf51b34a681d73d5c5bbd59623
tree35ca749f0b4ea215bf6d6647a648ec93b025254d
parentd70e2b4ea9ec07ebca6e01f0dc9b18f9f61901ce
Enable vold to set level from user.

We want various per-user directories to have their SELinux MLS level
set to restrict access from other users, as an improvement to user
isolation.

We extend vold_prepare_subdirs to implement this if a flag is
set. vold itself then sets the flag based on a new property,
ro.vold.level_from_user. This is to allow testing of further
incremental work to ensure system apps correctly handle the new
restriction on different devices rather than causing immediate
breakage. Eventually this will go away and the restriction will apply
everywhere.

Bug: 141677108
Test: Manual, with and without propery set.
Change-Id: I8e2207bd94b487bdcc09fd4d80b031027dfea1e3
FsCrypt.cpp
binder/android/os/IVold.aidl
vold_prepare_subdirs.cpp