am 991e9189: am 020f35f2: rootdir: init.rc: Allow all processes access to apanic/ramconsole crash data.

Merge commit '991e9189a4897fd29bb7a5e4e2fb0b6e0d541e09'

* commit '991e9189a4897fd29bb7a5e4e2fb0b6e0d541e09':
  rootdir: init.rc: Allow all processes access to apanic/ramconsole crash data.
This commit is contained in:
San Mehat 2009-09-01 16:13:56 -07:00 committed by Android Git Automerger
commit a99f139935
1 changed files with 8 additions and 0 deletions

View File

@ -75,13 +75,21 @@ loglevel 3
# 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
copy /proc/apanic_threads /data/dontpanic/apanic_threads
chown root system /data/dontpanic/apanic_threads
# STOPSHIP!
chmod 0664 /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
# Same reason as /data above
mount yaffs2 mtd@cache /cache nosuid nodev