summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Tate2010-06-01 19:46:09 -0500
committerChristopher Tate2010-06-01 19:48:30 -0500
commit230cb33fd1ab335c6f808c72db891993b00110a0 (patch)
treeafbc33d6cdb196d66444263c7761ff8566323c18
parent86b121523d7d3634bf5ac07b6e238b36b3e75f0a (diff)
downloadplatform-system-core-230cb33fd1ab335c6f808c72db891993b00110a0.tar.gz
platform-system-core-230cb33fd1ab335c6f808c72db891993b00110a0.tar.xz
platform-system-core-230cb33fd1ab335c6f808c72db891993b00110a0.zip
Make /proc/kmsg and /proc/sysrq-trigger system-process-readableandroid-2.2_r1.2android-2.2_r1.1android-2.2_r1
This is so that the system process can capture kernel thread stacks when the watchdog detects a deadlock. Previously, /proc/kmsg was root/root and mode 0400, and /proc/sysrq-trigger was root/root and mode 0200. With this change, /proc/kmsg becomes root/system and 0440, and /proc/sysrq-trigger becomes root/system and 0220. Change-Id: Iac46bd10bd11d495024afeb5d693107ce5074791
-rw-r--r--rootdir/init.rc6
1 files changed, 6 insertions, 0 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc
index 63769f5a7..1e446f7ea 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -122,6 +122,12 @@ loglevel 3
122 chown root log /proc/vmallocinfo 122 chown root log /proc/vmallocinfo
123 chmod 0440 /proc/vmallocinfo 123 chmod 0440 /proc/vmallocinfo
124 124
125 #change permissions on kmsg & sysrq-trigger so bugreports can grab kthread stacks
126 chown root system /proc/kmsg
127 chmod 0440 /proc/kmsg
128 chown root system /proc/sysrq-trigger
129 chmod 0220 /proc/sysrq-trigger
130
125# create basic filesystem structure 131# create basic filesystem structure
126 mkdir /data/misc 01771 system misc 132 mkdir /data/misc 01771 system misc
127 mkdir /data/misc/bluetoothd 0770 bluetooth bluetooth 133 mkdir /data/misc/bluetoothd 0770 bluetooth bluetooth