From d48c4cf23469281eb159b635dd5a5b761ec490b3 Mon Sep 17 00:00:00 2001 From: Joel Galenson Date: Tue, 13 Jun 2017 10:15:05 -0700 Subject: [PATCH] Move chmod of /sys/kernel/debug/tracing to fix tracing. This is a temporary fix, since we're still not sure exactly what the bug is. Bug: 62547086 Test: Built, flashed, and booted Sailfish. Verified that the file has the correct permission and that wifi and atrace work. Change-Id: I43275e974a11754eca274f1b77d15cdd03a3b365 (cherry picked from commit 62962dd5b7a37478da2bad786e084345d366f984) --- rootdir/init.rc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rootdir/init.rc b/rootdir/init.rc index c7302eb3a..7644d28d7 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -314,7 +314,6 @@ on post-fs # Make sure /sys/kernel/debug (if present) is labeled properly # Note that tracefs may be mounted under debug, so we need to cross filesystems restorecon --recursive --cross-filesystems /sys/kernel/debug - chmod 0755 /sys/kernel/debug/tracing # We chown/chmod /cache again so because mount is run as root + defaults chown system cache /cache @@ -352,6 +351,10 @@ on post-fs mkdir /cache/lost+found 0770 root root on late-fs + # Ensure that tracefs has the correct permissions. + # This does not work correctly if it is called in post-fs. + chmod 0755 /sys/kernel/debug/tracing + # HALs required before storage encryption can get unlocked (FBE/FDE) class_start early_hal