Oreon-Lime-R2/selinux-policy/selinux-policy-bc228bd/selinux-policy-bc228bd0c249a9e4aa3dcf238c2b1bb138943b07/policy/modules/contrib/sysstat.if

76 lines
1.5 KiB
Text
Raw Permalink Normal View History

## <summary>Reports on various system states.</summary>
########################################
## <summary>
## Create, read, write, and delete
## sysstat log files.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
## <rolecap/>
#
interface(`sysstat_manage_log',`
gen_require(`
type sysstat_log_t;
')
logging_search_logs($1)
manage_files_pattern($1, sysstat_log_t, sysstat_log_t)
')
########################################
## <summary>
## All of the rules required to
## administrate an sysstat environment.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
## <param name="role">
## <summary>
## Role allowed access.
## </summary>
## </param>
## <rolecap/>
#
interface(`sysstat_admin',`
gen_require(`
type sysstat_t, sysstat_initrc_exec_t, sysstat_log_t;
')
allow $1 sysstat_t:process { ptrace signal_perms };
ps_process_pattern($1, sysstat_t)
init_labeled_script_domtrans($1, sysstat_initrc_exec_t)
domain_system_change_exemption($1)
role_transition $2 sysstat_initrc_exec_t system_r;
allow $2 system_r;
logging_search_logs($1)
admin_pattern($1, sysstat_log_t)
')
########################################
## <summary>
## Execute sysstat_exec_t in the sysstat domain.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed to transition.
## </summary>
## </param>
#
interface(`sysstat_domtrans',`
gen_require(`
type sysstat_t, sysstat_exec_t;
')
corecmd_search_bin($1)
domtrans_pattern($1, sysstat_exec_t, sysstat_t)
')