|
Chris PeBenito |
17ec8c |
policy_module(uptime, 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 uptimed_t;
|
|
Chris PeBenito |
17de1b |
type uptimed_exec_t;
|
|
Chris PeBenito |
0bfccd |
init_daemon_domain(uptimed_t, uptimed_exec_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type uptimed_etc_t alias etc_uptimed_t;
|
|
Chris PeBenito |
17de1b |
files_config_file(uptimed_etc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type uptimed_spool_t;
|
|
Chris PeBenito |
17de1b |
files_type(uptimed_spool_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type uptimed_var_run_t;
|
|
Chris PeBenito |
17de1b |
files_pid_file(uptimed_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 uptimed_t self:capability sys_tty_config;
|
|
Chris PeBenito |
17de1b |
allow uptimed_t self:process signal_perms;
|
|
Chris PeBenito |
0b36a2 |
allow uptimed_t self:fifo_file write_file_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0b36a2 |
allow uptimed_t uptimed_etc_t:file read_file_perms;
|
|
Chris PeBenito |
17de1b |
files_search_etc(uptimed_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow uptimed_t uptimed_spool_t:file manage_file_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(uptimed_t, uptimed_var_run_t, uptimed_var_run_t)
|
|
Chris PeBenito |
0bfccd |
files_pid_filetrans(uptimed_t, uptimed_var_run_t, file)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0bfccd |
manage_dirs_pattern(uptimed_t, uptimed_spool_t, uptimed_spool_t)
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(uptimed_t, uptimed_spool_t, uptimed_spool_t)
|
|
Chris PeBenito |
0bfccd |
files_spool_filetrans(uptimed_t, uptimed_spool_t, { dir file })
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
kernel_read_system_state(uptimed_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_kernel_sysctls(uptimed_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
corecmd_exec_shell(uptimed_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
dev_read_sysfs(uptimed_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
domain_use_interactive_fds(uptimed_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_read_etc_runtime_files(uptimed_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
fs_getattr_all_fs(uptimed_t)
|
|
Chris PeBenito |
17de1b |
fs_search_auto_mountpoints(uptimed_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
logging_send_syslog_msg(uptimed_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
miscfiles_read_localization(uptimed_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
userdom_dontaudit_use_unpriv_user_fds(uptimed_t)
|
|
Chris PeBenito |
296273 |
userdom_dontaudit_search_user_home_dirs(uptimed_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
mta_send_mail(uptimed_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
seutil_sigchld_newrole(uptimed_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
udev_read_db(uptimed_t)
|
|
Chris PeBenito |
17de1b |
')
|