## PCSC smart card service
########################################
##
## Execute a domain transition to run pcscd.
##
##
##
## Domain allowed to transition.
##
##
#
interface(`pcscd_domtrans',`
gen_require(`
type pcscd_t, pcscd_exec_t;
')
domtrans_pattern($1, pcscd_exec_t, pcscd_t)
')
########################################
##
## Read pcscd pub files.
##
##
##
## Domain allowed access.
##
##
#
interface(`pcscd_read_pub_files',`
gen_require(`
type pcscd_var_run_t;
')
files_search_pids($1)
allow $1 pcscd_var_run_t:file read_file_perms;
')
########################################
##
## Manage pcscd pub files.
##
##
##
## Domain allowed access.
##
##
#
interface(`pcscd_manage_pub_files',`
gen_require(`
type pcscd_var_run_t;
')
files_search_pids($1)
manage_files_pattern($1, pcscd_var_run_t, pcscd_var_run_t)
')
########################################
##
## Manage pcscd pub fifo files.
##
##
##
## Domain allowed access.
##
##
#
interface(`pcscd_manage_pub_pipes',`
gen_require(`
type pcscd_var_run_t;
')
files_search_pids($1)
manage_fifo_files_pattern($1, pcscd_var_run_t, pcscd_var_run_t)
')
########################################
##
## Connect to pcscd over an unix stream socket.
##
##
##
## Domain allowed access.
##
##
#
interface(`pcscd_stream_connect',`
gen_require(`
type pcscd_t, pcscd_var_run_t;
')
files_search_pids($1)
stream_connect_pattern($1, pcscd_var_run_t, pcscd_var_run_t, pcscd_t)
')