Chris PeBenito 31b7c0
#DESC Ircd - IRC server
Chris PeBenito 31b7c0
#
Chris PeBenito 31b7c0
# Author:  Russell Coker <russell@coker.com.au>
Chris PeBenito 31b7c0
# X-Debian-Packages: ircd dancer-ircd ircd-hybrid ircd-irc2 ircd-ircu
Chris PeBenito 31b7c0
#
Chris PeBenito 31b7c0
Chris PeBenito 31b7c0
#################################
Chris PeBenito 31b7c0
#
Chris PeBenito 31b7c0
# Rules for the ircd_t domain.
Chris PeBenito 31b7c0
#
Chris PeBenito 31b7c0
# ircd_exec_t is the type of the slapd executable.
Chris PeBenito 31b7c0
#
Chris PeBenito 31b7c0
daemon_domain(ircd)
Chris PeBenito 31b7c0
Chris PeBenito 31b7c0
allow ircd_t ircd_port_t:tcp_socket name_bind;
Chris PeBenito 31b7c0
Chris PeBenito 31b7c0
etcdir_domain(ircd)
Chris PeBenito 31b7c0
Chris PeBenito 31b7c0
logdir_domain(ircd)
Chris PeBenito 31b7c0
Chris PeBenito 31b7c0
var_lib_domain(ircd)
Chris PeBenito 31b7c0
Chris PeBenito 31b7c0
# Use the network.
Chris PeBenito 31b7c0
can_network_server(ircd_t)
Chris PeBenito 31b7c0
can_ypbind(ircd_t)
Chris PeBenito 31b7c0
#allow ircd_t self:fifo_file { read write };
Chris PeBenito 31b7c0
allow ircd_t self:unix_stream_socket create_socket_perms;
Chris PeBenito 31b7c0
allow ircd_t self:unix_dgram_socket create_socket_perms;
Chris PeBenito 31b7c0
Chris PeBenito 31b7c0
allow ircd_t devtty_t:chr_file rw_file_perms;
Chris PeBenito 31b7c0
Chris PeBenito 31b7c0
allow ircd_t sbin_t:dir search;
Chris PeBenito 31b7c0
Chris PeBenito 31b7c0
allow ircd_t proc_t:file { getattr read };
Chris PeBenito 31b7c0
Chris PeBenito 31b7c0
# read config files
Chris PeBenito 31b7c0
allow ircd_t { etc_t etc_runtime_t }:file { getattr read };
Chris PeBenito 31b7c0
allow ircd_t etc_t:lnk_file read;
Chris PeBenito 31b7c0
Chris PeBenito 31b7c0
ifdef(`logrotate.te', `
Chris PeBenito 31b7c0
allow logrotate_t ircd_var_run_t:dir search;
Chris PeBenito 31b7c0
allow logrotate_t ircd_var_run_t:file { getattr read };
Chris PeBenito 31b7c0
')