|
Chris PeBenito |
da3ed0 |
|
|
Chris PeBenito |
05a2e3 |
policy_module(lircd, 1.0.2)
|
|
Chris PeBenito |
da3ed0 |
|
|
Chris PeBenito |
da3ed0 |
########################################
|
|
Chris PeBenito |
da3ed0 |
#
|
|
Chris PeBenito |
da3ed0 |
# Declarations
|
|
Chris PeBenito |
da3ed0 |
#
|
|
Chris PeBenito |
da3ed0 |
|
|
Chris PeBenito |
da3ed0 |
type lircd_t;
|
|
Chris PeBenito |
da3ed0 |
type lircd_exec_t;
|
|
Chris PeBenito |
da3ed0 |
init_daemon_domain(lircd_t, lircd_exec_t)
|
|
Chris PeBenito |
da3ed0 |
|
|
Chris PeBenito |
da3ed0 |
type lircd_initrc_exec_t;
|
|
Chris PeBenito |
da3ed0 |
init_script_file(lircd_initrc_exec_t)
|
|
Chris PeBenito |
da3ed0 |
|
|
Chris PeBenito |
da3ed0 |
type lircd_etc_t;
|
|
Chris PeBenito |
da3ed0 |
files_type(lircd_etc_t)
|
|
Chris PeBenito |
da3ed0 |
|
|
Chris PeBenito |
8a8b24 |
type lircd_var_run_t alias lircd_sock_t;
|
|
Chris PeBenito |
da3ed0 |
files_pid_file(lircd_var_run_t)
|
|
Chris PeBenito |
da3ed0 |
|
|
Chris PeBenito |
da3ed0 |
########################################
|
|
Chris PeBenito |
da3ed0 |
#
|
|
Chris PeBenito |
da3ed0 |
# lircd local policy
|
|
Chris PeBenito |
da3ed0 |
#
|
|
Chris PeBenito |
da3ed0 |
|
|
Chris PeBenito |
05a2e3 |
allow lircd_t self:capability { chown kill sys_admin };
|
|
Chris PeBenito |
05a2e3 |
allow lircd_t self:fifo_file rw_fifo_file_perms;
|
|
Chris PeBenito |
da3ed0 |
allow lircd_t self:unix_dgram_socket create_socket_perms;
|
|
Chris PeBenito |
05a2e3 |
allow lircd_t self:tcp_socket create_stream_socket_perms;
|
|
Chris PeBenito |
da3ed0 |
|
|
Chris PeBenito |
da3ed0 |
# etc file
|
|
Chris PeBenito |
da3ed0 |
read_files_pattern(lircd_t, lircd_etc_t, lircd_etc_t)
|
|
Chris PeBenito |
da3ed0 |
|
|
Chris PeBenito |
da3ed0 |
manage_dirs_pattern(lircd_t, lircd_var_run_t, lircd_var_run_t)
|
|
Chris PeBenito |
da3ed0 |
manage_files_pattern(lircd_t, lircd_var_run_t, lircd_var_run_t)
|
|
Chris PeBenito |
8a8b24 |
manage_sock_files_pattern(lircd_t, lircd_var_run_t, lircd_var_run_t)
|
|
Chris PeBenito |
da3ed0 |
files_pid_filetrans(lircd_t, lircd_var_run_t, { dir file })
|
|
Chris PeBenito |
da3ed0 |
# /dev/lircd socket
|
|
Chris PeBenito |
8a8b24 |
dev_filetrans(lircd_t, lircd_var_run_t, sock_file)
|
|
Chris PeBenito |
8a8b24 |
|
|
Chris PeBenito |
05a2e3 |
corenet_tcp_sendrecv_generic_if(lircd_t)
|
|
Chris PeBenito |
05a2e3 |
corenet_tcp_bind_generic_node(lircd_t)
|
|
Chris PeBenito |
05a2e3 |
corenet_tcp_bind_lirc_port(lircd_t)
|
|
Chris PeBenito |
05a2e3 |
corenet_tcp_sendrecv_all_ports(lircd_t)
|
|
Chris PeBenito |
05a2e3 |
corenet_tcp_connect_lirc_port(lircd_t)
|
|
Chris PeBenito |
05a2e3 |
|
|
Chris PeBenito |
8a8b24 |
dev_read_generic_usb_dev(lircd_t)
|
|
Chris PeBenito |
05a2e3 |
dev_read_mouse(lircd_t)
|
|
Chris PeBenito |
8a8b24 |
dev_filetrans_lirc(lircd_t)
|
|
Chris PeBenito |
8a8b24 |
dev_rw_lirc(lircd_t)
|
|
Chris PeBenito |
8a8b24 |
dev_rw_input_dev(lircd_t)
|
|
Chris PeBenito |
8a8b24 |
|
|
Chris PeBenito |
8a8b24 |
files_read_etc_files(lircd_t)
|
|
Chris PeBenito |
8a8b24 |
files_list_var(lircd_t)
|
|
Chris PeBenito |
8a8b24 |
files_manage_generic_locks(lircd_t)
|
|
Chris PeBenito |
8a8b24 |
files_read_all_locks(lircd_t)
|
|
Chris PeBenito |
8a8b24 |
|
|
Chris PeBenito |
8a8b24 |
term_use_ptmx(lircd_t)
|
|
Chris PeBenito |
da3ed0 |
|
|
Chris PeBenito |
da3ed0 |
logging_send_syslog_msg(lircd_t)
|
|
Chris PeBenito |
da3ed0 |
|
|
Chris PeBenito |
da3ed0 |
miscfiles_read_localization(lircd_t)
|
|
Chris PeBenito |
05a2e3 |
|
|
Chris PeBenito |
05a2e3 |
sysnet_dns_name_resolve(lircd_t)
|