summaryrefslogtreecommitdiffstats
path: root/rootdir
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2018-06-29 15:20:57 -0700
committerandroid-build-merger <android-build-merger@google.com>2018-06-29 15:20:57 -0700
commitfbe32e723b2c7b863d1ce33c002da02502db1e30 (patch)
tree11bff8124dcacbf3e0ddf1466709329dcc2da105 /rootdir
parent814299c5a331d3abcb5ae3840d2ed0d81c44cb2c (diff)
parent8b80960417edc4ede3f78349b60fc6bdd831efd2 (diff)
downloadsystem_core-fbe32e723b2c7b863d1ce33c002da02502db1e30.tar.gz
system_core-fbe32e723b2c7b863d1ce33c002da02502db1e30.tar.bz2
system_core-fbe32e723b2c7b863d1ce33c002da02502db1e30.zip
Merge "rootdir: access to pstore denied to bootstat"
am: 8b80960417 Change-Id: I02884961f2b782e57a9dcac028c2bd6ae7b33f48
Diffstat (limited to 'rootdir')
-rw-r--r--rootdir/init.rc2
1 files changed, 2 insertions, 0 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc
index f21490ff6..418478d36 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -236,6 +236,8 @@ on init
# pstore/ramoops previous console log
mount pstore pstore /sys/fs/pstore nodev noexec nosuid
+ chown system log /sys/fs/pstore
+ chmod 0550 /sys/fs/pstore
chown system log /sys/fs/pstore/console-ramoops
chmod 0440 /sys/fs/pstore/console-ramoops
chown system log /sys/fs/pstore/console-ramoops-0