From 3d8ade3f247f34a6b47fef75dfacdad015b6ecc7 Mon Sep 17 00:00:00 2001 From: Paul Lawrence Date: Wed, 11 Jan 2017 15:45:53 -0800 Subject: [PATCH] Set right attributes on tracing folder Since splitting tracefs out from debugfs, we now need to set the attributes explicitly on tracing folder. Test: Run adb shell atrace -c -b 16000 -t 5 gfx Bug: 34197733 Change-Id: If2a962332b6d1ec227e289bdf952213756e26186 --- rootdir/init.rc | 1 + 1 file changed, 1 insertion(+) diff --git a/rootdir/init.rc b/rootdir/init.rc index c0a0fceda..791d67ffd 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -312,6 +312,7 @@ 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