## Process supervisor written in python.
########################################
##
## Create a domain which can be
## started by supervisord.
##
##
##
## Type to be used as a domain.
##
##
##
##
## Type of the program to be used as an entry point to this domain.
##
##
#
interface(`supervisor_service_domain',`
gen_require(`
type supervisor_t;
')
domain_auto_trans(supervisor_t, $2, $1)
allow $1 supervisor_t:fd use;
allow $1 supervisor_t:fifo_file { read write ioctl getattr };
allow $1 supervisor_t:process sigchld;
allow supervisor_t $1:process { signal siginh rlimitinh noatsecure };
')