|
Chris PeBenito |
340af1 |
policy_module(icecast, 1.0.0)
|
|
Jeremy Solt |
584dfa |
|
|
Jeremy Solt |
584dfa |
########################################
|
|
Jeremy Solt |
584dfa |
#
|
|
Jeremy Solt |
584dfa |
# Declarations
|
|
Jeremy Solt |
584dfa |
#
|
|
Jeremy Solt |
584dfa |
|
|
Jeremy Solt |
584dfa |
type icecast_t;
|
|
Jeremy Solt |
584dfa |
type icecast_exec_t;
|
|
Jeremy Solt |
584dfa |
init_daemon_domain(icecast_t, icecast_exec_t)
|
|
Jeremy Solt |
584dfa |
|
|
Jeremy Solt |
584dfa |
type icecast_initrc_exec_t;
|
|
Jeremy Solt |
584dfa |
init_script_file(icecast_initrc_exec_t)
|
|
Jeremy Solt |
584dfa |
|
|
Jeremy Solt |
584dfa |
type icecast_var_run_t;
|
|
Jeremy Solt |
584dfa |
files_pid_file(icecast_var_run_t)
|
|
Jeremy Solt |
584dfa |
|
|
Jeremy Solt |
584dfa |
type icecast_log_t;
|
|
Jeremy Solt |
584dfa |
logging_log_file(icecast_log_t)
|
|
Jeremy Solt |
584dfa |
|
|
Jeremy Solt |
584dfa |
########################################
|
|
Jeremy Solt |
584dfa |
#
|
|
Jeremy Solt |
584dfa |
# icecast local policy
|
|
Jeremy Solt |
584dfa |
#
|
|
Jeremy Solt |
584dfa |
|
|
Jeremy Solt |
584dfa |
allow icecast_t self:capability { dac_override setgid setuid sys_nice };
|
|
Jeremy Solt |
584dfa |
allow icecast_t self:process { getsched fork setsched signal };
|
|
Jeremy Solt |
584dfa |
allow icecast_t self:fifo_file rw_fifo_file_perms;
|
|
Jeremy Solt |
584dfa |
allow icecast_t self:unix_stream_socket create_stream_socket_perms;
|
|
Jeremy Solt |
584dfa |
allow icecast_t self:tcp_socket create_stream_socket_perms;
|
|
Jeremy Solt |
584dfa |
|
|
Chris PeBenito |
340af1 |
manage_dirs_pattern(icecast_t, icecast_log_t, icecast_log_t)
|
|
Chris PeBenito |
340af1 |
manage_files_pattern(icecast_t, icecast_log_t, icecast_log_t)
|
|
Jeremy Solt |
584dfa |
logging_log_filetrans(icecast_t, icecast_log_t, { file dir } )
|
|
Jeremy Solt |
584dfa |
|
|
Chris PeBenito |
340af1 |
manage_dirs_pattern(icecast_t, icecast_var_run_t, icecast_var_run_t)
|
|
Chris PeBenito |
340af1 |
manage_files_pattern(icecast_t, icecast_var_run_t, icecast_var_run_t)
|
|
Jeremy Solt |
584dfa |
files_pid_filetrans(icecast_t, icecast_var_run_t, { file dir })
|
|
Jeremy Solt |
584dfa |
|
|
Jeremy Solt |
584dfa |
corenet_tcp_bind_soundd_port(icecast_t)
|
|
Jeremy Solt |
584dfa |
|
|
Jeremy Solt |
584dfa |
# Init script handling
|
|
Jeremy Solt |
584dfa |
domain_use_interactive_fds(icecast_t)
|
|
Jeremy Solt |
584dfa |
|
|
Jeremy Solt |
584dfa |
files_read_etc_files(icecast_t)
|
|
Jeremy Solt |
584dfa |
|
|
Jeremy Solt |
584dfa |
auth_use_nsswitch(icecast_t)
|
|
Jeremy Solt |
584dfa |
|
|
Jeremy Solt |
584dfa |
miscfiles_read_localization(icecast_t)
|
|
Jeremy Solt |
584dfa |
|
|
Jeremy Solt |
584dfa |
sysnet_dns_name_resolve(icecast_t)
|
|
Jeremy Solt |
584dfa |
|
|
Jeremy Solt |
584dfa |
optional_policy(`
|
|
Chris PeBenito |
064d1b |
rtkit_scheduled(icecast_t)
|
|
Jeremy Solt |
584dfa |
')
|