summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eastham <eastham@google.com>2011-02-03 17:12:47 -0800
committerPaul Eastham <eastham@google.com>2011-02-03 17:14:00 -0800
commit1ace223fcbf8da9e0d22e31c1b3129a7a8276cb1 (patch)
tree00045c610fe685e4c0598fad0ad9bfe50eaa2996
parent58fb822024a04641d5ca1d0341456a2706aee853 (diff)
downloadsystem_core-1ace223fcbf8da9e0d22e31c1b3129a7a8276cb1.zip
system_core-1ace223fcbf8da9e0d22e31c1b3129a7a8276cb1.tar.gz
system_core-1ace223fcbf8da9e0d22e31c1b3129a7a8276cb1.tar.bz2
Set default permissions for preloaded /data/media aka /sdcard content.
Change-Id: Ia67cbdbfbcd423cf163f0fce5c6edc215564e782
-rw-r--r--include/private/android_filesystem_config.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/private/android_filesystem_config.h b/include/private/android_filesystem_config.h
index e446fc9..a12f731 100644
--- a/include/private/android_filesystem_config.h
+++ b/include/private/android_filesystem_config.h
@@ -147,6 +147,8 @@ static struct fs_path_config android_dirs[] = {
{ 00771, AID_SHELL, AID_SHELL, "data/local" },
{ 01771, AID_SYSTEM, AID_MISC, "data/misc" },
{ 00770, AID_DHCP, AID_DHCP, "data/misc/dhcp" },
+ { 00775, AID_MEDIA_RW, AID_MEDIA_RW, "data/media" },
+ { 00775, AID_MEDIA_RW, AID_MEDIA_RW, "data/media/Music" },
{ 00771, AID_SYSTEM, AID_SYSTEM, "data" },
{ 00750, AID_ROOT, AID_SHELL, "sbin" },
{ 00755, AID_ROOT, AID_SHELL, "system/bin" },
@@ -181,6 +183,7 @@ static struct fs_path_config android_files[] = {
{ 00555, AID_ROOT, AID_ROOT, "system/etc/ppp/*" },
{ 00555, AID_ROOT, AID_ROOT, "system/etc/rc.*" },
{ 00644, AID_SYSTEM, AID_SYSTEM, "data/app/*" },
+ { 00644, AID_MEDIA_RW, AID_MEDIA_RW, "data/media/*" },
{ 00644, AID_SYSTEM, AID_SYSTEM, "data/app-private/*" },
{ 00644, AID_APP, AID_APP, "data/data/*" },
/* the following two files are INTENTIONALLY set-gid and not set-uid.