37 lines
927 B
Plaintext
37 lines
927 B
Plaintext
|
policy_module(mojomojo, 1.0.0)
|
||
|
|
||
|
########################################
|
||
|
#
|
||
|
# Declarations
|
||
|
#
|
||
|
|
||
|
apache_content_template(mojomojo)
|
||
|
|
||
|
########################################
|
||
|
#
|
||
|
# mojomojo local policy
|
||
|
#
|
||
|
|
||
|
allow httpd_mojomojo_script_t httpd_t:unix_stream_socket rw_stream_socket_perms;
|
||
|
|
||
|
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)
|
||
|
')
|