init: make initrc_t a init_domain to simplify the policy

This also allows init_t initrc_t:process2 nnp_transition which can be
required if the service isn't targeted.

Signed-off-by: bauen1 <j2468h@gmail.com>
This commit is contained in:
bauen1 2020-05-17 16:15:41 +02:00
parent 51d76f956f
commit 5fb8157616
No known key found for this signature in database
GPG Key ID: FF0AAF5E0812BA9C
1 changed files with 1 additions and 3 deletions

View File

@ -79,10 +79,8 @@ mls_trusted_object(initctl_t)
type initrc_t, init_script_domain_type, init_run_all_scripts_domain;
type initrc_exec_t, init_script_file_type;
domain_type(initrc_t)
domain_entry_file(initrc_t, initrc_exec_t)
init_domain(initrc_t, initrc_exec_t)
init_named_socket_activation(initrc_t, init_runtime_t)
role system_r types initrc_t;
# should be part of the true block
# of the below init_upstart tunable
# but this has a typeattribute in it