Chris PeBenito ad3b9d
## <summary>Line printer daemon</summary>
Chris PeBenito ad3b9d
Chris PeBenito ad3b9d
########################################
Chris PeBenito ad3b9d
## <summary>
Chris PeBenito ad3b9d
##	Execute lpd in the lpd domain.
Chris PeBenito ad3b9d
## </summary>
Chris PeBenito ad3b9d
## <param name="domain">
Chris PeBenito ad3b9d
##	Domain allowed access.
Chris PeBenito ad3b9d
## </param>
Chris PeBenito ad3b9d
#
Chris PeBenito ad3b9d
interface(`lpd_domtrans_checkpc',`
Chris PeBenito ad3b9d
	gen_require(`
Chris PeBenito ad3b9d
		type checkpc_t, checkpc_exec_t;
Chris PeBenito ad3b9d
	')
Chris PeBenito ad3b9d
Chris PeBenito ad3b9d
	domain_auto_trans($1,checkpc_exec_t,checkpc_t)
Chris PeBenito ad3b9d
Chris PeBenito ad3b9d
	allow $1 checkpc_t:fd use;
Chris PeBenito ad3b9d
	allow checkpc_t $1:fd use;
Chris PeBenito ad3b9d
	allow checkpc_t $1:fifo_file rw_file_perms;
Chris PeBenito ad3b9d
	allow checkpc_t $1:process sigchld;
Chris PeBenito ad3b9d
')
Chris PeBenito ad3b9d
Chris PeBenito ad3b9d
########################################
Chris PeBenito ad3b9d
## <summary>
Chris PeBenito ad3b9d
##	Execute amrecover in the lpd domain, and
Chris PeBenito ad3b9d
##	allow the specified role the lpd domain.
Chris PeBenito ad3b9d
## </summary>
Chris PeBenito ad3b9d
## <param name="domain">
Chris PeBenito ad3b9d
##	Domain allowed access.
Chris PeBenito ad3b9d
## </param>
Chris PeBenito ad3b9d
## <param name="role">
Chris PeBenito ad3b9d
##	The role to be allowed the lpd domain.
Chris PeBenito ad3b9d
## </param>
Chris PeBenito ad3b9d
## <param name="terminal">
Chris PeBenito ad3b9d
##	The type of the terminal allow the lpd domain to use.
Chris PeBenito ad3b9d
## </param>
Chris PeBenito ad3b9d
#
Chris PeBenito ad3b9d
interface(`lpd_run_checkpc',`
Chris PeBenito ad3b9d
	gen_require(`
Chris PeBenito ad3b9d
		type checkpc_t;
Chris PeBenito ad3b9d
	')
Chris PeBenito ad3b9d
Chris PeBenito ad3b9d
	lpd_domtrans_checkpc($1)
Chris PeBenito ad3b9d
	role $2 types checkpc_t;
Chris PeBenito ad3b9d
	allow checkpc_t $3:chr_file rw_term_perms;
Chris PeBenito ad3b9d
')
Chris PeBenito ad3b9d
Chris PeBenito ad3b9d
########################################
Chris PeBenito ad3b9d
## <summary>
Chris PeBenito ad3b9d
##	List the contents of the printer spool directories.
Chris PeBenito ad3b9d
## </summary>
Chris PeBenito ad3b9d
## <param name="domain">
Chris PeBenito ad3b9d
##	Domain allowed access.
Chris PeBenito ad3b9d
## </param>
Chris PeBenito ad3b9d
#
Chris PeBenito ad3b9d
interface(`lpd_list_spool',`
Chris PeBenito ad3b9d
	gen_require(`
Chris PeBenito ad3b9d
		type print_spool_t;
Chris PeBenito ad3b9d
	')
Chris PeBenito ad3b9d
Chris PeBenito ad3b9d
	files_search_spool($1)
Chris PeBenito ad3b9d
	allow $1 print_spool_t:dir list_dir_perms;
Chris PeBenito ad3b9d
')
Chris PeBenito ad3b9d
Chris PeBenito ad3b9d
########################################
Chris PeBenito ad3b9d
## <summary>
Chris PeBenito ef5ca0
##	Create, read, write, and delete printer spool files.
Chris PeBenito ef5ca0
## </summary>
Chris PeBenito ef5ca0
## <param name="domain">
Chris PeBenito ef5ca0
##	Domain allowed access.
Chris PeBenito ef5ca0
## </param>
Chris PeBenito ef5ca0
#
Chris PeBenito ef5ca0
interface(`lpd_manage_spool',`
Chris PeBenito ef5ca0
	gen_require(`
Chris PeBenito ef5ca0
		type print_spool_t;
Chris PeBenito ef5ca0
	')
Chris PeBenito ef5ca0
Chris PeBenito ef5ca0
	files_search_spool($1)
Chris PeBenito ef5ca0
Chris PeBenito ef5ca0
	# cjp: cups wants setattr
Chris PeBenito ef5ca0
	allow $1 print_spool_t:dir { rw_dir_perms setattr };
Chris PeBenito ef5ca0
	allow $1 print_spool_t:file manage_file_perms;
Chris PeBenito ef5ca0
')
Chris PeBenito ef5ca0
Chris PeBenito ef5ca0
########################################
Chris PeBenito ef5ca0
## <summary>
Chris PeBenito ad3b9d
##	List the contents of the printer spool directories.
Chris PeBenito ad3b9d
## </summary>
Chris PeBenito ad3b9d
## <param name="domain">
Chris PeBenito ad3b9d
##	Domain allowed access.
Chris PeBenito ad3b9d
## </param>
Chris PeBenito ad3b9d
#
Chris PeBenito ad3b9d
interface(`lpd_read_config',`
Chris PeBenito ad3b9d
	gen_require(`
Chris PeBenito ad3b9d
		type printconf_t;
Chris PeBenito ad3b9d
	')
Chris PeBenito ad3b9d
Chris PeBenito ad3b9d
	allow $1 printconf_t:dir list_dir_perms;
Chris PeBenito ad3b9d
	allow $1 printconf_t:file r_file_perms;
Chris PeBenito ad3b9d
')