Chris PeBenito 0f73fd
Chris PeBenito 0f73fd
policy_module(sysstat,1.0.0)
Chris PeBenito 0f73fd
Chris PeBenito 0f73fd
########################################
Chris PeBenito 0f73fd
#
Chris PeBenito 0f73fd
# Declarations
Chris PeBenito 0f73fd
#
Chris PeBenito 0f73fd
Chris PeBenito 0f73fd
type sysstat_t;
Chris PeBenito 0f73fd
type sysstat_exec_t;
Chris PeBenito 0f73fd
init_system_domain(sysstat_t,sysstat_exec_t)
Chris PeBenito 0f73fd
role system_r types sysstat_t;
Chris PeBenito 0f73fd
Chris PeBenito 0f73fd
type sysstat_log_t;
Chris PeBenito 0f73fd
logging_log_file(sysstat_log_t)
Chris PeBenito 0f73fd
Chris PeBenito 0f73fd
########################################
Chris PeBenito 0f73fd
#
Chris PeBenito 0f73fd
# Local policy
Chris PeBenito 0f73fd
#
Chris PeBenito 0f73fd
Chris PeBenito 0f73fd
allow sysstat_t self:capability sys_resource;
Chris PeBenito 0f73fd
dontaudit sysstat_t self:capability sys_admin;
Chris PeBenito 0f73fd
allow sysstat_t self:fifo_file rw_file_perms;
Chris PeBenito 0f73fd
Chris PeBenito 0f73fd
can_exec(sysstat_t, sysstat_exec_t)
Chris PeBenito 0f73fd
Chris PeBenito 0f73fd
allow sysstat_t sysstat_log_t:file create_file_perms;
Chris PeBenito 0f73fd
allow sysstat_t sysstat_log_t:dir rw_dir_perms;
Chris PeBenito 9d5949
logging_filetrans_log(sysstat_t,sysstat_log_t,{ file dir })
Chris PeBenito 0f73fd
Chris PeBenito 0f73fd
# get info from /proc
Chris PeBenito 0f73fd
kernel_read_system_state(sysstat_t)
Chris PeBenito 0f73fd
kernel_read_network_state(sysstat_t)
Chris PeBenito 445522
kernel_read_kernel_sysctls(sysstat_t)
Chris PeBenito 445522
kernel_read_fs_sysctls(sysstat_t)
Chris PeBenito 445522
kernel_read_rpc_sysctls(sysstat_t)
Chris PeBenito 0f73fd
Chris PeBenito 0f73fd
corecmd_dontaudit_search_sbin(sysstat_t)
Chris PeBenito 0f73fd
corecmd_exec_bin(sysstat_t)
Chris PeBenito 0f73fd
Chris PeBenito 0f73fd
dev_read_urand(sysstat_t)
Chris PeBenito 0f73fd
Chris PeBenito 0f73fd
files_search_var(sysstat_t)
Chris PeBenito 0f73fd
# for mtab
Chris PeBenito 0f73fd
files_read_etc_runtime_files(sysstat_t)
Chris PeBenito 0f73fd
#for fstab
Chris PeBenito 0f73fd
files_read_etc_files(sysstat_t)
Chris PeBenito 0f73fd
Chris PeBenito 0f73fd
fs_getattr_xattr_fs(sysstat_t)
Chris PeBenito 0f73fd
Chris PeBenito 9667c1
term_use_console(sysstat_t)
Chris PeBenito 0f73fd
Chris PeBenito 0f73fd
init_use_fd(sysstat_t)
Chris PeBenito 1815ba
init_use_script_ptys(sysstat_t)
Chris PeBenito 0f73fd
Chris PeBenito 0f73fd
libs_use_ld_so(sysstat_t)
Chris PeBenito 0f73fd
libs_use_shared_libs(sysstat_t)
Chris PeBenito 0f73fd
Chris PeBenito 0f73fd
miscfiles_read_localization(sysstat_t)
Chris PeBenito 0f73fd
Chris PeBenito 9667c1
userdom_dontaudit_list_sysadm_home_dir(sysstat_t)
Chris PeBenito 0f73fd
Chris PeBenito 0f73fd
optional_policy(`cron',`
Chris PeBenito 0f73fd
	cron_system_entry(sysstat_t,sysstat_exec_t)
Chris PeBenito 0f73fd
')
Chris PeBenito 0f73fd
Chris PeBenito 0f73fd
optional_policy(`logging',`
Chris PeBenito 0f73fd
	logging_send_syslog_msg(sysstat_t)
Chris PeBenito 0f73fd
')