|
Chris PeBenito |
d9845a |
## <summary>Establish connections to iSCSI devices</summary>
|
|
Chris PeBenito |
d9845a |
|
|
Chris PeBenito |
d9845a |
########################################
|
|
Chris PeBenito |
d9845a |
## <summary>
|
|
Chris PeBenito |
d9845a |
## Execute a domain transition to run iscsid.
|
|
Chris PeBenito |
d9845a |
## </summary>
|
|
Chris PeBenito |
d9845a |
## <param name="domain">
|
|
Chris PeBenito |
d9845a |
## <summary>
|
|
Chris PeBenito |
d9845a |
## Domain allowed to transition.
|
|
Chris PeBenito |
d9845a |
## </summary>
|
|
Chris PeBenito |
d9845a |
## </param>
|
|
Chris PeBenito |
d9845a |
#
|
|
Chris PeBenito |
d9845a |
interface(`iscsid_domtrans',`
|
|
Chris PeBenito |
d9845a |
gen_require(`
|
|
Chris PeBenito |
d9845a |
type iscsid_t, iscsid_exec_t;
|
|
Chris PeBenito |
d9845a |
')
|
|
Chris PeBenito |
d9845a |
|
|
Chris PeBenito |
3f67f7 |
domtrans_pattern($1, iscsid_exec_t, iscsid_t)
|
|
Chris PeBenito |
d9845a |
')
|
|
Chris PeBenito |
0f982d |
|
|
Chris PeBenito |
0f982d |
########################################
|
|
Chris PeBenito |
0f982d |
## <summary>
|
|
Chris PeBenito |
0f982d |
## Connect to ISCSI using a unix domain stream socket.
|
|
Chris PeBenito |
0f982d |
## </summary>
|
|
Chris PeBenito |
0f982d |
## <param name="domain">
|
|
Chris PeBenito |
0f982d |
## <summary>
|
|
Dominick Grift |
a0546c |
## Domain allowed access.
|
|
Chris PeBenito |
0f982d |
## </summary>
|
|
Chris PeBenito |
0f982d |
## </param>
|
|
Chris PeBenito |
0f982d |
#
|
|
Chris PeBenito |
0f982d |
interface(`iscsi_stream_connect',`
|
|
Chris PeBenito |
0f982d |
gen_require(`
|
|
Chris PeBenito |
0f982d |
type iscsid_t, iscsi_var_lib_t;
|
|
Chris PeBenito |
0f982d |
')
|
|
Chris PeBenito |
0f982d |
|
|
Chris PeBenito |
0f982d |
files_search_pids($1)
|
|
Chris PeBenito |
0f982d |
stream_connect_pattern($1, iscsi_var_lib_t, iscsi_var_lib_t, iscsid_t)
|
|
Chris PeBenito |
0f982d |
')
|
|
Chris PeBenito |
0f982d |
|
|
Chris PeBenito |
0f982d |
########################################
|
|
Chris PeBenito |
0f982d |
## <summary>
|
|
Chris PeBenito |
0f982d |
## Read iscsi lib files.
|
|
Chris PeBenito |
0f982d |
## </summary>
|
|
Chris PeBenito |
0f982d |
## <param name="domain">
|
|
Chris PeBenito |
0f982d |
## <summary>
|
|
Chris PeBenito |
0f982d |
## Domain allowed access.
|
|
Chris PeBenito |
0f982d |
## </summary>
|
|
Chris PeBenito |
0f982d |
## </param>
|
|
Chris PeBenito |
0f982d |
#
|
|
Chris PeBenito |
0f982d |
interface(`iscsi_read_lib_files',`
|
|
Chris PeBenito |
0f982d |
gen_require(`
|
|
Chris PeBenito |
0f982d |
type iscsi_var_lib_t;
|
|
Chris PeBenito |
0f982d |
')
|
|
Chris PeBenito |
0f982d |
|
|
Chris PeBenito |
0f982d |
read_files_pattern($1, iscsi_var_lib_t, iscsi_var_lib_t)
|
|
Chris PeBenito |
0f982d |
allow $1 iscsi_var_lib_t:dir list_dir_perms;
|
|
Chris PeBenito |
0f982d |
files_search_var_lib($1)
|
|
Chris PeBenito |
0f982d |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
########################################
|
|
Dan Walsh |
3eaa99 |
## <summary>
|
|
Dan Walsh |
3eaa99 |
## Manage iscsid sempaphores.
|
|
Dan Walsh |
3eaa99 |
## </summary>
|
|
Dan Walsh |
3eaa99 |
## <param name="domain">
|
|
Dan Walsh |
3eaa99 |
## <summary>
|
|
Dan Walsh |
3eaa99 |
## Domain allowed access.
|
|
Dan Walsh |
3eaa99 |
## </summary>
|
|
Dan Walsh |
3eaa99 |
## </param>
|
|
Dan Walsh |
3eaa99 |
#
|
|
Dan Walsh |
3eaa99 |
interface(`iscsi_manage_semaphores',`
|
|
Dan Walsh |
3eaa99 |
gen_require(`
|
|
Dan Walsh |
3eaa99 |
type iscsid_t;
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
allow $1 iscsid_t:sem create_sem_perms;
|
|
Dan Walsh |
3eaa99 |
')
|