Chris PeBenito 17de1b
## <summary>Unix to Unix Copy</summary>
Chris PeBenito d6d16b
Chris PeBenito d6d16b
########################################
Chris PeBenito d6d16b
## <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>
Chris PeBenito d6d16b
##	Domain allowed access.
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
Chris PeBenito 8f3a0a
	allow $1 uucpd_t:process { ptrace signal_perms getattr };
Chris PeBenito 8f3a0a
	ps_process_pattern($1, uucpd_t)
Chris PeBenito 7a5e2d
	        
Chris PeBenito 7a5e2d
	files_list_tmp($1)
Chris PeBenito 8f3a0a
	manage_files_pattern($1, uucpd_tmp_t, uucpd_tmp_t)
Chris PeBenito 7a5e2d
Chris PeBenito 7a5e2d
	logging_list_logs($1)
Chris PeBenito 8f3a0a
	manage_files_pattern($1, uucpd_log_t, uucpd_log_t)
Chris PeBenito 7a5e2d
Chris PeBenito 7a5e2d
	files_list_spool($1)
Chris PeBenito 8f3a0a
	manage_files_pattern($1, uucpd_spool_t, uucpd_spool_t)
Chris PeBenito 7a5e2d
Chris PeBenito 8f3a0a
	manage_files_pattern($1, uucpd_rw_t, uucpd_rw_t)
Chris PeBenito 7a5e2d
Chris PeBenito 8f3a0a
	manage_files_pattern($1, uucpd_ro_t, uucpd_ro_t)
Chris PeBenito 7a5e2d
Chris PeBenito 7a5e2d
	files_list_pids($1)
Chris PeBenito 8f3a0a
	manage_files_pattern($1, uucpd_var_run_t, uucpd_var_run_t)
Chris PeBenito 7a5e2d
')