Minor tweaks on icecast.
This commit is contained in:
parent
584dfaca45
commit
340af119b0
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
/etc/rc\.d/init\.d/icecast -- gen_context(system_u:object_r:icecast_initrc_exec_t,s0)
|
/etc/rc\.d/init\.d/icecast -- gen_context(system_u:object_r:icecast_initrc_exec_t,s0)
|
||||||
|
|
||||||
/usr/bin/icecast -- gen_context(system_u:object_r:icecast_exec_t,s0)
|
/usr/bin/icecast -- gen_context(system_u:object_r:icecast_exec_t,s0)
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
## <summary> ShoutCast compatible streaming media server</summary>
|
## <summary> ShoutCast compatible streaming media server</summary>
|
||||||
|
|
||||||
########################################
|
########################################
|
||||||
@ -19,6 +18,24 @@ interface(`icecast_domtrans',`
|
|||||||
domtrans_pattern($1, icecast_exec_t, icecast_t)
|
domtrans_pattern($1, icecast_exec_t, icecast_t)
|
||||||
')
|
')
|
||||||
|
|
||||||
|
########################################
|
||||||
|
## <summary>
|
||||||
|
## Allow domain signal icecast
|
||||||
|
## </summary>
|
||||||
|
## <param name="domain">
|
||||||
|
## <summary>
|
||||||
|
## Domain allowed access.
|
||||||
|
## </summary>
|
||||||
|
## </param>
|
||||||
|
#
|
||||||
|
interface(`icecast_signal',`
|
||||||
|
gen_require(`
|
||||||
|
type icecast_t;
|
||||||
|
')
|
||||||
|
|
||||||
|
allow $1 icecast_t:process signal;
|
||||||
|
')
|
||||||
|
|
||||||
########################################
|
########################################
|
||||||
## <summary>
|
## <summary>
|
||||||
## Execute icecast server in the icecast domain.
|
## Execute icecast server in the icecast domain.
|
||||||
@ -131,27 +148,7 @@ interface(`icecast_manage_log',`
|
|||||||
')
|
')
|
||||||
|
|
||||||
logging_search_logs($1)
|
logging_search_logs($1)
|
||||||
manage_dirs_pattern($1, icecast_log_t, icecast_log_t)
|
|
||||||
manage_files_pattern($1, icecast_log_t, icecast_log_t)
|
manage_files_pattern($1, icecast_log_t, icecast_log_t)
|
||||||
manage_lnk_files_pattern($1, icecast_log_t, icecast_log_t)
|
|
||||||
')
|
|
||||||
|
|
||||||
########################################
|
|
||||||
## <summary>
|
|
||||||
## Allow domain signal icecast
|
|
||||||
## </summary>
|
|
||||||
## <param name="domain">
|
|
||||||
## <summary>
|
|
||||||
## Domain allowed access.
|
|
||||||
## </summary>
|
|
||||||
## </param>
|
|
||||||
#
|
|
||||||
interface(`icecast_signal',`
|
|
||||||
gen_require(`
|
|
||||||
type icecast_t;
|
|
||||||
')
|
|
||||||
|
|
||||||
allow $1 icecast_t:process signal;
|
|
||||||
')
|
')
|
||||||
|
|
||||||
########################################
|
########################################
|
||||||
@ -176,8 +173,7 @@ interface(`icecast_admin',`
|
|||||||
type icecast_t, icecast_initrc_exec_t;
|
type icecast_t, icecast_initrc_exec_t;
|
||||||
')
|
')
|
||||||
|
|
||||||
allow $1 icecast_t:process { ptrace signal_perms getattr };
|
ps_process_pattern($1, icecast_t)
|
||||||
read_files_pattern($1, icecast_t, icecast_t)
|
|
||||||
|
|
||||||
# Allow icecast_t to restart the apache service
|
# Allow icecast_t to restart the apache service
|
||||||
icecast_initrc_domtrans($1)
|
icecast_initrc_domtrans($1)
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
policy_module(icecast,1.0.0)
|
|
||||||
|
policy_module(icecast, 1.0.0)
|
||||||
|
|
||||||
########################################
|
########################################
|
||||||
#
|
#
|
||||||
@ -25,8 +26,6 @@ logging_log_file(icecast_log_t)
|
|||||||
|
|
||||||
allow icecast_t self:capability { dac_override setgid setuid sys_nice };
|
allow icecast_t self:capability { dac_override setgid setuid sys_nice };
|
||||||
allow icecast_t self:process { getsched fork setsched signal };
|
allow icecast_t self:process { getsched fork setsched signal };
|
||||||
|
|
||||||
# internal communication is often done using fifo and unix sockets.
|
|
||||||
allow icecast_t self:fifo_file rw_fifo_file_perms;
|
allow icecast_t self:fifo_file rw_fifo_file_perms;
|
||||||
allow icecast_t self:unix_stream_socket create_stream_socket_perms;
|
allow icecast_t self:unix_stream_socket create_stream_socket_perms;
|
||||||
allow icecast_t self:tcp_socket create_stream_socket_perms;
|
allow icecast_t self:tcp_socket create_stream_socket_perms;
|
||||||
|
Loading…
Reference in New Issue
Block a user