fee48647ac
67effb0
483be01
c6c63f6
b0d8d59
5b082e4
b8097d6
689d954
5afc3d3
f3c5e77
a59e50c
cf87233
17759c7
dc1db54
e9bf16d
4f95198
bf40792
622c63b
c20842c
dc7cc4d
792d448
62 lines
1.3 KiB
Plaintext
62 lines
1.3 KiB
Plaintext
policy_module(openct, 1.4.1)
|
|
|
|
########################################
|
|
#
|
|
# 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;
|
|
|
|
manage_dirs_pattern(openct_t, openct_var_run_t, openct_var_run_t)
|
|
manage_files_pattern(openct_t, openct_var_run_t, openct_var_run_t)
|
|
manage_sock_files_pattern(openct_t, openct_var_run_t, openct_var_run_t)
|
|
files_pid_filetrans(openct_t, openct_var_run_t, { dir file sock_file })
|
|
|
|
kernel_read_kernel_sysctls(openct_t)
|
|
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)
|
|
dev_rw_smartcard(openct_t)
|
|
dev_rw_generic_usb_dev(openct_t)
|
|
|
|
domain_use_interactive_fds(openct_t)
|
|
|
|
# openct asks for this
|
|
files_read_etc_files(openct_t)
|
|
|
|
fs_getattr_all_fs(openct_t)
|
|
fs_search_auto_mountpoints(openct_t)
|
|
|
|
logging_send_syslog_msg(openct_t)
|
|
|
|
miscfiles_read_localization(openct_t)
|
|
|
|
userdom_dontaudit_use_unpriv_user_fds(openct_t)
|
|
userdom_dontaudit_search_user_home_dirs(openct_t)
|
|
|
|
openct_exec(openct_t)
|
|
|
|
optional_policy(`
|
|
seutil_sigchld_newrole(openct_t)
|
|
')
|
|
|
|
optional_policy(`
|
|
udev_read_db(openct_t)
|
|
')
|