## Pyzor is a distributed, collaborative spam detection and filtering network.
########################################
##
## Execute pyzor with a domain transition.
##
##
##
## Domain allowed access.
##
##
#
interface(`pyzor_domtrans',`
gen_require(`
type pyzor_exec_t, pyzor_t;
')
files_search_usr($1)
corecmd_search_bin($1)
domain_auto_trans($1,pyzor_exec_t,pyzor_t)
allow $1 pyzor_t:fd use;
allow pyzor_t $1:fd use;
allow pyzor_t $1:fifo_file rw_file_perms;
allow pyzor_t $1:process sigchld;
')
########################################
##
## Execute pyzor in the caller domain.
##
##
##
## Domain allowed access.
##
##
#
interface(`pyzor_exec',`
gen_require(`
type pyzor_exec_t;
')
files_search_usr($1)
corecmd_search_bin($1)
can_exec($1,pyzor_exec_t)
')