|
Chris PeBenito |
6b19be |
## <summary>PCSC smart card service</summary>
|
|
Chris PeBenito |
6b19be |
|
|
Chris PeBenito |
6b19be |
########################################
|
|
Chris PeBenito |
6b19be |
## <summary>
|
|
Chris PeBenito |
6b19be |
## Execute a domain transition to run pcscd.
|
|
Chris PeBenito |
6b19be |
## </summary>
|
|
Chris PeBenito |
6b19be |
## <param name="domain">
|
|
Dominick Grift |
1976dd |
## <summary>
|
|
Chris PeBenito |
6b19be |
## Domain allowed to transition.
|
|
Dominick Grift |
1976dd |
## </summary>
|
|
Chris PeBenito |
6b19be |
## </param>
|
|
Chris PeBenito |
6b19be |
#
|
|
Chris PeBenito |
6b19be |
interface(`pcscd_domtrans',`
|
|
Chris PeBenito |
6b19be |
gen_require(`
|
|
Chris PeBenito |
6b19be |
type pcscd_t, pcscd_exec_t;
|
|
Chris PeBenito |
6b19be |
')
|
|
Chris PeBenito |
6b19be |
|
|
Chris PeBenito |
0bfccd |
domtrans_pattern($1, pcscd_exec_t, pcscd_t)
|
|
Chris PeBenito |
6b19be |
')
|
|
Chris PeBenito |
6b19be |
|
|
Chris PeBenito |
6b19be |
########################################
|
|
Chris PeBenito |
6b19be |
## <summary>
|
|
Chris PeBenito |
6b19be |
## Read pcscd pub files.
|
|
Chris PeBenito |
6b19be |
## </summary>
|
|
Chris PeBenito |
6b19be |
## <param name="domain">
|
|
Chris PeBenito |
6b19be |
## <summary>
|
|
Chris PeBenito |
6b19be |
## Domain allowed access.
|
|
Chris PeBenito |
6b19be |
## </summary>
|
|
Chris PeBenito |
6b19be |
## </param>
|
|
Chris PeBenito |
6b19be |
#
|
|
Chris PeBenito |
6b19be |
interface(`pcscd_read_pub_files',`
|
|
Chris PeBenito |
6b19be |
gen_require(`
|
|
Chris PeBenito |
6b19be |
type pcscd_var_run_t;
|
|
Chris PeBenito |
6b19be |
')
|
|
Chris PeBenito |
6b19be |
|
|
Chris PeBenito |
6b19be |
files_search_pids($1)
|
|
Chris PeBenito |
6b19be |
allow $1 pcscd_var_run_t:file read_file_perms;
|
|
Chris PeBenito |
6b19be |
')
|
|
Chris PeBenito |
6b19be |
|
|
Chris PeBenito |
6b19be |
########################################
|
|
Chris PeBenito |
6b19be |
## <summary>
|
|
Jeremy Solt |
795b73 |
## Manage pcscd pub files.
|
|
Jeremy Solt |
795b73 |
## </summary>
|
|
Jeremy Solt |
795b73 |
## <param name="domain">
|
|
Jeremy Solt |
795b73 |
## <summary>
|
|
Jeremy Solt |
795b73 |
## Domain allowed access.
|
|
Jeremy Solt |
795b73 |
## </summary>
|
|
Jeremy Solt |
795b73 |
## </param>
|
|
Jeremy Solt |
795b73 |
#
|
|
Jeremy Solt |
795b73 |
interface(`pcscd_manage_pub_files',`
|
|
Jeremy Solt |
795b73 |
gen_require(`
|
|
Jeremy Solt |
795b73 |
type pcscd_var_run_t;
|
|
Jeremy Solt |
795b73 |
')
|
|
Jeremy Solt |
795b73 |
|
|
Jeremy Solt |
795b73 |
files_search_pids($1)
|
|
Jeremy Solt |
795b73 |
manage_files_pattern($1, pcscd_var_run_t, pcscd_var_run_t)
|
|
Jeremy Solt |
795b73 |
')
|
|
Jeremy Solt |
795b73 |
|
|
Jeremy Solt |
795b73 |
########################################
|
|
Jeremy Solt |
795b73 |
## <summary>
|
|
Jeremy Solt |
795b73 |
## Manage pcscd pub fifo files.
|
|
Jeremy Solt |
795b73 |
## </summary>
|
|
Jeremy Solt |
795b73 |
## <param name="domain">
|
|
Jeremy Solt |
795b73 |
## <summary>
|
|
Jeremy Solt |
795b73 |
## Domain allowed access.
|
|
Jeremy Solt |
795b73 |
## </summary>
|
|
Jeremy Solt |
795b73 |
## </param>
|
|
Jeremy Solt |
795b73 |
#
|
|
Jeremy Solt |
795b73 |
interface(`pcscd_manage_pub_pipes',`
|
|
Jeremy Solt |
795b73 |
gen_require(`
|
|
Jeremy Solt |
795b73 |
type pcscd_var_run_t;
|
|
Jeremy Solt |
795b73 |
')
|
|
Jeremy Solt |
795b73 |
|
|
Jeremy Solt |
795b73 |
files_search_pids($1)
|
|
Jeremy Solt |
795b73 |
manage_fifo_files_pattern($1, pcscd_var_run_t, pcscd_var_run_t)
|
|
Jeremy Solt |
795b73 |
')
|
|
Jeremy Solt |
795b73 |
|
|
Jeremy Solt |
795b73 |
########################################
|
|
Jeremy Solt |
795b73 |
## <summary>
|
|
Chris PeBenito |
6b19be |
## Connect to pcscd over an unix stream socket.
|
|
Chris PeBenito |
6b19be |
## </summary>
|
|
Chris PeBenito |
6b19be |
## <param name="domain">
|
|
Chris PeBenito |
6b19be |
## <summary>
|
|
Chris PeBenito |
6b19be |
## Domain allowed access.
|
|
Chris PeBenito |
6b19be |
## </summary>
|
|
Chris PeBenito |
6b19be |
## </param>
|
|
Chris PeBenito |
6b19be |
#
|
|
Chris PeBenito |
6b19be |
interface(`pcscd_stream_connect',`
|
|
Chris PeBenito |
6b19be |
gen_require(`
|
|
Chris PeBenito |
6b19be |
type pcscd_t, pcscd_var_run_t;
|
|
Chris PeBenito |
6b19be |
')
|
|
Chris PeBenito |
6b19be |
|
|
Chris PeBenito |
6b19be |
files_search_pids($1)
|
|
Chris PeBenito |
6df09c |
stream_connect_pattern($1, pcscd_var_run_t, pcscd_var_run_t, pcscd_t)
|
|
Chris PeBenito |
6b19be |
')
|