Skip to content
Snippets Groups Projects
Commit 09386d41 authored by Tom Cherry's avatar Tom Cherry Committed by android-build-merger
Browse files

Move watchdogd out of init and into its own domain

am: d840374e

Change-Id: I93264ded0479ab0e101d0449c2ff52b9a92e3d6e
parents 930614c7 d840374e
No related branches found
No related tags found
No related merge requests found
...@@ -280,7 +280,7 @@ ...@@ -280,7 +280,7 @@
(typeattributeset incident_data_file_26_0 (incident_data_file)) (typeattributeset incident_data_file_26_0 (incident_data_file))
(typeattributeset incident_service_26_0 (incident_service)) (typeattributeset incident_service_26_0 (incident_service))
(typeattributeset init_26_0 (init)) (typeattributeset init_26_0 (init))
(typeattributeset init_exec_26_0 (init_exec)) (typeattributeset init_exec_26_0 (init_exec watchdogd_exec))
(typeattributeset inotify_26_0 (inotify)) (typeattributeset inotify_26_0 (inotify))
(typeattributeset input_device_26_0 (input_device)) (typeattributeset input_device_26_0 (input_device))
(typeattributeset inputflinger_26_0 (inputflinger)) (typeattributeset inputflinger_26_0 (inputflinger))
......
...@@ -153,6 +153,7 @@ ...@@ -153,6 +153,7 @@
wait_for_keymaster wait_for_keymaster
wait_for_keymaster_exec wait_for_keymaster_exec
wait_for_keymaster_tmpfs wait_for_keymaster_tmpfs
watchdogd_tmpfs
wpantund wpantund
wpantund_exec wpantund_exec
wpantund_service wpantund_service
......
...@@ -993,7 +993,7 @@ ...@@ -993,7 +993,7 @@
(typeattributeset incident_data_file_27_0 (incident_data_file)) (typeattributeset incident_data_file_27_0 (incident_data_file))
(typeattributeset incident_service_27_0 (incident_service)) (typeattributeset incident_service_27_0 (incident_service))
(typeattributeset init_27_0 (init)) (typeattributeset init_27_0 (init))
(typeattributeset init_exec_27_0 (init_exec)) (typeattributeset init_exec_27_0 (init_exec watchdogd_exec))
(typeattributeset inotify_27_0 (inotify)) (typeattributeset inotify_27_0 (inotify))
(typeattributeset input_device_27_0 (input_device)) (typeattributeset input_device_27_0 (input_device))
(typeattributeset inputflinger_27_0 (inputflinger)) (typeattributeset inputflinger_27_0 (inputflinger))
......
...@@ -131,6 +131,7 @@ ...@@ -131,6 +131,7 @@
wait_for_keymaster wait_for_keymaster
wait_for_keymaster_exec wait_for_keymaster_exec
wait_for_keymaster_tmpfs wait_for_keymaster_tmpfs
watchdogd_tmpfs
wm_trace_data_file wm_trace_data_file
wpantund wpantund
wpantund_exec wpantund_exec
......
...@@ -1177,7 +1177,7 @@ ...@@ -1177,7 +1177,7 @@
(typeattributeset incident_helper_28_0 (incident_helper)) (typeattributeset incident_helper_28_0 (incident_helper))
(typeattributeset incident_service_28_0 (incident_service)) (typeattributeset incident_service_28_0 (incident_service))
(typeattributeset init_28_0 (init)) (typeattributeset init_28_0 (init))
(typeattributeset init_exec_28_0 (init_exec)) (typeattributeset init_exec_28_0 (init_exec watchdogd_exec))
(typeattributeset inotify_28_0 (inotify)) (typeattributeset inotify_28_0 (inotify))
(typeattributeset input_device_28_0 (input_device)) (typeattributeset input_device_28_0 (input_device))
(typeattributeset inputflinger_28_0 (inputflinger)) (typeattributeset inputflinger_28_0 (inputflinger))
......
...@@ -13,4 +13,5 @@ ...@@ -13,4 +13,5 @@
timedetector_service timedetector_service
timezonedetector_service timezonedetector_service
uri_grants_service uri_grants_service
vrflinger_vsync_service)) vrflinger_vsync_service
watchdogd_tmpfs))
...@@ -294,6 +294,7 @@ ...@@ -294,6 +294,7 @@
/system/bin/statsd u:object_r:statsd_exec:s0 /system/bin/statsd u:object_r:statsd_exec:s0
/system/bin/bpfloader u:object_r:bpfloader_exec:s0 /system/bin/bpfloader u:object_r:bpfloader_exec:s0
/system/bin/wait_for_keymaster u:object_r:wait_for_keymaster_exec:s0 /system/bin/wait_for_keymaster u:object_r:wait_for_keymaster_exec:s0
/system/bin/watchdogd u:object_r:watchdogd_exec:s0
############################# #############################
# Vendor files # Vendor files
......
...@@ -13,7 +13,6 @@ recovery_only(` ...@@ -13,7 +13,6 @@ recovery_only(`
') ')
domain_trans(init, shell_exec, shell) domain_trans(init, shell_exec, shell)
domain_trans(init, init_exec, ueventd) domain_trans(init, init_exec, ueventd)
domain_trans(init, init_exec, watchdogd)
domain_trans(init, init_exec, vendor_init) domain_trans(init, init_exec, vendor_init)
domain_trans(init, { rootfs toolbox_exec }, modprobe) domain_trans(init, { rootfs toolbox_exec }, modprobe)
# case where logpersistd is actually logcat -f in logd context (nee: logcatd) # case where logpersistd is actually logcat -f in logd context (nee: logcatd)
......
typeattribute watchdogd coredomain; typeattribute watchdogd coredomain;
init_daemon_domain(watchdogd)
# watchdogd seclabel is specified in init.<board>.rc # watchdogd seclabel is specified in init.<board>.rc
type watchdogd, domain; type watchdogd, domain;
type watchdogd_exec, exec_type, file_type;
allow watchdogd watchdog_device:chr_file rw_file_perms; allow watchdogd watchdog_device:chr_file rw_file_perms;
allow watchdogd kmsg_device:chr_file rw_file_perms; allow watchdogd kmsg_device:chr_file rw_file_perms;
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