## SSL Tunneling Proxy.
########################################
##
## Define the specified domain as a stunnel inetd service.
##
##
##
## The type associated with the stunnel inetd service process.
##
##
##
##
## The type associated with the process program.
##
##
#
interface(`stunnel_service_domain',`
gen_require(`
type stunnel_t;
')
domtrans_pattern(stunnel_t, $2, $1)
allow $1 stunnel_t:tcp_socket rw_socket_perms;
')
########################################
##
## Read stunnel configuration content.
##
##
##
## Domain allowed access.
##
##
#
interface(`stunnel_read_config',`
gen_require(`
type stunnel_etc_t;
')
files_search_etc($1)
allow $1 stunnel_etc_t:dir list_dir_perms;
allow $1 stunnel_etc_t:file read_file_perms;
allow $1 stunnel_etc_t:lnk_file read_lnk_file_perms;
')