From 230cb33fd1ab335c6f808c72db891993b00110a0 Mon Sep 17 00:00:00 2001 From: Christopher Tate Date: Tue, 1 Jun 2010 17:46:09 -0700 Subject: [PATCH] Make /proc/kmsg and /proc/sysrq-trigger system-process-readable 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 --- rootdir/init.rc | 6 ++++++ 1 file changed, 6 insertions(+) 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 chown root log /proc/vmallocinfo chmod 0440 /proc/vmallocinfo + #change permissions on kmsg & sysrq-trigger so bugreports can grab kthread stacks + chown root system /proc/kmsg + chmod 0440 /proc/kmsg + chown root system /proc/sysrq-trigger + chmod 0220 /proc/sysrq-trigger + # create basic filesystem structure mkdir /data/misc 01771 system misc mkdir /data/misc/bluetoothd 0770 bluetooth bluetooth