Skip to content
Snippets Groups Projects
Commit a60f4103 authored by Mark Salyzyn's avatar Mark Salyzyn Committed by android-build-merger
Browse files

llkd: add live-lock daemon am: e4b3e0b6

am: 2ab61922

Change-Id: I3d441fd18d91680d8a5bf0732472c2f470076e02
parents 60d7b2ff 2ab61922
No related branches found
No related tags found
No related merge requests found
...@@ -63,6 +63,9 @@ ...@@ -63,6 +63,9 @@
incident_helper incident_helper
incident_helper_exec incident_helper_exec
kmsg_debug_device kmsg_debug_device
llkd
llkd_exec
llkd_tmpfs
last_boot_reason_prop last_boot_reason_prop
lowpan_device lowpan_device
lowpan_prop lowpan_prop
......
...@@ -54,6 +54,9 @@ ...@@ -54,6 +54,9 @@
incident_helper incident_helper
incident_helper_exec incident_helper_exec
last_boot_reason_prop last_boot_reason_prop
llkd
llkd_exec
llkd_tmpfs
lowpan_device lowpan_device
lowpan_prop lowpan_prop
lowpan_service lowpan_service
......
...@@ -247,6 +247,7 @@ ...@@ -247,6 +247,7 @@
/system/bin/dnsmasq u:object_r:dnsmasq_exec:s0 /system/bin/dnsmasq u:object_r:dnsmasq_exec:s0
/system/bin/healthd u:object_r:healthd_exec:s0 /system/bin/healthd u:object_r:healthd_exec:s0
/system/bin/clatd u:object_r:clatd_exec:s0 /system/bin/clatd u:object_r:clatd_exec:s0
/system/bin/llkd u:object_r:llkd_exec:s0
/system/bin/lmkd u:object_r:lmkd_exec:s0 /system/bin/lmkd u:object_r:lmkd_exec:s0
/system/bin/usbd u:object_r:usbd_exec:s0 /system/bin/usbd u:object_r:usbd_exec:s0
/system/bin/inputflinger u:object_r:inputflinger_exec:s0 /system/bin/inputflinger u:object_r:inputflinger_exec:s0
......
...@@ -38,7 +38,7 @@ genfscon proc /sys/kernel/domainname u:object_r:proc_hostname:s0 ...@@ -38,7 +38,7 @@ genfscon proc /sys/kernel/domainname u:object_r:proc_hostname:s0
genfscon proc /sys/kernel/dmesg_restrict u:object_r:proc_security:s0 genfscon proc /sys/kernel/dmesg_restrict u:object_r:proc_security:s0
genfscon proc /sys/kernel/hostname u:object_r:proc_hostname:s0 genfscon proc /sys/kernel/hostname u:object_r:proc_hostname:s0
genfscon proc /sys/kernel/hotplug u:object_r:usermodehelper:s0 genfscon proc /sys/kernel/hotplug u:object_r:usermodehelper:s0
genfscon proc /sys/kernel/hung_task_timeout_secs u:object_r:proc_hung_task:s0 genfscon proc /sys/kernel/hung_task_ u:object_r:proc_hung_task:s0
genfscon proc /sys/kernel/kptr_restrict u:object_r:proc_security:s0 genfscon proc /sys/kernel/kptr_restrict u:object_r:proc_security:s0
genfscon proc /sys/kernel/modprobe u:object_r:usermodehelper:s0 genfscon proc /sys/kernel/modprobe u:object_r:usermodehelper:s0
genfscon proc /sys/kernel/modules_disabled u:object_r:proc_security:s0 genfscon proc /sys/kernel/modules_disabled u:object_r:proc_security:s0
......
# llkd Live LocK Daemon
typeattribute llkd coredomain;
init_daemon_domain(llkd)
allow llkd self:global_capability_class_set kill;
# llkd optionally locks itself in memory, to prevent it from being
# swapped out and unable to discover a kernel in live-lock state.
allow llkd self:global_capability_class_set ipc_lock;
# Send kill signals to _anyone_ suffering from Live Lock
allow llkd domain:process sigkill;
# live lock watchdog process allowed to look through /proc/
allow llkd domain:dir r_dir_perms;
allow llkd domain:file r_file_perms;
allow llkd domain:lnk_file read;
# Set /proc/sys/kernel/hung_task_*
allow llkd proc_hung_task:file rw_file_perms;
# live lock watchdog process allowed to dump process trace and
# reboot because orderly shutdown may not be possible.
allow llkd proc_sysrq:file w_file_perms;
allow llkd kmsg_device:chr_file w_file_perms;
### neverallow rules
neverallow { domain -init } llkd:process { dyntransition transition };
# never honor LD_PRELOAD
neverallow * llkd:process noatsecure;
# llkd Live LocK Daemon
type llkd, domain, mlstrustedsubject;
type llkd_exec, exec_type, file_type;
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