Chris PeBenito 17de1b
## <summary>Unix to Unix Copy</summary>
Chris PeBenito d6d16b
Chris PeBenito d6d16b
########################################
Chris PeBenito d6d16b
## <summary>
Dan Walsh 4fccad
##	Execute the uucico program in the
Dan Walsh 4fccad
##	uucpd_t domain.
Dan Walsh 4fccad
## </summary>
Dan Walsh 4fccad
## <param name="domain">
Dan Walsh 4fccad
##	<summary>
Dan Walsh 4fccad
##	Domain allowed to transition.
Dan Walsh 4fccad
##	</summary>
Dan Walsh 4fccad
## </param>
Dan Walsh 4fccad
#
Dan Walsh 4fccad
interface(`uucp_domtrans',`
Dan Walsh 4fccad
	gen_require(`
Dan Walsh 4fccad
		type uucpd_t, uucpd_exec_t;
Dan Walsh 4fccad
	')
Dan Walsh 4fccad
Dan Walsh 4fccad
	domtrans_pattern($1, uucpd_exec_t, uucpd_t)
Dan Walsh 4fccad
')
Dan Walsh 4fccad
Dan Walsh 4fccad
########################################
Dan Walsh 4fccad
## <summary>
Chris PeBenito d6d16b
##	Allow the specified domain to append
Chris PeBenito d6d16b
##	to uucp log files.
Chris PeBenito d6d16b
## </summary>
Chris PeBenito d6d16b
## <param name="domain">
Chris PeBenito d6d16b
##	<summary>
Chris PeBenito d6d16b
##	Domain allowed access.
Chris PeBenito d6d16b
##	</summary>
Chris PeBenito d6d16b
## </param>
Chris PeBenito d6d16b
#
Chris PeBenito d6d16b
interface(`uucp_append_log',`
Chris PeBenito d6d16b
	gen_require(`
Chris PeBenito d6d16b
		type uucpd_log_t;
Chris PeBenito d6d16b
	')
Chris PeBenito d6d16b
Chris PeBenito d6d16b
	logging_search_logs($1)
Chris PeBenito c0868a
	allow $1 uucpd_log_t:dir list_dir_perms;
Chris PeBenito 0bfccd
	append_files_pattern($1, uucpd_log_t, uucpd_log_t)
Chris PeBenito d6d16b
')
Chris PeBenito d6d16b
Chris PeBenito d6d16b
########################################
Chris PeBenito d6d16b
## <summary>
Chris PeBenito d6d16b
##	Create, read, write, and delete uucp spool files.
Chris PeBenito d6d16b
## </summary>
Chris PeBenito d6d16b
## <param name="domain">
Chris PeBenito d6d16b
##	<summary>
Chris PeBenito d6d16b
##	Domain allowed access.
Chris PeBenito d6d16b
##	</summary>
Chris PeBenito d6d16b
## </param>
Chris PeBenito d6d16b
#
Chris PeBenito d6d16b
interface(`uucp_manage_spool',`
Chris PeBenito d6d16b
	gen_require(`
Chris PeBenito d6d16b
		type uucpd_spool_t;
Chris PeBenito d6d16b
	')
Chris PeBenito d6d16b
Chris PeBenito d6d16b
	files_search_spool($1)
Chris PeBenito 0bfccd
	manage_dirs_pattern($1, uucpd_spool_t, uucpd_spool_t)
Chris PeBenito 0bfccd
	manage_files_pattern($1, uucpd_spool_t, uucpd_spool_t)
Chris PeBenito 0bfccd
	manage_lnk_files_pattern($1, uucpd_spool_t, uucpd_spool_t)
Chris PeBenito d6d16b
')
Chris PeBenito d6d16b
Chris PeBenito d6d16b
########################################
Chris PeBenito d6d16b
## <summary>
Chris PeBenito d6d16b
##	Execute the master uux program in the
Chris PeBenito d6d16b
##	uux_t domain.
Chris PeBenito d6d16b
## </summary>
Chris PeBenito d6d16b
## <param name="domain">
Chris PeBenito d6d16b
##	<summary>
Dominick Grift 288845
##	Domain allowed to transition.
Chris PeBenito d6d16b
##	</summary>
Chris PeBenito d6d16b
## </param>
Chris PeBenito d6d16b
#
Chris PeBenito d6d16b
interface(`uucp_domtrans_uux',`
Chris PeBenito d6d16b
	gen_require(`
Chris PeBenito d6d16b
		type uux_t, uux_exec_t;
Chris PeBenito d6d16b
	')
Chris PeBenito d6d16b
Chris PeBenito 0bfccd
	domtrans_pattern($1, uux_exec_t, uux_t)
Chris PeBenito d6d16b
')
Chris PeBenito 7a5e2d
Chris PeBenito 7a5e2d
########################################
Chris PeBenito 7a5e2d
## <summary>
Chris PeBenito 7a5e2d
##	All of the rules required to administrate 
Chris PeBenito 7a5e2d
##	an uucp environment
Chris PeBenito 7a5e2d
## </summary>
Chris PeBenito 7a5e2d
## <param name="domain">
Chris PeBenito 7a5e2d
##	<summary>
Chris PeBenito 7a5e2d
##	Domain allowed access.
Chris PeBenito 7a5e2d
##	</summary>
Chris PeBenito 7a5e2d
## </param>
Chris PeBenito 7a5e2d
## <rolecap/>
Chris PeBenito 7a5e2d
#
Chris PeBenito 7a5e2d
interface(`uucp_admin',`
Chris PeBenito 7a5e2d
	gen_require(`
Chris PeBenito 8f3a0a
		type uucpd_t, uucpd_tmp_t, uucpd_log_t;
Chris PeBenito 8f3a0a
		type uucpd_spool_t, uucpd_ro_t, uucpd_rw_t;
Chris PeBenito 8f3a0a
		type uucpd_var_run_t;
Chris PeBenito 7a5e2d
	')
Chris PeBenito 7a5e2d
Dominick Grift 819518
	allow $1 uucpd_t:process { ptrace signal_perms };
Chris PeBenito 8f3a0a
	ps_process_pattern($1, uucpd_t)
Chris PeBenito 2a9837
Chris PeBenito 7a5e2d
	logging_list_logs($1)
Chris PeBenito e87221
	admin_pattern($1, uucpd_log_t)
Chris PeBenito 7a5e2d
Chris PeBenito 7a5e2d
	files_list_spool($1)
Chris PeBenito e87221
	admin_pattern($1, uucpd_spool_t)
Chris PeBenito 7a5e2d
Chris PeBenito e87221
	admin_pattern($1, uucpd_ro_t)
Chris PeBenito 7a5e2d
Chris PeBenito e87221
	admin_pattern($1, uucpd_rw_t)
Chris PeBenito e87221
Chris PeBenito e87221
	files_list_tmp($1)
Chris PeBenito e87221
	admin_pattern($1, uucpd_tmp_t)
Chris PeBenito 7a5e2d
Chris PeBenito 7a5e2d
	files_list_pids($1)
Chris PeBenito e87221
	admin_pattern($1, uucpd_var_run_t)
Chris PeBenito 7a5e2d
')