summaryrefslogtreecommitdiffstats
path: root/rootdir
diff options
context:
space:
mode:
authorStephen Smalley <sds@tycho.nsa.gov>2014-01-15 13:19:31 -0500
committerStephen Smalley <sds@tycho.nsa.gov>2014-01-15 13:19:31 -0500
commit9e9f05e5ebf72a60930a53e5cf45f575534fc29d (patch)
tree959ce6b6bc70a185f612f2bb342251dd24720cb8 /rootdir
parent37fd839fc26b9b3da451a3cb23da6e49c6b676d9 (diff)
downloadsystem_core-9e9f05e5ebf72a60930a53e5cf45f575534fc29d.zip
system_core-9e9f05e5ebf72a60930a53e5cf45f575534fc29d.tar.gz
system_core-9e9f05e5ebf72a60930a53e5cf45f575534fc29d.tar.bz2
restorecon /data/misc/media.
Otherwise it will be mislabeled on upgrades with existing userdata. Change-Id: Ibde88d5d692ead45b480bb34cfe0831baeffbf94 Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Diffstat (limited to 'rootdir')
-rw-r--r--rootdir/init.rc1
1 files changed, 1 insertions, 0 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc
index 95ca6af..a66a2e4 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -222,6 +222,7 @@ on post-fs-data
chmod 0660 /data/misc/wifi/wpa_supplicant.conf
mkdir /data/local 0751 root root
mkdir /data/misc/media 0700 media media
+ restorecon_recursive /data/misc/media
# Set security context of any pre-existing /data/misc/adb/adb_keys file.
restorecon /data/misc/adb