Chris PeBenito 17de1b
Chris PeBenito 17ec8c
policy_module(openct, 1.4.0)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
# Declarations
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type openct_t;
Chris PeBenito 17de1b
type openct_exec_t;
Chris PeBenito 0bfccd
init_daemon_domain(openct_t, openct_exec_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type openct_var_run_t;
Chris PeBenito 17de1b
files_pid_file(openct_var_run_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
# Local policy
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
Chris PeBenito 17de1b
dontaudit openct_t self:capability sys_tty_config;
Chris PeBenito 17de1b
allow openct_t self:process signal_perms;
Chris PeBenito 17de1b
Chris PeBenito 0bfccd
manage_files_pattern(openct_t, openct_var_run_t, openct_var_run_t)
Chris PeBenito 0bfccd
manage_sock_files_pattern(openct_t, openct_var_run_t, openct_var_run_t)
Chris PeBenito 0bfccd
files_pid_filetrans(openct_t, openct_var_run_t, { file sock_file })
Chris PeBenito 17de1b
Chris PeBenito 17de1b
kernel_read_kernel_sysctls(openct_t)
Chris PeBenito 17de1b
kernel_list_proc(openct_t)
Chris PeBenito 17de1b
kernel_read_proc_symlinks(openct_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
dev_read_sysfs(openct_t)
Chris PeBenito 17de1b
# openct asks for this
Chris PeBenito 17de1b
dev_rw_usbfs(openct_t)
Chris PeBenito d534d3
dev_rw_smartcard(openct_t)
Chris PeBenito d534d3
dev_rw_generic_usb_dev(openct_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
domain_use_interactive_fds(openct_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
# openct asks for this
Chris PeBenito 17de1b
files_read_etc_files(openct_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
fs_getattr_all_fs(openct_t)
Chris PeBenito 17de1b
fs_search_auto_mountpoints(openct_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
logging_send_syslog_msg(openct_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
miscfiles_read_localization(openct_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
userdom_dontaudit_use_unpriv_user_fds(openct_t)
Chris PeBenito 296273
userdom_dontaudit_search_user_home_dirs(openct_t)
Chris PeBenito 17de1b
Chris PeBenito d534d3
openct_exec(openct_t)
Chris PeBenito d534d3
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 17de1b
	seutil_sigchld_newrole(openct_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 17de1b
	udev_read_db(openct_t)
Chris PeBenito 17de1b
')