From 469766dde6e29e22ad032bfdeff0677b58516f83 Mon Sep 17 00:00:00 2001 From: Chris PeBenito Date: Tue, 12 Sep 2017 19:35:31 -0400 Subject: [PATCH] init: Move init_spec_daemon_domain implementation. --- policy/modules/system/init.if | 76 +++++++++++++++++------------------ 1 file changed, 38 insertions(+), 38 deletions(-) diff --git a/policy/modules/system/init.if b/policy/modules/system/init.if index 8fb96b421..59d9f1f0a 100644 --- a/policy/modules/system/init.if +++ b/policy/modules/system/init.if @@ -136,6 +136,44 @@ interface(`init_domain',` ') ') +######################################## +## +## Create a domain which can be started by init, +## with a range transition. +## +## +## +## Type to be used as a domain. +## +## +## +## +## Type of the program to be used as an entry point to this domain. +## +## +## +## +## Range for the domain. +## +## +# +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) + ') +') + ######################################## ## ## Setup a domain which can be manually transitioned to from init. @@ -193,44 +231,6 @@ interface(`init_spec_daemon_domain',` ') ') -######################################## -## -## Create a domain which can be started by init, -## with a range transition. -## -## -## -## Type to be used as a domain. -## -## -## -## -## Type of the program to be used as an entry point to this domain. -## -## -## -## -## Range for the domain. -## -## -# -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) - ') -') - ######################################## ## ## Create a domain for long running processes