Chris PeBenito 17de1b
Chris PeBenito cfcf50
policy_module(sysstat, 1.3.0)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
# Declarations
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type sysstat_t;
Chris PeBenito 17de1b
type sysstat_exec_t;
Chris PeBenito 0bfccd
init_system_domain(sysstat_t, sysstat_exec_t)
Chris PeBenito 17de1b
role system_r types sysstat_t;
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type sysstat_log_t;
Chris PeBenito 17de1b
logging_log_file(sysstat_log_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
# Local policy
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
Chris PeBenito 17de1b
allow sysstat_t self:capability sys_resource;
Chris PeBenito 17de1b
dontaudit sysstat_t self:capability sys_admin;
Chris PeBenito c0868a
allow sysstat_t self:fifo_file rw_fifo_file_perms;
Chris PeBenito 17de1b
Chris PeBenito 17de1b
can_exec(sysstat_t, sysstat_exec_t)
Chris PeBenito 17de1b
Chris PeBenito 0bfccd
manage_files_pattern(sysstat_t, sysstat_log_t, sysstat_log_t)
Chris PeBenito 0bfccd
logging_log_filetrans(sysstat_t, sysstat_log_t, { file dir })
Chris PeBenito 17de1b
Chris PeBenito 17de1b
# get info from /proc
Chris PeBenito 17de1b
kernel_read_system_state(sysstat_t)
Chris PeBenito 17de1b
kernel_read_network_state(sysstat_t)
Chris PeBenito 17de1b
kernel_read_kernel_sysctls(sysstat_t)
Chris PeBenito 17de1b
kernel_read_fs_sysctls(sysstat_t)
Chris PeBenito 17de1b
kernel_read_rpc_sysctls(sysstat_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
corecmd_exec_bin(sysstat_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
dev_read_urand(sysstat_t)
Chris PeBenito 86b28c
dev_read_sysfs(sysstat_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
files_search_var(sysstat_t)
Chris PeBenito 17de1b
# for mtab
Chris PeBenito 17de1b
files_read_etc_runtime_files(sysstat_t)
Chris PeBenito 17de1b
#for fstab
Chris PeBenito 17de1b
files_read_etc_files(sysstat_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
fs_getattr_xattr_fs(sysstat_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
term_use_console(sysstat_t)
Chris PeBenito a5e213
term_use_all_terms(sysstat_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
init_use_fds(sysstat_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
libs_use_ld_so(sysstat_t)
Chris PeBenito 17de1b
libs_use_shared_libs(sysstat_t)
Chris PeBenito 17de1b
Chris PeBenito a5e213
locallogin_use_fds(sysstat_t)
Chris PeBenito a5e213
Chris PeBenito 17de1b
miscfiles_read_localization(sysstat_t)
Chris PeBenito 17de1b
Chris PeBenito e9c6cd
sysadm_dontaudit_list_home_dirs(sysstat_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 0bfccd
	cron_system_entry(sysstat_t, sysstat_exec_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 17de1b
	logging_send_syslog_msg(sysstat_t)
Chris PeBenito 17de1b
')