init: Move init_spec_daemon_domain implementation.
This commit is contained in:
parent
bc94acf133
commit
469766dde6
@ -136,6 +136,44 @@ interface(`init_domain',`
|
||||
')
|
||||
')
|
||||
|
||||
########################################
|
||||
## <summary>
|
||||
## Create a domain which can be started by init,
|
||||
## with a range transition.
|
||||
## </summary>
|
||||
## <param name="domain">
|
||||
## <summary>
|
||||
## Type to be used as a domain.
|
||||
## </summary>
|
||||
## </param>
|
||||
## <param name="entry_point">
|
||||
## <summary>
|
||||
## Type of the program to be used as an entry point to this domain.
|
||||
## </summary>
|
||||
## </param>
|
||||
## <param name="range">
|
||||
## <summary>
|
||||
## Range for the domain.
|
||||
## </summary>
|
||||
## </param>
|
||||
#
|
||||
interface(`init_ranged_domain',`
|
||||
gen_require(`
|
||||
type init_t;
|
||||
')
|
||||
|
||||
init_domain($1, $2)
|
||||
|
||||
ifdef(`enable_mcs',`
|
||||
range_transition init_t $2:process $3;
|
||||
')
|
||||
|
||||
ifdef(`enable_mls',`
|
||||
range_transition init_t $2:process $3;
|
||||
mls_rangetrans_target($1)
|
||||
')
|
||||
')
|
||||
|
||||
########################################
|
||||
## <summary>
|
||||
## Setup a domain which can be manually transitioned to from init.
|
||||
@ -193,44 +231,6 @@ interface(`init_spec_daemon_domain',`
|
||||
')
|
||||
')
|
||||
|
||||
########################################
|
||||
## <summary>
|
||||
## Create a domain which can be started by init,
|
||||
## with a range transition.
|
||||
## </summary>
|
||||
## <param name="domain">
|
||||
## <summary>
|
||||
## Type to be used as a domain.
|
||||
## </summary>
|
||||
## </param>
|
||||
## <param name="entry_point">
|
||||
## <summary>
|
||||
## Type of the program to be used as an entry point to this domain.
|
||||
## </summary>
|
||||
## </param>
|
||||
## <param name="range">
|
||||
## <summary>
|
||||
## Range for the domain.
|
||||
## </summary>
|
||||
## </param>
|
||||
#
|
||||
interface(`init_ranged_domain',`
|
||||
gen_require(`
|
||||
type init_t;
|
||||
')
|
||||
|
||||
init_domain($1, $2)
|
||||
|
||||
ifdef(`enable_mcs',`
|
||||
range_transition init_t $2:process $3;
|
||||
')
|
||||
|
||||
ifdef(`enable_mls',`
|
||||
range_transition init_t $2:process $3;
|
||||
mls_rangetrans_target($1)
|
||||
')
|
||||
')
|
||||
|
||||
########################################
|
||||
## <summary>
|
||||
## Create a domain for long running processes
|
||||
|
Loading…
Reference in New Issue
Block a user