|
Chris PeBenito |
0e8ec4 |
|
|
Chris PeBenito |
0e8ec4 |
policy_module(openct,1.0.0)
|
|
Chris PeBenito |
0e8ec4 |
|
|
Chris PeBenito |
0e8ec4 |
########################################
|
|
Chris PeBenito |
0e8ec4 |
#
|
|
Chris PeBenito |
0e8ec4 |
# Declarations
|
|
Chris PeBenito |
0e8ec4 |
#
|
|
Chris PeBenito |
0e8ec4 |
|
|
Chris PeBenito |
0e8ec4 |
type openct_t;
|
|
Chris PeBenito |
0e8ec4 |
type openct_exec_t;
|
|
Chris PeBenito |
0e8ec4 |
init_daemon_domain(openct_t,openct_exec_t)
|
|
Chris PeBenito |
0e8ec4 |
|
|
Chris PeBenito |
0e8ec4 |
type openct_var_run_t;
|
|
Chris PeBenito |
0e8ec4 |
files_pid_file(openct_var_run_t)
|
|
Chris PeBenito |
0e8ec4 |
|
|
Chris PeBenito |
0e8ec4 |
########################################
|
|
Chris PeBenito |
0e8ec4 |
#
|
|
Chris PeBenito |
0e8ec4 |
# Local policy
|
|
Chris PeBenito |
0e8ec4 |
#
|
|
Chris PeBenito |
0e8ec4 |
|
|
Chris PeBenito |
0e8ec4 |
dontaudit openct_t self:capability sys_tty_config;
|
|
Chris PeBenito |
0e8ec4 |
allow openct_t self:process signal_perms;
|
|
Chris PeBenito |
0e8ec4 |
|
|
Chris PeBenito |
0e8ec4 |
allow openct_t openct_var_run_t:file create_file_perms;
|
|
Chris PeBenito |
0e8ec4 |
allow openct_t openct_var_run_t:dir rw_dir_perms;
|
|
Chris PeBenito |
9d5949 |
files_filetrans_pid(openct_t,openct_var_run_t)
|
|
Chris PeBenito |
0e8ec4 |
|
|
Chris PeBenito |
445522 |
kernel_read_kernel_sysctls(openct_t)
|
|
Chris PeBenito |
0e8ec4 |
kernel_list_proc(openct_t)
|
|
Chris PeBenito |
0e8ec4 |
kernel_read_proc_symlinks(openct_t)
|
|
Chris PeBenito |
0e8ec4 |
|
|
Chris PeBenito |
0e8ec4 |
dev_read_sysfs(openct_t)
|
|
Chris PeBenito |
0e8ec4 |
# openct asks for this
|
|
Chris PeBenito |
0e8ec4 |
dev_rw_usbfs(openct_t)
|
|
Chris PeBenito |
0e8ec4 |
|
|
Chris PeBenito |
0e8ec4 |
domain_use_wide_inherit_fd(openct_t)
|
|
Chris PeBenito |
0e8ec4 |
|
|
Chris PeBenito |
0e8ec4 |
# openct asks for this
|
|
Chris PeBenito |
0e8ec4 |
files_read_etc_files(openct_t)
|
|
Chris PeBenito |
0e8ec4 |
|
|
Chris PeBenito |
0e8ec4 |
fs_getattr_all_fs(openct_t)
|
|
Chris PeBenito |
0e8ec4 |
fs_search_auto_mountpoints(openct_t)
|
|
Chris PeBenito |
0e8ec4 |
|
|
Chris PeBenito |
0e8ec4 |
term_dontaudit_use_console(openct_t)
|
|
Chris PeBenito |
0e8ec4 |
|
|
Chris PeBenito |
0e8ec4 |
init_use_fd(openct_t)
|
|
Chris PeBenito |
1815ba |
init_use_script_ptys(openct_t)
|
|
Chris PeBenito |
0e8ec4 |
|
|
Chris PeBenito |
0e8ec4 |
libs_use_ld_so(openct_t)
|
|
Chris PeBenito |
0e8ec4 |
libs_use_shared_libs(openct_t)
|
|
Chris PeBenito |
0e8ec4 |
|
|
Chris PeBenito |
0e8ec4 |
logging_send_syslog_msg(openct_t)
|
|
Chris PeBenito |
0e8ec4 |
|
|
Chris PeBenito |
0e8ec4 |
miscfiles_read_localization(openct_t)
|
|
Chris PeBenito |
0e8ec4 |
|
|
Chris PeBenito |
0e8ec4 |
userdom_dontaudit_use_unpriv_user_fd(openct_t)
|
|
Chris PeBenito |
0e8ec4 |
userdom_dontaudit_search_sysadm_home_dir(openct_t)
|
|
Chris PeBenito |
0e8ec4 |
|
|
Chris PeBenito |
0e8ec4 |
ifdef(`targeted_policy',`
|
|
Chris PeBenito |
1815ba |
term_dontaudit_use_unallocated_ttys(openct_t)
|
|
Chris PeBenito |
1815ba |
term_dontaudit_use_generic_ptys(openct_t)
|
|
Chris PeBenito |
9e04f5 |
files_dontaudit_read_root_files(openct_t)
|
|
Chris PeBenito |
0e8ec4 |
')
|
|
Chris PeBenito |
0e8ec4 |
|
|
Chris PeBenito |
0e8ec4 |
optional_policy(`selinuxutil',`
|
|
Chris PeBenito |
0e8ec4 |
seutil_sigchld_newrole(openct_t)
|
|
Chris PeBenito |
0e8ec4 |
')
|
|
Chris PeBenito |
0e8ec4 |
|
|
Chris PeBenito |
0e8ec4 |
optional_policy(`udev',`
|
|
Chris PeBenito |
0e8ec4 |
udev_read_db(openct_t)
|
|
Chris PeBenito |
0e8ec4 |
')
|