summaryrefslogtreecommitdiffstats
path: root/rootdir
diff options
context:
space:
mode:
authorChristopher Tate <ctate@google.com>2010-06-02 11:20:39 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2010-06-02 11:20:39 -0700
commit25e7b8fcc3708b58736c7825ecf612d04020716e (patch)
treeefd66631a038064a46631260252e17d4483f8da5 /rootdir
parent5458065fbbf170ba9d2c216c512744625867fc17 (diff)
parentb1fb3bd13a4da8bc46a44ec5eef6de9cb952f163 (diff)
downloadsystem_core-25e7b8fcc3708b58736c7825ecf612d04020716e.zip
system_core-25e7b8fcc3708b58736c7825ecf612d04020716e.tar.gz
system_core-25e7b8fcc3708b58736c7825ecf612d04020716e.tar.bz2
am b1fb3bd1: am 230cb33f: Make /proc/kmsg and /proc/sysrq-trigger system-process-readable
Merge commit 'b1fb3bd13a4da8bc46a44ec5eef6de9cb952f163' into kraken * commit 'b1fb3bd13a4da8bc46a44ec5eef6de9cb952f163': Make /proc/kmsg and /proc/sysrq-trigger system-process-readable
Diffstat (limited to 'rootdir')
-rw-r--r--rootdir/init.rc6
1 files changed, 6 insertions, 0 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc
index 8d8955b..0d20dd4 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -126,6 +126,12 @@ on post-fs
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