sepolicy: Allow vendor_init to write dirty_writeback_centisecs & sched_stune_task_threshold

Change-Id: I99f9625b1c9fe607401cd10189d86877cf51c424
diff --git a/basic/non_plat/genfs_contexts b/basic/non_plat/genfs_contexts
index 6721228..6245fd2 100644
--- a/basic/non_plat/genfs_contexts
+++ b/basic/non_plat/genfs_contexts
@@ -44,6 +44,8 @@
 genfscon proc /mtk_cmdq_debug/record         u:object_r:proc_cmdq_debug:s0
 genfscon proc /cpuhvfs/dbg_repo              u:object_r:proc_dbg_repo:s0
 genfscon proc /sys/kernel/panic_on_rcu_stall u:object_r:proc_panic_on_rcu_stall:s0
+genfscon proc /sys/kernel/sched_stune_task_threshold  u:object_r:proc_sched:s0
+genfscon proc /sys/vm/dirty_writeback_centisecs u:object_r:proc_dirty:s0
 
 # Purpose dump not exit file
 genfscon proc /isp_p2/isp_p2_dump     u:object_r:proc_isp_p2_dump:s0
diff --git a/basic/non_plat/vendor_init.te b/basic/non_plat/vendor_init.te
index 944299b..fca5cd9 100644
--- a/basic/non_plat/vendor_init.te
+++ b/basic/non_plat/vendor_init.te
@@ -162,3 +162,6 @@
 # Purpose: for non-5G GKI platform
 set_prop(vendor_init, vendor_mtk_mdrsra_v2_support_prop)
 set_prop(vendor_init, vendor_mtk_xfrm_support_prop)
+
+allow vendor_init proc_sched:file rw_file_perms;
+allow vendor_init proc_dirty:file rw_file_perms;