Dominick Grift b094064
policy_module(bugzilla, 1.0.4)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
########################################
Chris PeBenito 9401ae1
#
Chris PeBenito 9401ae1
# Declarations
Chris PeBenito 9401ae1
#
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
apache_content_template(bugzilla)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
########################################
Chris PeBenito 9401ae1
#
Dominick Grift 60af2e2
# Local policy
Chris PeBenito 9401ae1
#
Chris PeBenito 9401ae1
Dominick Grift fed410f
allow httpd_bugzilla_script_t self:tcp_socket { accept listen };
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
corenet_all_recvfrom_unlabeled(httpd_bugzilla_script_t)
Chris PeBenito 9401ae1
corenet_all_recvfrom_netlabel(httpd_bugzilla_script_t)
Chris PeBenito 9401ae1
corenet_tcp_sendrecv_generic_if(httpd_bugzilla_script_t)
Chris PeBenito 9401ae1
corenet_tcp_sendrecv_generic_node(httpd_bugzilla_script_t)
Dominick Grift 60af2e2
Dominick Grift 60af2e2
corenet_sendrecv_http_client_packets(httpd_bugzilla_script_t)
Chris PeBenito 9401ae1
corenet_tcp_connect_http_port(httpd_bugzilla_script_t)
Dominick Grift 937d176
corenet_tcp_sendrecv_http_port(httpd_bugzilla_script_t)
Dominick Grift 60af2e2
Dominick Grift 60af2e2
corenet_sendrecv_smtp_client_packets(httpd_bugzilla_script_t)
Chris PeBenito 9401ae1
corenet_tcp_connect_smtp_port(httpd_bugzilla_script_t)
Dominick Grift 937d176
corenet_tcp_sendrecv_smtp_port(httpd_bugzilla_script_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
files_search_var_lib(httpd_bugzilla_script_t)
Chris PeBenito 9401ae1
Dominick Grift fed410f
sysnet_dns_name_resolve(httpd_bugzilla_script_t)
Chris PeBenito 9401ae1
sysnet_use_ldap(httpd_bugzilla_script_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
optional_policy(`
Chris PeBenito 9401ae1
	mta_send_mail(httpd_bugzilla_script_t)
Chris PeBenito 9401ae1
')
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
optional_policy(`
Chris PeBenito 9401ae1
	mysql_stream_connect(httpd_bugzilla_script_t)
Dominick Grift 60af2e2
	mysql_tcp_connect(httpd_bugzilla_script_t)
Chris PeBenito 9401ae1
')
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
optional_policy(`
Chris PeBenito 9401ae1
	postgresql_stream_connect(httpd_bugzilla_script_t)
Dominick Grift 60af2e2
	postgresql_tcp_connect(httpd_bugzilla_script_t)
Chris PeBenito 9401ae1
')