aboutsummaryrefslogtreecommitdiffstats
path: root/rootdir
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@android.com>2009-09-08 20:21:04 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2009-09-08 20:21:04 -0700
commitaae43f9e7582a403b8c4f20d59e26c36bbde5219 (patch)
tree7effb347dee8f1f9b2aec9881252b11c8421879d /rootdir
parentef41d2381ddf5cf6a1ad2cfd531cac8b943d20fc (diff)
parent9332482ed2945174d94615f0720f88702cb92667 (diff)
downloadsystem_core-aae43f9e7582a403b8c4f20d59e26c36bbde5219.tar.gz
system_core-aae43f9e7582a403b8c4f20d59e26c36bbde5219.tar.bz2
system_core-aae43f9e7582a403b8c4f20d59e26c36bbde5219.zip
am 9332482e: init.rc: Make /data/dontpanic files readable only by the system process.
Merge commit '9332482ed2945174d94615f0720f88702cb92667' into eclair-plus-aosp * commit '9332482ed2945174d94615f0720f88702cb92667': init.rc: Make /data/dontpanic files readable only by the system process.
Diffstat (limited to 'rootdir')
-rw-r--r--rootdir/init.rc13
1 files changed, 5 insertions, 8 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc
index 568fefe5..24911b3f 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -70,27 +70,24 @@ loglevel 3
# storing dumps on platforms which do not have a dedicated dump partition.
mkdir /data/dontpanic
- # STOPSHIP!
- chmod 0777 /data/dontpanic
+ chown root system /data/dontpanic
+ chmod 0750 /data/dontpanic
# Collect apanic data, free resources and re-arm trigger
copy /proc/apanic_console /data/dontpanic/apanic_console
chown root system /data/dontpanic/apanic_console
- # STOPSHIP!
- chmod 0664 /data/dontpanic/apanic_console
+ chmod 0640 /data/dontpanic/apanic_console
copy /proc/apanic_threads /data/dontpanic/apanic_threads
chown root system /data/dontpanic/apanic_threads
- # STOPSHIP!
- chmod 0664 /data/dontpanic/apanic_threads
+ chmod 0640 /data/dontpanic/apanic_threads
write /proc/apanic_console 1
# Collect ramconsole data
copy /proc/last_kmsg /data/dontpanic/last_kmsg
chown root system /data/dontpanic/last_kmsg
- # STOPSHIP!
- chmod 0664 /data/dontpanic/last_kmsg
+ chmod 0640 /data/dontpanic/last_kmsg
# Same reason as /data above
mount yaffs2 mtd@cache /cache nosuid nodev