Blame policy/modules/system/iscsi.if
|
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>
|
|
Chris PeBenito |
0f982d |
## The type of the process performing this action.
|
|
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 |
')
|