Chris PeBenito 77f6e2
# Roundup Issue Tracking System
Chris PeBenito 77f6e2
#
Chris PeBenito 77f6e2
# Authors:  W. Michael Petullo 
Chris PeBenito 77f6e2
#
Chris PeBenito 77f6e2
daemon_domain(roundup)
Chris PeBenito 77f6e2
var_lib_domain(roundup)
Chris PeBenito 77f6e2
can_network(roundup_t)
Chris PeBenito 77f6e2
allow roundup_t http_cache_port_t:tcp_socket name_bind;
Chris PeBenito 77f6e2
allow roundup_t smtp_port_t:tcp_socket name_connect;
Chris PeBenito 77f6e2
Chris PeBenito 77f6e2
# execute python
Chris PeBenito 77f6e2
allow roundup_t bin_t:dir r_dir_perms;
Chris PeBenito 77f6e2
can_exec(roundup_t, bin_t)
Chris PeBenito 77f6e2
allow roundup_t bin_t:lnk_file read;
Chris PeBenito 77f6e2
Chris PeBenito 77f6e2
allow roundup_t self:capability { setgid setuid };
Chris PeBenito 77f6e2
Chris PeBenito 77f6e2
allow roundup_t self:unix_stream_socket create_stream_socket_perms;
Chris PeBenito 77f6e2
Chris PeBenito 77f6e2
ifdef(`mysqld.te', `
Chris PeBenito 77f6e2
allow roundup_t mysqld_db_t:dir search;
Chris PeBenito 77f6e2
allow roundup_t mysqld_var_run_t:sock_file write;
Chris PeBenito 77f6e2
allow roundup_t mysqld_t:unix_stream_socket connectto;
Chris PeBenito 77f6e2
')
Chris PeBenito 77f6e2
Chris PeBenito 77f6e2
# /usr/share/mysql/charsets/Index.xml
Chris PeBenito 77f6e2
allow roundup_t usr_t:file { getattr read };
Chris PeBenito 77f6e2
allow roundup_t urandom_device_t:chr_file { getattr read };
Chris PeBenito 77f6e2
allow roundup_t etc_t:file { getattr read };