diff options
| author | Nick Kralevich <nnk@google.com> | 2012-03-14 16:23:57 -0700 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-03-14 16:23:57 -0700 |
| commit | 820571f4c3f2b95145269d5aa8afe117713a7ce1 (patch) | |
| tree | ec70357ce01095c239b8bde2352f4fac817dd31f | |
| parent | 9d4dbf4835a073c6a6f970b4e9a87edd6bfb1f5b (diff) | |
| parent | f3ef1271f225d9f00bb4ebb0573eb3e03829f9a8 (diff) | |
| download | system_core-820571f4c3f2b95145269d5aa8afe117713a7ce1.tar.gz system_core-820571f4c3f2b95145269d5aa8afe117713a7ce1.tar.bz2 system_core-820571f4c3f2b95145269d5aa8afe117713a7ce1.zip | |
Merge "init.rc: Add documentation"
| -rw-r--r-- | rootdir/init.rc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc index 2e8f7d29..438ac830 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -1,3 +1,9 @@ +# Copyright (C) 2012 The Android Open Source Project +# +# IMPORTANT: Do not create world writable files or directories. +# This is a common source of Android security bugs. +# + import /init.${ro.hardware}.rc on early-init @@ -163,6 +169,9 @@ on post-fs-data mkdir /data/misc/wifi 0770 wifi wifi chmod 0660 /data/misc/wifi/wpa_supplicant.conf mkdir /data/local 0751 root root + + # For security reasons, /data/local/tmp should always be empty. + # Do not place files or directories in /data/local/tmp mkdir /data/local/tmp 0771 shell shell mkdir /data/data 0771 system system mkdir /data/app-private 0771 system system |
