summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@android.com>2009-09-11 17:13:28 -0400
committerMike Lockwood <lockwood@android.com>2009-09-11 17:13:28 -0400
commit25f1a5aaffd1ef6e87d53d4fd3c14ea1b6c5b940 (patch)
treee7390a342ad31e77e7bcf20b36bf6f44530b1386
parent8880093fe386ab0dcefec9ce41f8ce6f4e068b0e (diff)
downloadsystem_core-25f1a5aaffd1ef6e87d53d4fd3c14ea1b6c5b940.zip
system_core-25f1a5aaffd1ef6e87d53d4fd3c14ea1b6c5b940.tar.gz
system_core-25f1a5aaffd1ef6e87d53d4fd3c14ea1b6c5b940.tar.bz2
init.rc: Adjust permissions on /data/dontpanic/ so dumpstate will not need root
Change-Id: Iff83310f9411c39e1833b3d710b029b12f702993 Signed-off-by: Mike Lockwood <lockwood@android.com>
-rw-r--r--rootdir/init.rc8
1 files changed, 4 insertions, 4 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc
index 5d0c8b5..d16d53c 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -70,23 +70,23 @@ loglevel 3
# storing dumps on platforms which do not have a dedicated dump partition.
mkdir /data/dontpanic
- chown root system /data/dontpanic
+ chown root log /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
+ chown root log /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
+ chown root log /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
+ chown root log /data/dontpanic/last_kmsg
chmod 0640 /data/dontpanic/last_kmsg
# Same reason as /data above