From 6cd8c9be571289188dc4d4071dc968fa60218791 Mon Sep 17 00:00:00 2001
From: Wei Wang <wvw@google.com>
Date: Fri, 3 Mar 2017 16:25:43 -0800
Subject: [PATCH] init.te: grant sysfs_type debugfs_type

Fix restorecon failue on second call

Bug: 35803475
Test: angler boot with UART on and set sys.wifitracing.started to 0 after boot
Change-Id: Ia5496fcba031616297fa0a4c0f45e3ece0b4d662
---
 public/init.te | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/public/init.te b/public/init.te
index dda65cd16..9ec9ff3cc 100644
--- a/public/init.te
+++ b/public/init.te
@@ -181,7 +181,7 @@ allow init {
 allow init cache_file:lnk_file r_file_perms;
 
 allow init { file_type -system_file -exec_type }:dir_file_class_set relabelto;
-allow init { sysfs debugfs debugfs_tracing }:{ dir file lnk_file } { getattr relabelfrom };
+allow init { sysfs_type debugfs_type}:{ dir file lnk_file } { getattr relabelfrom };
 allow init { sysfs_type debugfs_type }:{ dir file lnk_file } relabelto;
 allow init dev_type:dir create_dir_perms;
 allow init dev_type:lnk_file create;
-- 
GitLab