From 7ab805ea1d78c0190c42b4aea553f77cf965f88f Mon Sep 17 00:00:00 2001 From: Mark Salyzyn Date: Fri, 29 Jun 2018 10:32:11 -0700 Subject: [PATCH] rootdir: access to pstore denied to bootstat Test: boot_reason_test.sh Bug: 110925971 Change-Id: Iba7b7325fe8c9ad18a7f8dbda550d6008400693e --- rootdir/init.rc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rootdir/init.rc b/rootdir/init.rc index 197047d9c..625ffba08 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -227,6 +227,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