diff options
author | Mike Lockwood <lockwood@android.com> | 2009-09-08 22:55:59 -0400 |
---|---|---|
committer | Mike Lockwood <lockwood@android.com> | 2009-09-08 22:55:59 -0400 |
commit | 9332482ed2945174d94615f0720f88702cb92667 (patch) | |
tree | 7a530b1e1e666c2ceafbdf967ab1c065bb426af1 /rootdir/init.rc | |
parent | c0b74902b85c538c9dac549aa5b213a3fb3edc57 (diff) | |
download | system_core-9332482ed2945174d94615f0720f88702cb92667.zip system_core-9332482ed2945174d94615f0720f88702cb92667.tar.gz system_core-9332482ed2945174d94615f0720f88702cb92667.tar.bz2 |
init.rc: Make /data/dontpanic files readable only by the system process.
Change-Id: If87470b7bcbb1c0774d10296ac82605db3dd9bf0
Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'rootdir/init.rc')
-rw-r--r-- | rootdir/init.rc | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc index 8365fd8..5d0c8b5 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 |