Allow debugfs access and setsched for mediaserver.
diff --git a/domain.te b/domain.te
index 9a59c49..6be7ddd 100644
--- a/domain.te
+++ b/domain.te
@@ -96,5 +96,12 @@
 r_dir_file(domain, inotify)
 r_dir_file(domain, cgroup)
 
-# Ignore /sys/kernel/debug
-dontaudit domain debugfs:dir search;
+# debugfs access
+bool debugfs true;
+if (debugfs) {
+allow domain debugfs:dir r_dir_perms;
+allow domain debugfs:file rw_file_perms;
+} else {
+dontaudit domain debugfs:dir r_dir_perms;
+dontaudit domain debugfs:file  rw_file_perms;
+}
diff --git a/system.te b/system.te
index c6fd8bd..0740285 100644
--- a/system.te
+++ b/system.te
@@ -83,6 +83,7 @@
 
 # Set scheduling info for apps.
 allow system appdomain:process setsched;
+allow system mediaserver:process setsched;
 
 # Read /proc data for apps.
 allow system appdomain:dir r_dir_perms;