selinux-refpolicy/policy/modules/services/bugzilla.te

51 lines
1.6 KiB
Plaintext

policy_module(bugzilla, 1.0.0)
########################################
#
# Declarations
#
apache_content_template(bugzilla)
########################################
#
# bugzilla local policy
#
allow httpd_bugzilla_script_t self:netlink_route_socket r_netlink_socket_perms;
allow httpd_bugzilla_script_t self:tcp_socket create_stream_socket_perms;
allow httpd_bugzilla_script_t self:udp_socket create_socket_perms;
corenet_all_recvfrom_unlabeled(httpd_bugzilla_script_t)
corenet_all_recvfrom_netlabel(httpd_bugzilla_script_t)
corenet_tcp_sendrecv_generic_if(httpd_bugzilla_script_t)
corenet_udp_sendrecv_generic_if(httpd_bugzilla_script_t)
corenet_tcp_sendrecv_generic_node(httpd_bugzilla_script_t)
corenet_udp_sendrecv_generic_node(httpd_bugzilla_script_t)
corenet_tcp_sendrecv_all_ports(httpd_bugzilla_script_t)
corenet_udp_sendrecv_all_ports(httpd_bugzilla_script_t)
corenet_tcp_connect_postgresql_port(httpd_bugzilla_script_t)
corenet_tcp_connect_mysqld_port(httpd_bugzilla_script_t)
corenet_tcp_connect_http_port(httpd_bugzilla_script_t)
corenet_tcp_connect_smtp_port(httpd_bugzilla_script_t)
corenet_sendrecv_postgresql_client_packets(httpd_bugzilla_script_t)
corenet_sendrecv_mysqld_client_packets(httpd_bugzilla_script_t)
files_search_var_lib(httpd_bugzilla_script_t)
sysnet_read_config(httpd_bugzilla_script_t)
sysnet_use_ldap(httpd_bugzilla_script_t)
optional_policy(`
mta_send_mail(httpd_bugzilla_script_t)
')
optional_policy(`
mysql_search_db(httpd_bugzilla_script_t)
mysql_stream_connect(httpd_bugzilla_script_t)
')
optional_policy(`
postgresql_stream_connect(httpd_bugzilla_script_t)
')