## rhev polic module contains policies for rhev apps
#####################################
##
## Execute rhev-agentd in the rhev_agentd domain.
##
##
##
## Domain allowed access.
##
##
#
interface(`rhev_domtrans_agentd',`
gen_require(`
type rhev_agentd_t, rhev_agentd_exec_t;
')
domtrans_pattern($1, rhev_agentd_exec_t, rhev_agentd_t)
')
####################################
##
## Read rhev-agentd PID files.
##
##
##
## Domain allowed access.
##
##
#
interface(`rhev_read_pid_files_agentd',`
gen_require(`
type rhev_agentd_var_run_t;
')
files_search_pids($1)
read_files_pattern($1, rhev_agentd_var_run_t, rhev_agentd_var_run_t)
')
#####################################
##
## Connect to rhev_agentd over a unix domain
## stream socket.
##
##
##
## Domain allowed access.
##
##
#
interface(`rhev_stream_connect_agentd',`
gen_require(`
type rhev_agentd_var_run_t, rhev_agentd_t;
')
files_search_pids($1)
stream_connect_pattern($1, rhev_agentd_var_run_t, rhev_agentd_var_run_t, rhev_agentd_t)
')
######################################
##
## Send sigchld to rhev-agentd
##
##
##
## Domain allowed access
##
##
#
interface(`rhev_sigchld_agentd',`
gen_require(`
type rhev_agentd_t;
')
allow $1 rhev_agentd_t:process sigchld;
')