Skip to content

Commit

Permalink
rootdir: init.rc: Allow all processes access to apanic/ramconsole cra…
Browse files Browse the repository at this point in the history
…sh data.

    This is a temporary measure until bugreports are taken as root.

*****STOPSHIP*****
Signed-off-by: San Mehat <[email protected]>
  • Loading branch information
San Mehat committed Sep 1, 2009
1 parent f26d6ce commit 020f35f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions rootdir/init.rc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 020f35f

Please sign in to comment.