From 13f4811f5e89cf82a1ae799a04754574fbd60a31 Mon Sep 17 00:00:00 2001 From: Martin Liu Date: Tue, 23 Apr 2024 08:37:45 +0000 Subject: [PATCH] Allow vendor init to access compaction_proactiveness Bug: 330670954 Test: boot Change-Id: Id274910e84d36cb662cea45d3b701c5fecada327 Merged-In: Id274910e84d36cb662cea45d3b701c5fecada327 Signed-off-by: Martin Liu --- private/vendor_init.te | 3 +++ 1 file changed, 3 insertions(+) diff --git a/private/vendor_init.te b/private/vendor_init.te index 4f52b5652..6944a4108 100644 --- a/private/vendor_init.te +++ b/private/vendor_init.te @@ -217,6 +217,9 @@ allow vendor_init self:global_capability_class_set net_admin; # Write to /proc/sys/vm/page-cluster allow vendor_init proc_page_cluster:file w_file_perms; +# Write to /proc/sys/vm/compaction_proactiveness +allow vendor_init proc_compaction_proactiveness:file w_file_perms; + # Write to sysfs nodes. allow vendor_init sysfs_type:dir r_dir_perms; allow vendor_init sysfs_type:lnk_file read;