Blame policy/modules/services/lircd.te
|
Chris PeBenito |
da3ed0 |
|
|
Chris PeBenito |
da3ed0 |
policy_module(lircd, 1.0.0)
|
|
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 |
da3ed0 |
type lircd_var_run_t;
|
|
Chris PeBenito |
da3ed0 |
files_pid_file(lircd_var_run_t)
|
|
Chris PeBenito |
da3ed0 |
|
|
Chris PeBenito |
da3ed0 |
# type for lircd /dev/ sock file
|
|
Chris PeBenito |
da3ed0 |
type lircd_sock_t;
|
|
Chris PeBenito |
da3ed0 |
files_type(lircd_sock_t)
|
|
Chris PeBenito |
da3ed0 |
|
|
Chris PeBenito |
da3ed0 |
########################################
|
|
Chris PeBenito |
da3ed0 |
#
|
|
Chris PeBenito |
da3ed0 |
# lircd local policy
|
|
Chris PeBenito |
da3ed0 |
#
|
|
Chris PeBenito |
da3ed0 |
|
|
Chris PeBenito |
da3ed0 |
allow lircd_t self:process signal;
|
|
Chris PeBenito |
da3ed0 |
allow lircd_t self:unix_dgram_socket create_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 |
# pid file
|
|
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 |
da3ed0 |
files_pid_filetrans(lircd_t, lircd_var_run_t, { dir file })
|
|
Chris PeBenito |
da3ed0 |
|
|
Chris PeBenito |
da3ed0 |
# /dev/lircd socket
|
|
Chris PeBenito |
da3ed0 |
manage_sock_files_pattern(lircd_t, lircd_sock_t, lircd_sock_t)
|
|
Chris PeBenito |
da3ed0 |
dev_filetrans(lircd_t, lircd_sock_t, sock_file )
|
|
Chris PeBenito |
da3ed0 |
|
|
Chris PeBenito |
da3ed0 |
logging_send_syslog_msg(lircd_t)
|
|
Chris PeBenito |
da3ed0 |
|
|
Chris PeBenito |
da3ed0 |
miscfiles_read_localization(lircd_t)
|