44 lines
1.2 KiB
Plaintext
44 lines
1.2 KiB
Plaintext
policy_module(mojomojo, 1.0.0)
|
|
|
|
########################################
|
|
#
|
|
# Declarations
|
|
#
|
|
|
|
apache_content_template(mojomojo)
|
|
|
|
type httpd_mojomojo_tmp_t;
|
|
files_tmp_file(httpd_mojomojo_tmp_t)
|
|
|
|
########################################
|
|
#
|
|
# mojomojo local policy
|
|
#
|
|
|
|
allow httpd_mojomojo_script_t httpd_t:unix_stream_socket rw_stream_socket_perms;
|
|
|
|
manage_dirs_pattern(httpd_mojomojo_script_t, httpd_mojomojo_tmp_t, httpd_mojomojo_tmp_t)
|
|
manage_files_pattern(httpd_mojomojo_script_t, httpd_mojomojo_tmp_t, httpd_mojomojo_tmp_t)
|
|
files_tmp_filetrans(httpd_mojomojo_script_t, httpd_mojomojo_tmp_t, { file dir })
|
|
|
|
corenet_tcp_connect_postgresql_port(httpd_mojomojo_script_t)
|
|
corenet_tcp_connect_mysqld_port(httpd_mojomojo_script_t)
|
|
corenet_tcp_connect_smtp_port(httpd_mojomojo_script_t)
|
|
corenet_sendrecv_postgresql_client_packets(httpd_mojomojo_script_t)
|
|
corenet_sendrecv_mysqld_client_packets(httpd_mojomojo_script_t)
|
|
corenet_sendrecv_smtp_client_packets(httpd_mojomojo_script_t)
|
|
|
|
files_search_var_lib(httpd_mojomojo_script_t)
|
|
|
|
sysnet_dns_name_resolve(httpd_mojomojo_script_t)
|
|
|
|
mta_send_mail(httpd_mojomojo_script_t)
|
|
|
|
optional_policy(`
|
|
mysql_stream_connect(httpd_mojomojo_script_t)
|
|
')
|
|
|
|
optional_policy(`
|
|
postgresql_stream_connect(httpd_mojomojo_script_t)
|
|
')
|