2006-01-04 18:32:22 +00:00
|
|
|
|
2008-04-04 17:08:34 +00:00
|
|
|
policy_module(openct,1.2.1)
|
2006-01-04 18:32:22 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
type openct_t;
|
|
|
|
type openct_exec_t;
|
|
|
|
init_daemon_domain(openct_t,openct_exec_t)
|
|
|
|
|
|
|
|
type openct_var_run_t;
|
|
|
|
files_pid_file(openct_var_run_t)
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local policy
|
|
|
|
#
|
|
|
|
|
|
|
|
dontaudit openct_t self:capability sys_tty_config;
|
|
|
|
allow openct_t self:process signal_perms;
|
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
manage_files_pattern(openct_t,openct_var_run_t,openct_var_run_t)
|
2008-04-04 17:08:34 +00:00
|
|
|
manage_sock_files_pattern(openct_t,openct_var_run_t,openct_var_run_t)
|
|
|
|
files_pid_filetrans(openct_t,openct_var_run_t,{ file sock_file })
|
2006-01-04 18:32:22 +00:00
|
|
|
|
2006-01-31 16:49:43 +00:00
|
|
|
kernel_read_kernel_sysctls(openct_t)
|
2006-01-04 18:32:22 +00:00
|
|
|
kernel_list_proc(openct_t)
|
|
|
|
kernel_read_proc_symlinks(openct_t)
|
|
|
|
|
|
|
|
dev_read_sysfs(openct_t)
|
|
|
|
# openct asks for this
|
|
|
|
dev_rw_usbfs(openct_t)
|
2007-06-11 15:01:10 +00:00
|
|
|
dev_rw_smartcard(openct_t)
|
|
|
|
dev_rw_generic_usb_dev(openct_t)
|
2006-01-04 18:32:22 +00:00
|
|
|
|
2006-02-20 21:33:25 +00:00
|
|
|
domain_use_interactive_fds(openct_t)
|
2006-01-04 18:32:22 +00:00
|
|
|
|
|
|
|
# openct asks for this
|
|
|
|
files_read_etc_files(openct_t)
|
|
|
|
|
|
|
|
fs_getattr_all_fs(openct_t)
|
|
|
|
fs_search_auto_mountpoints(openct_t)
|
|
|
|
|
|
|
|
libs_use_ld_so(openct_t)
|
|
|
|
libs_use_shared_libs(openct_t)
|
|
|
|
|
|
|
|
logging_send_syslog_msg(openct_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(openct_t)
|
|
|
|
|
2006-02-20 21:33:25 +00:00
|
|
|
userdom_dontaudit_use_unpriv_user_fds(openct_t)
|
2006-02-21 18:40:44 +00:00
|
|
|
userdom_dontaudit_search_sysadm_home_dirs(openct_t)
|
2006-01-04 18:32:22 +00:00
|
|
|
|
2007-06-11 15:01:10 +00:00
|
|
|
openct_exec(openct_t)
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2006-01-04 18:32:22 +00:00
|
|
|
seutil_sigchld_newrole(openct_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2006-01-04 18:32:22 +00:00
|
|
|
udev_read_db(openct_t)
|
|
|
|
')
|