Skip to content
Snippets Groups Projects
Commit 1c73a5cd authored by Nick Kralevich's avatar Nick Kralevich
Browse files

lmkd: add sys_resource

Addresses the following denial / error:

E/lowmemorykiller(  187): Error writing /proc/1148/oom_adj; errno=13

[  118.264668] type=1400 audit(947231128.209:140): avc:  denied { sys_resource } for  pid=187 comm="lmkd" capability=24 scontext=u:r:lmkd:s0 tcontext=u:r:lmkd:s0 tclass=capability

Change-Id: Ief2a7ead9cdd8a33e3add111ee99f7a29c12a3f2
parent 5fa2a19f
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,7 @@ type lmkd_exec, exec_type, file_type; ...@@ -4,7 +4,7 @@ type lmkd_exec, exec_type, file_type;
init_daemon_domain(lmkd) init_daemon_domain(lmkd)
allow lmkd self:capability dac_override; allow lmkd self:capability { dac_override sys_resource };
## Open and write to /proc/PID/oom_score_adj ## Open and write to /proc/PID/oom_score_adj
## TODO: maybe scope this down? ## TODO: maybe scope this down?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment