summaryrefslogtreecommitdiffstats
path: root/init.herring.rc
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2012-04-09 17:23:35 -0700
committerJeff Sharkey <jsharkey@android.com>2012-04-10 10:58:43 -0700
commitf8f5a1983e4fbf49ab8b57509987a19ed38aa69e (patch)
tree565e93f164b8f85f01ec6f63284444f9d406c22f /init.herring.rc
parenteda76f24d90dba04610857bcc6511686112aa899 (diff)
downloaddevice_samsung_crespo-f8f5a1983e4fbf49ab8b57509987a19ed38aa69e.zip
device_samsung_crespo-f8f5a1983e4fbf49ab8b57509987a19ed38aa69e.tar.gz
device_samsung_crespo-f8f5a1983e4fbf49ab8b57509987a19ed38aa69e.tar.bz2
Organize external storage to enforce sdcard_r.
Create /storage/ to require that users have sdcard_r GID, and place both emulated and real SD card mount points inside it. Also reduce visibility of /data/media. Bug: 6131916 Change-Id: I088218e7df131dc206356f33174abc0702d9b271
Diffstat (limited to 'init.herring.rc')
-rwxr-xr-xinit.herring.rc8
1 files changed, 5 insertions, 3 deletions
diff --git a/init.herring.rc b/init.herring.rc
index 40d7b3a..13a6b2e 100755
--- a/init.herring.rc
+++ b/init.herring.rc
@@ -40,9 +40,11 @@ on fs
mount ext4 /dev/block/platform/s3c-sdhci.0/by-name/system /system wait ro
mount ext4 /dev/block/platform/s3c-sdhci.0/by-name/userdata /data wait noatime nosuid nodev nomblk_io_submit
- export EXTERNAL_STORAGE /mnt/sdcard
- mkdir /mnt/sdcard 0000 system system
- symlink /mnt/sdcard /sdcard
+ export EXTERNAL_STORAGE /storage/sdcard0
+ mkdir /storage 0550 system sdcard_r
+ mkdir /storage/sdcard0 0000 system system
+ symlink /storage/sdcard0 /sdcard
+ symlink /storage/sdcard0 /mnt/sdcard
# permissions for bluetooth.
chown bluetooth bluetooth /efs/bluetooth