selinux-policy/policy/modules/services/lircd.te

55 lines
1.2 KiB
Plaintext
Raw Normal View History

2009-05-06 15:09:46 +00:00
2010-01-08 15:37:13 +00:00
policy_module(lircd, 1.0.1)
2009-05-06 15:09:46 +00:00
########################################
#
# Declarations
#
type lircd_t;
type lircd_exec_t;
init_daemon_domain(lircd_t, lircd_exec_t)
type lircd_initrc_exec_t;
init_script_file(lircd_initrc_exec_t)
type lircd_etc_t;
files_type(lircd_etc_t)
2010-01-08 15:37:13 +00:00
type lircd_var_run_t alias lircd_sock_t;
2009-05-06 15:09:46 +00:00
files_pid_file(lircd_var_run_t)
########################################
#
# lircd local policy
#
allow lircd_t self:process signal;
allow lircd_t self:unix_dgram_socket create_socket_perms;
# etc file
read_files_pattern(lircd_t, lircd_etc_t, lircd_etc_t)
manage_dirs_pattern(lircd_t, lircd_var_run_t, lircd_var_run_t)
manage_files_pattern(lircd_t, lircd_var_run_t, lircd_var_run_t)
2010-01-08 15:37:13 +00:00
manage_sock_files_pattern(lircd_t, lircd_var_run_t, lircd_var_run_t)
2009-05-06 15:09:46 +00:00
files_pid_filetrans(lircd_t, lircd_var_run_t, { dir file })
# /dev/lircd socket
2010-01-08 15:37:13 +00:00
dev_filetrans(lircd_t, lircd_var_run_t, sock_file)
dev_read_generic_usb_dev(lircd_t)
dev_filetrans_lirc(lircd_t)
dev_rw_lirc(lircd_t)
dev_rw_input_dev(lircd_t)
files_read_etc_files(lircd_t)
files_list_var(lircd_t)
files_manage_generic_locks(lircd_t)
files_read_all_locks(lircd_t)
term_use_ptmx(lircd_t)
2009-05-06 15:09:46 +00:00
logging_send_syslog_msg(lircd_t)
miscfiles_read_localization(lircd_t)