restorecon /data/media when re-creating it for multi-user upgrade.
Change-Id: I112c61863f2104d1962697c54cff25106e9b48a0 Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
This commit is contained in:
parent
de8c80692b
commit
47a351834f
@ -392,6 +392,10 @@ int initialize_directories() {
|
||||
goto fail;
|
||||
}
|
||||
|
||||
if (selinux_android_restorecon(android_media_dir.path)) {
|
||||
goto fail;
|
||||
}
|
||||
|
||||
// /data/media/0
|
||||
char owner_media_dir[PATH_MAX];
|
||||
snprintf(owner_media_dir, PATH_MAX, "%s0", android_media_dir.path);
|
||||
|
Loading…
Reference in New Issue
Block a user