## 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;
')
########################################
##
## 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)
allow $1 pcscd_var_run_t:sock_file write;
allow $1 pcscd_t:unix_stream_socket connectto;
')