From 5ff203223c9484f244c2e537655d2bbe56aa20d4 Mon Sep 17 00:00:00 2001 From: Patrick Tjin Date: Mon, 31 Jul 2017 15:07:21 -0700 Subject: [PATCH] Change owner and permissions on pstore entries Bug: 37554629 Bug: 37553996 Test: Walleye/Taimen able to post to dropbox Change-Id: Ifdefd1164a42b79dcee691f21d96bda2c9628950 --- init.hardware.rc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/init.hardware.rc b/init.hardware.rc index 07049888..9b2eed10 100644 --- a/init.hardware.rc +++ b/init.hardware.rc @@ -233,6 +233,12 @@ on property:sys.user.0.ce_available=true on property:sys.ramoops.decrypted=true mount pstore pstore /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 + chmod 0440 /sys/fs/pstore/console-ramoops-0 + chown system log /sys/fs/pstore/pmsg-ramoops-0 + chmod 0440 /sys/fs/pstore/pmsg-ramoops-0 on property:sys.listeners.registered=true # load IPA FWs