|
Chris PeBenito |
17de1b |
## <summary>Service for handling smart card readers.</summary>
|
|
Chris PeBenito |
d534d3 |
|
|
Chris PeBenito |
d534d3 |
########################################
|
|
Chris PeBenito |
d534d3 |
## <summary>
|
|
Chris PeBenito |
d534d3 |
## Send openct a null signal.
|
|
Chris PeBenito |
d534d3 |
## </summary>
|
|
Chris PeBenito |
d534d3 |
## <param name="domain">
|
|
Chris PeBenito |
d534d3 |
## <summary>
|
|
Chris PeBenito |
d534d3 |
## Domain allowed access.
|
|
Chris PeBenito |
d534d3 |
## </summary>
|
|
Chris PeBenito |
d534d3 |
## </param>
|
|
Chris PeBenito |
d534d3 |
#
|
|
Chris PeBenito |
d534d3 |
interface(`openct_signull',`
|
|
Chris PeBenito |
d534d3 |
gen_require(`
|
|
Chris PeBenito |
d534d3 |
type openct_t;
|
|
Chris PeBenito |
d534d3 |
')
|
|
Chris PeBenito |
d534d3 |
|
|
Chris PeBenito |
d534d3 |
allow $1 openct_t:process signull;
|
|
Chris PeBenito |
d534d3 |
')
|
|
Chris PeBenito |
d534d3 |
|
|
Chris PeBenito |
d534d3 |
########################################
|
|
Chris PeBenito |
d534d3 |
## <summary>
|
|
Chris PeBenito |
d534d3 |
## Execute openct in the caller domain.
|
|
Chris PeBenito |
d534d3 |
## </summary>
|
|
Chris PeBenito |
d534d3 |
## <param name="domain">
|
|
Chris PeBenito |
d534d3 |
## <summary>
|
|
Chris PeBenito |
d534d3 |
## Domain allowed access.
|
|
Chris PeBenito |
d534d3 |
## </summary>
|
|
Chris PeBenito |
d534d3 |
## </param>
|
|
Chris PeBenito |
d534d3 |
#
|
|
Chris PeBenito |
d534d3 |
interface(`openct_exec',`
|
|
Chris PeBenito |
d534d3 |
gen_require(`
|
|
Chris PeBenito |
d534d3 |
type openct_t, openct_exec_t;
|
|
Chris PeBenito |
d534d3 |
')
|
|
Chris PeBenito |
d534d3 |
|
|
Chris PeBenito |
d534d3 |
corecmd_search_bin($1)
|
|
Chris PeBenito |
0bfccd |
can_exec($1, openct_exec_t)
|
|
Chris PeBenito |
d534d3 |
')
|
|
Chris PeBenito |
d534d3 |
|
|
Chris PeBenito |
d534d3 |
########################################
|
|
Chris PeBenito |
d534d3 |
## <summary>
|
|
Chris PeBenito |
d534d3 |
## Execute a domain transition to run openct.
|
|
Chris PeBenito |
d534d3 |
## </summary>
|
|
Chris PeBenito |
d534d3 |
## <param name="domain">
|
|
Chris PeBenito |
d534d3 |
## <summary>
|
|
Chris PeBenito |
d534d3 |
## Domain allowed to transition.
|
|
Chris PeBenito |
d534d3 |
## </summary>
|
|
Chris PeBenito |
d534d3 |
## </param>
|
|
Chris PeBenito |
d534d3 |
#
|
|
Chris PeBenito |
d534d3 |
interface(`openct_domtrans',`
|
|
Chris PeBenito |
d534d3 |
gen_require(`
|
|
Chris PeBenito |
d534d3 |
type openct_t, openct_exec_t;
|
|
Chris PeBenito |
d534d3 |
')
|
|
Chris PeBenito |
d534d3 |
|
|
Chris PeBenito |
d534d3 |
corecmd_search_bin($1)
|
|
Chris PeBenito |
0bfccd |
domtrans_pattern($1, openct_exec_t, openct_t)
|
|
Chris PeBenito |
d534d3 |
')
|
|
Chris PeBenito |
d534d3 |
|
|
Chris PeBenito |
d534d3 |
########################################
|
|
Chris PeBenito |
d534d3 |
## <summary>
|
|
Chris PeBenito |
d534d3 |
## Read openct PID files.
|
|
Chris PeBenito |
d534d3 |
## </summary>
|
|
Chris PeBenito |
d534d3 |
## <param name="domain">
|
|
Chris PeBenito |
d534d3 |
## <summary>
|
|
Chris PeBenito |
d534d3 |
## Domain allowed access.
|
|
Chris PeBenito |
d534d3 |
## </summary>
|
|
Chris PeBenito |
d534d3 |
## </param>
|
|
Chris PeBenito |
d534d3 |
#
|
|
Chris PeBenito |
d534d3 |
interface(`openct_read_pid_files',`
|
|
Chris PeBenito |
d534d3 |
gen_require(`
|
|
Chris PeBenito |
d534d3 |
type openct_var_run_t;
|
|
Chris PeBenito |
d534d3 |
')
|
|
Chris PeBenito |
d534d3 |
|
|
Chris PeBenito |
d534d3 |
files_search_pids($1)
|
|
Chris PeBenito |
0bfccd |
read_files_pattern($1, openct_var_run_t, openct_var_run_t)
|
|
Chris PeBenito |
d534d3 |
')
|
|
Chris PeBenito |
d534d3 |
|
|
Chris PeBenito |
d534d3 |
########################################
|
|
Chris PeBenito |
d534d3 |
## <summary>
|
|
Chris PeBenito |
d534d3 |
## Connect to openct over an unix stream socket.
|
|
Chris PeBenito |
d534d3 |
## </summary>
|
|
Chris PeBenito |
d534d3 |
## <param name="domain">
|
|
Chris PeBenito |
d534d3 |
## <summary>
|
|
Chris PeBenito |
d534d3 |
## Domain allowed access.
|
|
Chris PeBenito |
d534d3 |
## </summary>
|
|
Chris PeBenito |
d534d3 |
## </param>
|
|
Chris PeBenito |
d534d3 |
#
|
|
Chris PeBenito |
d534d3 |
interface(`openct_stream_connect',`
|
|
Chris PeBenito |
d534d3 |
gen_require(`
|
|
Chris PeBenito |
d534d3 |
type openct_t, openct_var_run_t;
|
|
Chris PeBenito |
d534d3 |
')
|
|
Chris PeBenito |
d534d3 |
|
|
Chris PeBenito |
d534d3 |
files_search_pids($1)
|
|
Chris PeBenito |
0bfccd |
stream_connect_pattern($1, openct_var_run_t, openct_var_run_t, openct_t)
|
|
Chris PeBenito |
d534d3 |
')
|