Dan Walsh 2968e0
policy_module(mojomojo, 1.0.0)
Chris PeBenito 9d4395
Chris PeBenito 9d4395
########################################
Chris PeBenito 9d4395
#
Chris PeBenito 9d4395
# Declarations
Chris PeBenito 9d4395
#
Chris PeBenito 9d4395
Chris PeBenito 9d4395
apache_content_template(mojomojo)
Chris PeBenito 9d4395
Dan Walsh 3eaa99
type httpd_mojomojo_tmp_t;
Dan Walsh 3eaa99
files_tmp_file(httpd_mojomojo_tmp_t)
Dan Walsh 3eaa99
Chris PeBenito 9d4395
########################################
Chris PeBenito 9d4395
#
Chris PeBenito 9d4395
# mojomojo local policy
Chris PeBenito 9d4395
#
Chris PeBenito 9d4395
Chris PeBenito 9d4395
allow httpd_mojomojo_script_t httpd_t:unix_stream_socket rw_stream_socket_perms;
Chris PeBenito 9d4395
Dan Walsh 3eaa99
manage_dirs_pattern(httpd_mojomojo_script_t, httpd_mojomojo_tmp_t, httpd_mojomojo_tmp_t)
Dan Walsh 3eaa99
manage_files_pattern(httpd_mojomojo_script_t, httpd_mojomojo_tmp_t, httpd_mojomojo_tmp_t)
Dan Walsh 3eaa99
files_tmp_filetrans(httpd_mojomojo_script_t, httpd_mojomojo_tmp_t, { file dir })
Dan Walsh 3eaa99
Chris PeBenito 9d4395
corenet_tcp_connect_postgresql_port(httpd_mojomojo_script_t)
Dan Walsh 3eaa99
corenet_tcp_connect_mysqld_port(httpd_mojomojo_script_t)
Dan Walsh 3eaa99
corenet_tcp_connect_smtp_port(httpd_mojomojo_script_t)
Dan Walsh 2968e0
corenet_sendrecv_postgresql_client_packets(httpd_mojomojo_script_t)
Dan Walsh 2968e0
corenet_sendrecv_mysqld_client_packets(httpd_mojomojo_script_t)
Chris PeBenito 9d4395
corenet_sendrecv_smtp_client_packets(httpd_mojomojo_script_t)
Chris PeBenito 9d4395
Chris PeBenito 9d4395
files_search_var_lib(httpd_mojomojo_script_t)
Chris PeBenito 9d4395
Dan Walsh 3eaa99
sysnet_dns_name_resolve(httpd_mojomojo_script_t)
Dan Walsh 3eaa99
Dan Walsh 2968e0
mta_send_mail(httpd_mojomojo_script_t)
Dan Walsh 2968e0
Chris PeBenito 9d4395
optional_policy(`
Chris PeBenito 9d4395
	mysql_stream_connect(httpd_mojomojo_script_t)
Chris PeBenito 9d4395
')
Chris PeBenito 9d4395
Chris PeBenito 9d4395
optional_policy(`
Chris PeBenito 9d4395
	postgresql_stream_connect(httpd_mojomojo_script_t)
Chris PeBenito 9d4395
')