## OpenSLP server daemon to dynamically register services.
########################################
##
## Transition to slpd.
##
##
##
## Domain allowed to transition.
##
##
#
interface(`slpd_domtrans',`
gen_require(`
type slpd_t, slpd_exec_t;
')
corecmd_search_bin($1)
domtrans_pattern($1, slpd_exec_t, slpd_t)
')
########################################
##
## Execute slpd server in the slpd domain.
##
##
##
## Domain allowed access.
##
##
#
interface(`slpd_initrc_domtrans',`
gen_require(`
type slpd_initrc_exec_t;
')
init_labeled_script_domtrans($1, slpd_initrc_exec_t)
')
########################################
##
## All of the rules required to administrate
## an slpd environment
##
##
##
## Domain allowed access.
##
##
##
##
## Role allowed access.
##
##
##
#
interface(`slpd_admin',`
gen_require(`
type slpd_t;
type slpd_initrc_exec_t;
')
allow $1 slpd_t:process { ptrace signal_perms };
ps_process_pattern($1, slpd_t)
slpd_initrc_domtrans($1)
domain_system_change_exemption($1)
role_transition $2 slpd_initrc_exec_t system_r;
allow $2 system_r;
')