Allow lmkd to renice process before killing

Bug: 118468011
Test: mem-pressure test
Change-Id: Icf387a02243af60a3bfffba912711f037669fa7f
This commit is contained in:
Wei Wang 2018-11-21 07:50:33 -08:00
parent edbe51215e
commit abeaa3bc92

View file

@ -21,8 +21,8 @@ allow lmkd system_server:file write;
r_dir_file(lmkd, sysfs_lowmemorykiller)
allow lmkd sysfs_lowmemorykiller:file w_file_perms;
# Send kill signals
allow lmkd appdomain:process sigkill;
# setsched and send kill signals
allow lmkd appdomain:process { setsched sigkill };
# Clean up old cgroups
allow lmkd cgroup:dir { remove_name rmdir };