Oreon-Lime-R2/selinux-policy/selinux-policy-d9f4a2b/selinux-policy-d9f4a2bbeb91fd95d0c35a90936efb9ea99d2455/policy/modules/contrib/rhev.if

77 lines
1.7 KiB
Text
Raw Normal View History

## <summary>rhev polic module contains policies for rhev apps</summary>
#####################################
## <summary>
## Execute rhev-agentd in the rhev_agentd domain.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`rhev_domtrans_agentd',`
gen_require(`
type rhev_agentd_t, rhev_agentd_exec_t;
')
domtrans_pattern($1, rhev_agentd_exec_t, rhev_agentd_t)
')
####################################
## <summary>
## Read rhev-agentd PID files.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
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)
')
#####################################
## <summary>
## Connect to rhev_agentd over a unix domain
## stream socket.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
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)
')
######################################
## <summary>
## Send sigchld to rhev-agentd
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access
## </summary>
## </param>
#
interface(`rhev_sigchld_agentd',`
gen_require(`
type rhev_agentd_t;
')
allow $1 rhev_agentd_t:process sigchld;
')