be2e2f2beb
As a result of commit f8a00cef17206ecd1b30d3d9f99e10d9fa707aa7 ("proc: restrict kernel stack dumps to root") the userdebug feature where llkd can monitor for live lock signatures in the stack traces broke. So now userdebug variant of llkd requires sys_admin permissions. Signed-off-by: Mark Salyzyn <salyzyn@google.com> Test: llkd_unit_test Bug: 147486902 Change-Id: I31572afa08daa490a69783855bce55313eaed96c
19 lines
557 B
Text
19 lines
557 B
Text
on property:ro.debuggable=1
|
|
setprop llk.enable ${ro.llk.enable:-1}
|
|
setprop khungtask.enable ${ro.khungtask.enable:-1}
|
|
|
|
on property:ro.llk.enable=eng
|
|
setprop llk.enable ${ro.debuggable:-0}
|
|
|
|
on property:ro.khungtask.enable=eng
|
|
setprop khungtask.enable ${ro.debuggable:-0}
|
|
|
|
service llkd-1 /system/bin/llkd
|
|
class late_start
|
|
disabled
|
|
user llkd
|
|
group llkd readproc
|
|
capabilities KILL IPC_LOCK SYS_PTRACE DAC_OVERRIDE SYS_ADMIN
|
|
file /dev/kmsg w
|
|
file /proc/sysrq-trigger w
|
|
writepid /dev/cpuset/system-background/tasks
|