aboutsummaryrefslogtreecommitdiffstats
path: root/rootdir
diff options
context:
space:
mode:
authorChung-yih Wang <cywang@google.com>2009-06-01 19:04:05 +0800
committerChung-yih Wang <cywang@google.com>2009-06-09 10:49:39 +0800
commit1f75d709c10f49d2e2390b888e766bcfd17da860 (patch)
treee7bb7cc6ab121661fcb9e0f21b6e55f6b6b7390c /rootdir
parent17df71e0b277372de1d915c168c07c8877e82395 (diff)
downloadsystem_core-1f75d709c10f49d2e2390b888e766bcfd17da860.tar.gz
system_core-1f75d709c10f49d2e2390b888e766bcfd17da860.tar.bz2
system_core-1f75d709c10f49d2e2390b888e766bcfd17da860.zip
Add VPN and Keystore services and data directories.
-- changed the default mode to 0770 for keystore with the new user 'keystore'. -- add the keystore service providing the basic key lookup/install/remove, but only keystore user can access the key content.
Diffstat (limited to 'rootdir')
-rw-r--r--rootdir/init.rc21
1 files changed, 20 insertions, 1 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc
index e16a3f0f..9d764d22 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -54,7 +54,7 @@ loglevel 3
# mount mtd partitions
# Mount /system rw first to give the filesystem a chance to save a checkpoint
- mount yaffs2 mtd@system /system
+ mount yaffs2 mtd@system /system
mount yaffs2 mtd@system /system ro remount
# We chown/chmod /data again so because mount is run as root + defaults
@@ -74,6 +74,9 @@ loglevel 3
# create basic filesystem structure
mkdir /data/misc 01771 system misc
mkdir /data/misc/hcid 0770 bluetooth bluetooth
+ mkdir /data/misc/keystore 0770 keystore keystore
+ mkdir /data/misc/vpn 0770 system system
+ mkdir /data/misc/vpn/profiles 0770 system system
mkdir /data/local 0771 shell shell
mkdir /data/local/tmp 0771 shell shell
mkdir /data/data 0771 system system
@@ -284,3 +287,19 @@ service installd /system/bin/installd
service flash_recovery /system/bin/flash_image recovery /system/recovery.img
oneshot
+
+service racoon /system/bin/racoon -F -f /etc/racoon/racoon.conf
+ socket racoon stream 600 system system
+ disabled
+ oneshot
+
+service mtpd /system/bin/mtpd
+ socket mtpd stream 600 system system
+ disabled
+ oneshot
+
+service keystore /system/bin/keystore
+ user keystore
+ group keystore
+ socket keystore stream 666
+