Chris PeBenito 17de1b
## <summary>Postfix email server</summary>
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Postfix stub interface.  No access allowed.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain" optional="true">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	N/A
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`postfix_stub',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type postfix_master_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Creates types and rules for a basic
Chris PeBenito 17de1b
##	postfix process domain.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="prefix">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Prefix for the domain.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
template(`postfix_domain_template',`
Chris PeBenito 17de1b
	type postfix_$1_t;
Chris PeBenito 17de1b
	type postfix_$1_exec_t;
Chris PeBenito 17de1b
	domain_type(postfix_$1_t)
Chris PeBenito 17de1b
	domain_entry_file(postfix_$1_t,postfix_$1_exec_t)
Chris PeBenito 17de1b
	role system_r types postfix_$1_t;
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	dontaudit postfix_$1_t self:capability sys_tty_config;
Chris PeBenito 17de1b
	allow postfix_$1_t self:process { signal_perms setpgid };
Chris PeBenito 17de1b
	allow postfix_$1_t self:unix_dgram_socket create_socket_perms;
Chris PeBenito 17de1b
	allow postfix_$1_t self:unix_stream_socket create_stream_socket_perms;
Chris PeBenito 17de1b
	allow postfix_$1_t self:unix_stream_socket connectto;
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	allow postfix_master_t postfix_$1_t:process signal;
Chris PeBenito 17de1b
Chris PeBenito c0868a
	allow postfix_$1_t postfix_etc_t:dir list_dir_perms;
Chris PeBenito c0868a
	read_files_pattern(postfix_$1_t,postfix_etc_t,postfix_etc_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	can_exec(postfix_$1_t, postfix_$1_exec_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	allow postfix_$1_t postfix_exec_t:file rx_file_perms;
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	allow postfix_$1_t postfix_master_t:process sigchld;
Chris PeBenito 17de1b
Chris PeBenito c0868a
	allow postfix_$1_t postfix_spool_t:dir list_dir_perms;
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	allow postfix_$1_t postfix_var_run_t:file manage_file_perms;
Chris PeBenito 17de1b
	files_pid_filetrans(postfix_$1_t,postfix_var_run_t,file)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	kernel_read_system_state(postfix_$1_t)
Chris PeBenito 17de1b
	kernel_read_network_state(postfix_$1_t)
Chris PeBenito 17de1b
	kernel_read_all_sysctls(postfix_$1_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	dev_read_sysfs(postfix_$1_t)
Chris PeBenito 17de1b
	dev_read_rand(postfix_$1_t)
Chris PeBenito 17de1b
	dev_read_urand(postfix_$1_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	fs_search_auto_mountpoints(postfix_$1_t)
Chris PeBenito 17de1b
	fs_getattr_xattr_fs(postfix_$1_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	term_dontaudit_use_console(postfix_$1_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	corecmd_list_bin(postfix_$1_t)
Chris PeBenito 17de1b
	corecmd_list_sbin(postfix_$1_t)
Chris PeBenito 17de1b
	corecmd_read_bin_symlinks(postfix_$1_t)
Chris PeBenito 17de1b
	corecmd_read_sbin_symlinks(postfix_$1_t)
Chris PeBenito 17de1b
	corecmd_exec_shell(postfix_$1_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	files_read_etc_files(postfix_$1_t)
Chris PeBenito 17de1b
	files_read_etc_runtime_files(postfix_$1_t)
Chris PeBenito 17de1b
	files_read_usr_symlinks(postfix_$1_t)
Chris PeBenito 17de1b
	files_search_spool(postfix_$1_t)
Chris PeBenito 17de1b
	files_getattr_tmp_dirs(postfix_$1_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	init_use_fds(postfix_$1_t)
Chris PeBenito 17de1b
	init_sigchld(postfix_$1_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	libs_use_ld_so(postfix_$1_t)
Chris PeBenito 17de1b
	libs_use_shared_libs(postfix_$1_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	logging_send_syslog_msg(postfix_$1_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	miscfiles_read_localization(postfix_$1_t)
Chris PeBenito 17de1b
	miscfiles_read_certs(postfix_$1_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	userdom_dontaudit_use_unpriv_user_fds(postfix_$1_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	ifdef(`targeted_policy', `
Chris PeBenito 17de1b
		term_dontaudit_use_unallocated_ttys(postfix_$1_t)
Chris PeBenito 17de1b
		term_dontaudit_use_generic_ptys(postfix_$1_t)
Chris PeBenito 17de1b
		files_dontaudit_read_root_files(postfix_$1_t)
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	optional_policy(`
Chris PeBenito 17de1b
		nscd_socket_use(postfix_$1_t)
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	optional_policy(`
Chris PeBenito 17de1b
		udev_read_db(postfix_$1_t)
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Creates a postfix server process domain.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="prefix">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Prefix of the domain.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
template(`postfix_server_domain_template',`
Chris PeBenito 17de1b
	postfix_domain_template($1)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	allow postfix_$1_t self:capability { setuid setgid dac_override };
Chris PeBenito 17de1b
	allow postfix_$1_t postfix_master_t:unix_stream_socket { connectto rw_stream_socket_perms };
Chris PeBenito 17de1b
	allow postfix_$1_t self:tcp_socket create_socket_perms;
Chris PeBenito 17de1b
	allow postfix_$1_t self:udp_socket create_socket_perms;
Chris PeBenito 17de1b
Chris PeBenito c0868a
	domtrans_pattern(postfix_master_t, postfix_$1_exec_t, postfix_$1_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	corenet_non_ipsec_sendrecv(postfix_$1_t)
Chris PeBenito 17de1b
	corenet_tcp_sendrecv_all_if(postfix_$1_t)
Chris PeBenito 17de1b
	corenet_udp_sendrecv_all_if(postfix_$1_t)
Chris PeBenito 17de1b
	corenet_tcp_sendrecv_all_nodes(postfix_$1_t)
Chris PeBenito 17de1b
	corenet_udp_sendrecv_all_nodes(postfix_$1_t)
Chris PeBenito 17de1b
	corenet_tcp_sendrecv_all_ports(postfix_$1_t)
Chris PeBenito 17de1b
	corenet_udp_sendrecv_all_ports(postfix_$1_t)
Chris PeBenito 17de1b
	corenet_tcp_bind_all_nodes(postfix_$1_t)
Chris PeBenito 17de1b
	corenet_udp_bind_all_nodes(postfix_$1_t)
Chris PeBenito 17de1b
	corenet_tcp_connect_all_ports(postfix_$1_t)
Chris PeBenito 17de1b
	corenet_sendrecv_all_client_packets(postfix_$1_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	sysnet_read_config(postfix_$1_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	optional_policy(`
Chris PeBenito 17de1b
		nis_use_ypbind(postfix_$1_t)
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Creates a process domain for programs
Chris PeBenito 17de1b
##	that are ran by users.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="prefix">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Prefix of the domain.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
template(`postfix_user_domain_template',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		attribute postfix_user_domains, postfix_user_domtrans;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	postfix_domain_template($1)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	typeattribute postfix_$1_t postfix_user_domains;
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	allow postfix_$1_t self:capability dac_override;
Chris PeBenito 17de1b
Chris PeBenito c0868a
	domtrans_pattern(postfix_user_domtrans, postfix_$1_exec_t, postfix_$1_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	domain_use_interactive_fds(postfix_$1_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito bbcd3c
##	The per role template for the postfix module.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="prefix">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	The prefix of the user domain.
Chris PeBenito 17de1b
##	(e.g., user is the prefix of user_t)
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
## <param name="user_domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	User domain type.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito bbcd3c
template(`postfix_per_role_template',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		attribute postfix_user_domains;
Chris PeBenito 17de1b
		type postfix_postdrop_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	role $3 types postfix_postdrop_t;
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	allow postfix_user_domains $2:process sigchld;
Chris PeBenito 17de1b
	allow postfix_user_domains $2:fifo_file { write getattr };
Chris PeBenito 17de1b
	allow postfix_user_domains $2:fd use;
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Read postfix configuration files.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito bbcd3c
## <rolecap/>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`postfix_read_config',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type postfix_etc_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	allow $1 postfix_etc_t:dir { getattr read search };
Chris PeBenito 17de1b
	allow $1 postfix_etc_t:file { read getattr };
Chris PeBenito 17de1b
	allow $1 postfix_etc_t:lnk_file { getattr read };
Chris PeBenito 17de1b
	files_search_etc($1)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Create files with the specified type in
Chris PeBenito 17de1b
##	the postfix configuration directories.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
## <param name="private type">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	The type of the object to be created.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
## <param name="object">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	The object class of the object being created.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`postfix_config_filetrans',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type postfix_etc_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	files_search_etc($1)
Chris PeBenito c0868a
	filetrans_pattern($1,postfix_etc_t,$2,$3)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Do not audit attempts to read and
Chris PeBenito 17de1b
##	write postfix local delivery
Chris PeBenito 17de1b
##	TCP sockets.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain to not audit.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`postfix_dontaudit_rw_local_tcp_sockets',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type postfix_local_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	dontaudit $1 postfix_local_t:tcp_socket { read write };
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Do not audit attempts to use
Chris PeBenito 17de1b
##	postfix master process file
Chris PeBenito 17de1b
##	file descriptors.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain to not audit.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`postfix_dontaudit_use_fds',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type postfix_master_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	dontaudit $1 postfix_master_t:fd use;
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Execute postfix_map in the postfix_map domain.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`postfix_domtrans_map',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type postfix_map_t, postfix_map_exec_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito c0868a
	domtrans_pattern($1,postfix_map_exec_t,postfix_map_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Execute postfix_map in the postfix_map domain, and
Chris PeBenito 17de1b
##	allow the specified role the postfix_map domain.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
## <param name="role">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	The role to be allowed the postfix_map domain.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
## <param name="terminal">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	The type of the terminal allow the postfix_map domain to use.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito bbcd3c
## <rolecap/>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`postfix_run_map',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type postfix_map_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	postfix_domtrans_map($1)
Chris PeBenito 17de1b
	role $2 types postfix_map_t;
Chris PeBenito 17de1b
	allow postfix_map_t $3:chr_file rw_term_perms;
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Execute the master postfix program in the
Chris PeBenito 17de1b
##	postfix_master domain.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`postfix_domtrans_master',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type postfix_master_t, postfix_master_exec_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito c0868a
	domtrans_pattern($1,postfix_master_exec_t,postfix_master_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Execute the master postfix program in the
Chris PeBenito 17de1b
##	caller domain.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`postfix_exec_master',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type postfix_master_exec_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	can_exec($1,postfix_master_exec_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Execute the master postfix program in the
Chris PeBenito 17de1b
##	postfix_master domain.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`postfix_domtrans_smtp',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type postfix_smtp_t, postfix_smtp_exec_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito c0868a
	domtrans_pattern($1,postfix_smtp_exec_t,postfix_smtp_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Search postfix mail spool directories.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`postfix_search_spool',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type postfix_spool_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	allow $1 postfix_spool_t:dir search_dir_perms;
Chris PeBenito 17de1b
	files_search_spool($1)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	List postfix mail spool directories.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`postfix_list_spool',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type postfix_spool_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	allow $1 postfix_spool_t:dir list_dir_perms;
Chris PeBenito 17de1b
	files_search_spool($1)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Execute postfix user mail programs
Chris PeBenito 17de1b
##	in their respective domains.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`postfix_domtrans_user_mail_handler',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		attribute postfix_user_domtrans;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	typeattribute $1 postfix_user_domtrans;
Chris PeBenito 17de1b
')