diff --git a/private/compat/26.0/26.0.ignore.cil b/private/compat/26.0/26.0.ignore.cil index 12f8d7bf6..8b9415ab3 100644 --- a/private/compat/26.0/26.0.ignore.cil +++ b/private/compat/26.0/26.0.ignore.cil @@ -137,6 +137,9 @@ vold_prepare_subdirs vold_prepare_subdirs_exec vold_service + wait_for_keymaster + wait_for_keymaster_exec + wait_for_keymaster_tmpfs wpantund wpantund_exec wpantund_service diff --git a/private/compat/27.0/27.0.ignore.cil b/private/compat/27.0/27.0.ignore.cil index 7d6476aff..86aa89088 100644 --- a/private/compat/27.0/27.0.ignore.cil +++ b/private/compat/27.0/27.0.ignore.cil @@ -113,6 +113,9 @@ vold_prepare_subdirs vold_prepare_subdirs_exec vold_service + wait_for_keymaster + wait_for_keymaster_exec + wait_for_keymaster_tmpfs wm_trace_data_file wpantund wpantund_exec diff --git a/private/file_contexts b/private/file_contexts index 348878714..393993aa8 100644 --- a/private/file_contexts +++ b/private/file_contexts @@ -294,6 +294,7 @@ /system/bin/stats u:object_r:stats_exec:s0 /system/bin/statsd u:object_r:statsd_exec:s0 /system/bin/bpfloader u:object_r:bpfloader_exec:s0 +/system/bin/wait_for_keymaster u:object_r:wait_for_keymaster_exec:s0 ############################# # Vendor files diff --git a/private/wait_for_keymaster.te b/private/wait_for_keymaster.te new file mode 100644 index 000000000..8b8dd2927 --- /dev/null +++ b/private/wait_for_keymaster.te @@ -0,0 +1,9 @@ +# wait_for_keymaster service +type wait_for_keymaster, domain, coredomain; +type wait_for_keymaster_exec, exec_type, file_type; + +init_daemon_domain(wait_for_keymaster) + +hal_client_domain(wait_for_keymaster, hal_keymaster) + +allow wait_for_keymaster kmsg_device:chr_file w_file_perms;