2005-12-08 15:01:57 +00:00
|
|
|
|
2008-04-29 13:58:34 +00:00
|
|
|
policy_module(sysstat,1.2.1)
|
2005-12-08 15:01:57 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
type sysstat_t;
|
|
|
|
type sysstat_exec_t;
|
|
|
|
init_system_domain(sysstat_t,sysstat_exec_t)
|
|
|
|
role system_r types sysstat_t;
|
|
|
|
|
|
|
|
type sysstat_log_t;
|
|
|
|
logging_log_file(sysstat_log_t)
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local policy
|
|
|
|
#
|
|
|
|
|
|
|
|
allow sysstat_t self:capability sys_resource;
|
|
|
|
dontaudit sysstat_t self:capability sys_admin;
|
2006-12-12 20:08:08 +00:00
|
|
|
allow sysstat_t self:fifo_file rw_fifo_file_perms;
|
2005-12-08 15:01:57 +00:00
|
|
|
|
|
|
|
can_exec(sysstat_t, sysstat_exec_t)
|
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
manage_files_pattern(sysstat_t,sysstat_log_t,sysstat_log_t)
|
2006-02-21 18:40:44 +00:00
|
|
|
logging_log_filetrans(sysstat_t,sysstat_log_t,{ file dir })
|
2005-12-08 15:01:57 +00:00
|
|
|
|
|
|
|
# get info from /proc
|
|
|
|
kernel_read_system_state(sysstat_t)
|
|
|
|
kernel_read_network_state(sysstat_t)
|
2006-01-31 16:49:43 +00:00
|
|
|
kernel_read_kernel_sysctls(sysstat_t)
|
|
|
|
kernel_read_fs_sysctls(sysstat_t)
|
|
|
|
kernel_read_rpc_sysctls(sysstat_t)
|
2005-12-08 15:01:57 +00:00
|
|
|
|
|
|
|
corecmd_exec_bin(sysstat_t)
|
|
|
|
|
|
|
|
dev_read_urand(sysstat_t)
|
2007-03-19 18:38:54 +00:00
|
|
|
dev_read_sysfs(sysstat_t)
|
2005-12-08 15:01:57 +00:00
|
|
|
|
|
|
|
files_search_var(sysstat_t)
|
|
|
|
# for mtab
|
|
|
|
files_read_etc_runtime_files(sysstat_t)
|
|
|
|
#for fstab
|
|
|
|
files_read_etc_files(sysstat_t)
|
|
|
|
|
|
|
|
fs_getattr_xattr_fs(sysstat_t)
|
|
|
|
|
2005-12-08 15:28:22 +00:00
|
|
|
term_use_console(sysstat_t)
|
2006-08-29 02:41:00 +00:00
|
|
|
term_use_all_terms(sysstat_t)
|
2005-12-08 15:01:57 +00:00
|
|
|
|
2006-03-02 23:41:11 +00:00
|
|
|
init_use_fds(sysstat_t)
|
2005-12-08 15:01:57 +00:00
|
|
|
|
|
|
|
libs_use_ld_so(sysstat_t)
|
|
|
|
libs_use_shared_libs(sysstat_t)
|
|
|
|
|
2006-08-29 02:41:00 +00:00
|
|
|
locallogin_use_fds(sysstat_t)
|
|
|
|
|
2005-12-08 15:01:57 +00:00
|
|
|
miscfiles_read_localization(sysstat_t)
|
|
|
|
|
2008-04-29 13:58:34 +00:00
|
|
|
sysadm_dontaudit_list_home_dirs(sysstat_t)
|
2005-12-08 15:01:57 +00:00
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-12-08 15:01:57 +00:00
|
|
|
cron_system_entry(sysstat_t,sysstat_exec_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-12-08 15:01:57 +00:00
|
|
|
logging_send_syslog_msg(sysstat_t)
|
|
|
|
')
|