Chris PeBenito 6b19be
Chris PeBenito 0251df
policy_module(pcscd,1.1.0)
Chris PeBenito 6b19be
Chris PeBenito 6b19be
########################################
Chris PeBenito 6b19be
#
Chris PeBenito 6b19be
# Declarations
Chris PeBenito 6b19be
#
Chris PeBenito 6b19be
Chris PeBenito 6b19be
type pcscd_t;
Chris PeBenito 6b19be
type pcscd_exec_t;
Chris PeBenito 6b19be
domain_type(pcscd_t)
Chris PeBenito 6b19be
init_daemon_domain(pcscd_t, pcscd_exec_t)
Chris PeBenito 6b19be
Chris PeBenito 6b19be
# pid files
Chris PeBenito 6b19be
type pcscd_var_run_t;
Chris PeBenito 6b19be
files_pid_file(pcscd_var_run_t)
Chris PeBenito 6b19be
Chris PeBenito 6b19be
########################################
Chris PeBenito 6b19be
#
Chris PeBenito 6b19be
# pcscd local policy
Chris PeBenito 6b19be
#
Chris PeBenito 6b19be
Chris PeBenito 6b19be
allow pcscd_t self:capability { dac_override dac_read_search };
Chris PeBenito 6b19be
allow pcscd_t self:fifo_file { read write };
Chris PeBenito 6b19be
allow pcscd_t self:unix_stream_socket create_stream_socket_perms;
Chris PeBenito 6b19be
allow pcscd_t self:unix_dgram_socket create_socket_perms;
Chris PeBenito 6b19be
allow pcscd_t self:tcp_socket create_stream_socket_perms;
Chris PeBenito 6b19be
Chris PeBenito 6b19be
manage_files_pattern(pcscd_t,pcscd_var_run_t,pcscd_var_run_t)
Chris PeBenito 6b19be
manage_sock_files_pattern(pcscd_t,pcscd_var_run_t,pcscd_var_run_t)
Chris PeBenito 6b19be
files_pid_filetrans(pcscd_t,pcscd_var_run_t, { file sock_file })
Chris PeBenito 6b19be
Chris PeBenito 6b19be
corenet_tcp_sendrecv_all_if(pcscd_t)
Chris PeBenito 6b19be
corenet_tcp_sendrecv_all_nodes(pcscd_t)
Chris PeBenito 6b19be
corenet_tcp_sendrecv_all_ports(pcscd_t)
Chris PeBenito 6b19be
corenet_non_ipsec_sendrecv(pcscd_t)
Chris PeBenito 6b19be
corenet_tcp_connect_http_port(pcscd_t)
Chris PeBenito 6b19be
Chris PeBenito 6b19be
dev_rw_generic_usb_dev(pcscd_t)
Chris PeBenito 6b19be
dev_rw_usbfs(pcscd_t)
Chris PeBenito 6b19be
dev_search_sysfs(pcscd_t)
Chris PeBenito 6b19be
Chris PeBenito 6b19be
files_read_etc_files(pcscd_t)
Chris PeBenito 6b19be
files_read_etc_runtime_files(pcscd_t)
Chris PeBenito 6b19be
Chris PeBenito 6b19be
term_dontaudit_getattr_pty_dirs(pcscd_t)
Chris PeBenito 6b19be
Chris PeBenito 6b19be
libs_use_ld_so(pcscd_t)
Chris PeBenito 6b19be
libs_use_shared_libs(pcscd_t)
Chris PeBenito 6b19be
Chris PeBenito 6b19be
locallogin_use_fds(pcscd_t)
Chris PeBenito 6b19be
Chris PeBenito 6b19be
logging_send_syslog_msg(pcscd_t)
Chris PeBenito 6b19be
Chris PeBenito 6b19be
miscfiles_read_localization(pcscd_t)
Chris PeBenito 6b19be
Chris PeBenito 6b19be
sysnet_dns_name_resolve(pcscd_t)
Chris PeBenito 6b19be
Chris PeBenito 6b19be
ifdef(`targeted_policy',`
Chris PeBenito 6b19be
	term_dontaudit_use_generic_ptys(pcscd_t)
Chris PeBenito 6b19be
	term_dontaudit_use_unallocated_ttys(pcscd_t)
Chris PeBenito 6b19be
')
Chris PeBenito 6b19be
Chris PeBenito 6b19be
optional_policy(`
Chris PeBenito 6b19be
	rpm_use_script_fds(pcscd_t)
Chris PeBenito 6b19be
')