author | shuide.chen <shuide.chen@amlogic.com> | 2020-03-04 10:07:26 (GMT) |
---|---|---|
committer | Shuide Chen <shuide.chen@amlogic.com> | 2020-03-05 02:16:11 (GMT) |
commit | a26358a940299ee634b8a74a19c81c4d102b235c (patch) | |
tree | 9e4c7d8275a3e0914a149704583510a55222367f | |
parent | b5f319b9e1dfc1dd36361a3ed50742a0f3d04364 (diff) | |
download | common-a26358a940299ee634b8a74a19c81c4d102b235c.zip common-a26358a940299ee634b8a74a19c81c4d102b235c.tar.gz common-a26358a940299ee634b8a74a19c81c4d102b235c.tar.bz2 |
sepolicy: let vendor_int tune kernel configs
PD#GH-221
BUG=150373800
BUG=150658242
Problem:
we need tune some kernel configs. such as min_free_kbytes,
the default value is about 5M, some time it cause allocate 1
page and block the system for seconds.
Solution:
let vendor_init can tune the configs.
Verify:
locally
Signed-off-by: shuide.chen <shuide.chen@amlogic.com>
Change-Id: I4941e40284b746d5494b208fe79708fdd699f2c1
-rw-r--r-- | sepolicy/vendor_init.te | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sepolicy/vendor_init.te b/sepolicy/vendor_init.te index 7331756..250f071 100644 --- a/sepolicy/vendor_init.te +++ b/sepolicy/vendor_init.te @@ -19,6 +19,8 @@ allow vendor_init self:capability sys_module; allow vendor_init proc:file write; allow vendor_init unlabeled:dir search; +allow vendor_init proc_vm_writable:file rw_file_perms; + allow vendor_init ffs_prop:property_service set; # optee allow vendor_init drm_device:chr_file setattr; |