|
Chris PeBenito |
a3cf80 |
## <summary>Xen hypervisor</summary>
|
|
Chris PeBenito |
a3cf80 |
|
|
Chris PeBenito |
a3cf80 |
########################################
|
|
Chris PeBenito |
a3cf80 |
## <summary>
|
|
Chris PeBenito |
a3cf80 |
## Execute a domain transition to run xend.
|
|
Chris PeBenito |
a3cf80 |
## </summary>
|
|
Chris PeBenito |
a3cf80 |
## <param name="domain">
|
|
Chris PeBenito |
a3cf80 |
## <summary>
|
|
Chris PeBenito |
a3cf80 |
## Domain allowed to transition.
|
|
Chris PeBenito |
a3cf80 |
## </summary>
|
|
Chris PeBenito |
a3cf80 |
## </param>
|
|
Chris PeBenito |
a3cf80 |
#
|
|
Chris PeBenito |
a3cf80 |
interface(`xen_domtrans',`
|
|
Chris PeBenito |
a3cf80 |
gen_requires(`
|
|
Chris PeBenito |
a3cf80 |
type xend_t, xend_exec_t;
|
|
Chris PeBenito |
a3cf80 |
')
|
|
Chris PeBenito |
a3cf80 |
|
|
Chris PeBenito |
a3cf80 |
domain_auto_trans($1,xend_exec_t,xend_t)
|
|
Chris PeBenito |
a3cf80 |
|
|
Chris PeBenito |
a3cf80 |
allow $1 xend_t:fd use;
|
|
Chris PeBenito |
a3cf80 |
allow xend_t $1:fd use;
|
|
Chris PeBenito |
a3cf80 |
allow xend_t $1:fifo_file rw_file_perms;
|
|
Chris PeBenito |
a3cf80 |
allow xend_t $1:process sigchld;
|
|
Chris PeBenito |
a3cf80 |
')
|
|
Chris PeBenito |
a3cf80 |
|
|
Chris PeBenito |
a3cf80 |
|
|
Chris PeBenito |
a3cf80 |
########################################
|
|
Chris PeBenito |
a3cf80 |
## <summary>
|
|
Chris PeBenito |
a3cf80 |
## Allow the specified domain to append
|
|
Chris PeBenito |
a3cf80 |
## xend log files.
|
|
Chris PeBenito |
a3cf80 |
## </summary>
|
|
Chris PeBenito |
a3cf80 |
## <param name="domain">
|
|
Chris PeBenito |
a3cf80 |
## <summary>
|
|
Chris PeBenito |
a3cf80 |
## Domain allowed to transition.
|
|
Chris PeBenito |
a3cf80 |
## </summary>
|
|
Chris PeBenito |
a3cf80 |
## </param>
|
|
Chris PeBenito |
a3cf80 |
#
|
|
Chris PeBenito |
a3cf80 |
interface(`xen_append_log',`
|
|
Chris PeBenito |
a3cf80 |
gen_require(`
|
|
Chris PeBenito |
a3cf80 |
type var_log_t, xend_var_log_t;
|
|
Chris PeBenito |
a3cf80 |
')
|
|
Chris PeBenito |
a3cf80 |
|
|
Chris PeBenito |
a3cf80 |
logging_search_logs($1)
|
|
Chris PeBenito |
a3cf80 |
allow $1 xend_var_log_t:file { getattr append };
|
|
Chris PeBenito |
a3cf80 |
dontaudit $1 xend_var_log_t:file write;
|
|
Chris PeBenito |
a3cf80 |
')
|
|
Chris PeBenito |
a3cf80 |
|
|
Chris PeBenito |
a3cf80 |
########################################
|
|
Chris PeBenito |
a3cf80 |
## <summary>
|
|
Chris PeBenito |
a3cf80 |
## Connect to xenstored over an unix stream socket.
|
|
Chris PeBenito |
a3cf80 |
## </summary>
|
|
Chris PeBenito |
a3cf80 |
## <param name="domain">
|
|
Chris PeBenito |
a3cf80 |
## <summary>
|
|
Chris PeBenito |
a3cf80 |
## Domain allowed access.
|
|
Chris PeBenito |
a3cf80 |
## </summary>
|
|
Chris PeBenito |
a3cf80 |
## </param>
|
|
Chris PeBenito |
a3cf80 |
#
|
|
Chris PeBenito |
a3cf80 |
interface(`xen_stream_connect_xenstore',`
|
|
Chris PeBenito |
a3cf80 |
gen_require(`
|
|
Chris PeBenito |
a3cf80 |
type xenstored_t, xenstored_var_run_t;
|
|
Chris PeBenito |
a3cf80 |
')
|
|
Chris PeBenito |
a3cf80 |
|
|
Chris PeBenito |
a3cf80 |
files_search_pids($1)
|
|
Chris PeBenito |
a3cf80 |
allow $1 xenstored_var_run_t:dir search;
|
|
Chris PeBenito |
a3cf80 |
allow $1 xenstored_var_run_t:sock_file { getattr write };
|
|
Chris PeBenito |
a3cf80 |
allow $1 xenstored_t:unix_stream_socket connectto;
|
|
Chris PeBenito |
a3cf80 |
')
|