2006-05-03 19:58:01 +00:00
|
|
|
## <summary>Pyzor is a distributed, collaborative spam detection and filtering network.</summary>
|
|
|
|
|
2007-03-08 17:53:52 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Send generic signals to pyzor
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`pyzor_signal',`
|
|
|
|
gen_require(`
|
|
|
|
type pyzor_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 pyzor_t:process signal;
|
|
|
|
')
|
|
|
|
|
2006-05-03 19:58:01 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Execute pyzor with a domain transition.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`pyzor_domtrans',`
|
|
|
|
gen_require(`
|
|
|
|
type pyzor_exec_t, pyzor_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
files_search_usr($1)
|
|
|
|
corecmd_search_bin($1)
|
2006-12-12 20:08:08 +00:00
|
|
|
domtrans_pattern($1,pyzor_exec_t,pyzor_t)
|
2006-05-03 19:58:01 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Execute pyzor in the caller domain.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`pyzor_exec',`
|
|
|
|
gen_require(`
|
|
|
|
type pyzor_exec_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
files_search_usr($1)
|
|
|
|
corecmd_search_bin($1)
|
|
|
|
can_exec($1,pyzor_exec_t)
|
|
|
|
')
|
2006-05-17 14:50:31 +00:00
|
|
|
|
|
|
|
#######################################
|
|
|
|
## <summary>
|
2006-09-06 22:07:25 +00:00
|
|
|
## The per role template for the pyzor module.
|
2006-05-17 14:50:31 +00:00
|
|
|
## </summary>
|
|
|
|
## <desc>
|
|
|
|
## <p>
|
|
|
|
## This template allows pyzor to manage files in
|
|
|
|
## a user home directory, creating files with the
|
|
|
|
## correct type.
|
|
|
|
## </p>
|
|
|
|
## <p>
|
|
|
|
## This template is invoked automatically for each user, and
|
|
|
|
## generally does not need to be invoked directly
|
|
|
|
## by policy writers.
|
|
|
|
## </p>
|
|
|
|
## </desc>
|
|
|
|
## <param name="userdomain_prefix">
|
|
|
|
## <summary>
|
|
|
|
## The prefix of the user domain (e.g., user
|
|
|
|
## is the prefix for user_t).
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
2006-09-06 22:07:25 +00:00
|
|
|
template(`pyzor_per_role_template',`
|
2007-03-07 21:33:22 +00:00
|
|
|
gen_require(`
|
|
|
|
type pyzord_t;
|
|
|
|
')
|
|
|
|
|
2006-05-17 14:50:31 +00:00
|
|
|
type $1_pyzor_home_t;
|
|
|
|
userdom_user_home_content($1,$1_pyzor_home_t)
|
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
manage_dirs_pattern(pyzord_t,$1_pyzor_home_t,$1_pyzor_home_t)
|
|
|
|
manage_files_pattern(pyzord_t,$1_pyzor_home_t,$1_pyzor_home_t)
|
|
|
|
manage_lnk_files_pattern(pyzord_t,$1_pyzor_home_t,$1_pyzor_home_t)
|
2006-05-17 14:50:31 +00:00
|
|
|
userdom_search_user_home_dirs($1,pyzord_t)
|
|
|
|
userdom_user_home_dir_filetrans($1,pyzord_t,$1_pyzor_home_t,{ dir file lnk_file })
|
|
|
|
')
|