Change /dalvik-cache to be owned by root.
Bug: 16875245
(cherry picked from commit 3878ebd72493427ea5537b36dfb9cd7cb38677bb)
Change-Id: I29a70215a2207bc4e0db02ab751d32a68edf4b66
diff --git a/include/private/android_filesystem_config.h b/include/private/android_filesystem_config.h
index eea9e2b..5d9c3ea 100644
--- a/include/private/android_filesystem_config.h
+++ b/include/private/android_filesystem_config.h
@@ -196,7 +196,7 @@
{ 00770, AID_SYSTEM, AID_CACHE, 0, "cache" },
{ 00771, AID_SYSTEM, AID_SYSTEM, 0, "data/app" },
{ 00771, AID_SYSTEM, AID_SYSTEM, 0, "data/app-private" },
- { 00771, AID_SYSTEM, AID_SYSTEM, 0, "data/dalvik-cache" },
+ { 00771, AID_ROOT, AID_ROOT, 0, "data/dalvik-cache" },
{ 00771, AID_SYSTEM, AID_SYSTEM, 0, "data/data" },
{ 00771, AID_SHELL, AID_SHELL, 0, "data/local/tmp" },
{ 00771, AID_SHELL, AID_SHELL, 0, "data/local" },
diff --git a/rootdir/init.rc b/rootdir/init.rc
index 4d4bc86..681324a 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -290,7 +290,7 @@
mkdir /data/property 0700 root root
# create dalvik-cache, so as to enforce our permissions
- mkdir /data/dalvik-cache 0771 system system
+ mkdir /data/dalvik-cache 0771 root root
mkdir /data/dalvik-cache/profiles 0711 system system
# create resource-cache and double-check the perms