|
Chris PeBenito |
e3a90e |
## <summary>ABRT - automated bug-reporting tool</summary>
|
|
Chris PeBenito |
e3a90e |
|
|
Chris PeBenito |
e3a90e |
######################################
|
|
Chris PeBenito |
e3a90e |
## <summary>
|
|
Chris PeBenito |
e3a90e |
## Execute abrt in the abrt domain.
|
|
Chris PeBenito |
e3a90e |
## </summary>
|
|
Chris PeBenito |
e3a90e |
## <param name="domain">
|
|
Chris PeBenito |
e3a90e |
## <summary>
|
|
Chris PeBenito |
e3a90e |
## The type of the process performing this action.
|
|
Chris PeBenito |
e3a90e |
## </summary>
|
|
Chris PeBenito |
e3a90e |
## </param>
|
|
Chris PeBenito |
e3a90e |
#
|
|
Chris PeBenito |
e3a90e |
interface(`abrt_domtrans',`
|
|
Chris PeBenito |
e3a90e |
gen_require(`
|
|
Chris PeBenito |
e3a90e |
type abrt_t, abrt_exec_t;
|
|
Chris PeBenito |
e3a90e |
')
|
|
Chris PeBenito |
e3a90e |
|
|
Chris PeBenito |
e3a90e |
corecmd_search_bin($1)
|
|
Chris PeBenito |
e3a90e |
domtrans_pattern($1, abrt_exec_t, abrt_t)
|
|
Chris PeBenito |
e3a90e |
')
|
|
Chris PeBenito |
e3a90e |
|
|
Chris PeBenito |
e3a90e |
######################################
|
|
Chris PeBenito |
e3a90e |
## <summary>
|
|
Chris PeBenito |
e3a90e |
## Execute abrt
|
|
Chris PeBenito |
e3a90e |
## </summary>
|
|
Chris PeBenito |
e3a90e |
## <param name="domain">
|
|
Chris PeBenito |
e3a90e |
## <summary>
|
|
Chris PeBenito |
e3a90e |
## The type of the process performing this action.
|
|
Chris PeBenito |
e3a90e |
## </summary>
|
|
Chris PeBenito |
e3a90e |
## </param>
|
|
Chris PeBenito |
e3a90e |
#
|
|
Chris PeBenito |
e3a90e |
interface(`abrt_exec',`
|
|
Chris PeBenito |
e3a90e |
gen_require(`
|
|
Chris PeBenito |
e3a90e |
type abrt_exec_t;
|
|
Chris PeBenito |
e3a90e |
')
|
|
Chris PeBenito |
e3a90e |
|
|
Chris PeBenito |
e3a90e |
can_exec($1, abrt_exec_t)
|
|
Chris PeBenito |
e3a90e |
')
|
|
Chris PeBenito |
e3a90e |
|
|
Chris PeBenito |
e3a90e |
####################################
|
|
Chris PeBenito |
e3a90e |
## <summary>
|
|
Chris PeBenito |
e3a90e |
## Read abrt configuration file.
|
|
Chris PeBenito |
e3a90e |
## </summary>
|
|
Chris PeBenito |
e3a90e |
## <param name="domain">
|
|
Chris PeBenito |
e3a90e |
## <summary>
|
|
Chris PeBenito |
e3a90e |
## Domain allowed access.
|
|
Chris PeBenito |
e3a90e |
## </summary>
|
|
Chris PeBenito |
e3a90e |
## </param>
|
|
Chris PeBenito |
e3a90e |
#
|
|
Chris PeBenito |
e3a90e |
interface(`abrt_read_config',`
|
|
Chris PeBenito |
e3a90e |
gen_require(`
|
|
Chris PeBenito |
e3a90e |
type abrt_etc_t;
|
|
Chris PeBenito |
e3a90e |
')
|
|
Chris PeBenito |
e3a90e |
|
|
Chris PeBenito |
e3a90e |
files_search_etc($1)
|
|
Chris PeBenito |
e3a90e |
read_files_pattern($1, abrt_etc_t, abrt_etc_t)
|
|
Chris PeBenito |
e3a90e |
')
|
|
Chris PeBenito |
e3a90e |
|
|
Chris PeBenito |
e3a90e |
######################################
|
|
Chris PeBenito |
e3a90e |
## <summary>
|
|
Chris PeBenito |
e3a90e |
## Read abrt logs.
|
|
Chris PeBenito |
e3a90e |
## </summary>
|
|
Chris PeBenito |
e3a90e |
## <param name="domain">
|
|
Chris PeBenito |
e3a90e |
## <summary>
|
|
Chris PeBenito |
e3a90e |
## Domain allowed access.
|
|
Chris PeBenito |
e3a90e |
## </summary>
|
|
Chris PeBenito |
e3a90e |
## </param>
|
|
Chris PeBenito |
e3a90e |
#
|
|
Chris PeBenito |
e3a90e |
interface(`abrt_read_log',`
|
|
Chris PeBenito |
e3a90e |
gen_require(`
|
|
Chris PeBenito |
e3a90e |
type abrt_var_log_t;
|
|
Chris PeBenito |
e3a90e |
')
|
|
Chris PeBenito |
e3a90e |
|
|
Chris PeBenito |
e3a90e |
logging_search_logs($1)
|
|
Chris PeBenito |
e3a90e |
read_files_pattern($1, abrt_var_log_t, abrt_var_log_t)
|
|
Chris PeBenito |
e3a90e |
')
|
|
Chris PeBenito |
e3a90e |
|
|
Chris PeBenito |
e3a90e |
#####################################
|
|
Chris PeBenito |
e3a90e |
## <summary>
|
|
Chris PeBenito |
e3a90e |
## All of the rules required to administrate
|
|
Chris PeBenito |
e3a90e |
## an abrt environment
|
|
Chris PeBenito |
e3a90e |
## </summary>
|
|
Chris PeBenito |
e3a90e |
## <param name="domain">
|
|
Chris PeBenito |
e3a90e |
## <summary>
|
|
Chris PeBenito |
e3a90e |
## Domain allowed access.
|
|
Chris PeBenito |
e3a90e |
## </summary>
|
|
Chris PeBenito |
e3a90e |
## </param>
|
|
Chris PeBenito |
e3a90e |
## <param name="role">
|
|
Chris PeBenito |
e3a90e |
## <summary>
|
|
Chris PeBenito |
e3a90e |
## The role to be allowed to manage the abrt domain.
|
|
Chris PeBenito |
e3a90e |
## </summary>
|
|
Chris PeBenito |
e3a90e |
## </param>
|
|
Chris PeBenito |
e3a90e |
## <rolecap/>
|
|
Chris PeBenito |
e3a90e |
#
|
|
Chris PeBenito |
e3a90e |
interface(`abrt_admin',`
|
|
Chris PeBenito |
e3a90e |
gen_require(`
|
|
Chris PeBenito |
e3a90e |
type abrt_t, abrt_etc_t;
|
|
Chris PeBenito |
e3a90e |
type abrt_var_cache_t, abrt_var_log_t;
|
|
Chris PeBenito |
e3a90e |
type abrt_var_run_t, abrt_tmp_t;
|
|
Chris PeBenito |
e3a90e |
type abrt_initrc_exec_t;
|
|
Chris PeBenito |
e3a90e |
')
|
|
Chris PeBenito |
e3a90e |
|
|
Chris PeBenito |
e3a90e |
allow $1 abrt_t:process { ptrace signal_perms };
|
|
Chris PeBenito |
e3a90e |
ps_process_pattern($1, abrt_t)
|
|
Chris PeBenito |
e3a90e |
|
|
Chris PeBenito |
e3a90e |
init_labeled_script_domtrans($1, abrt_initrc_exec_t)
|
|
Chris PeBenito |
e3a90e |
domain_system_change_exemption($1)
|
|
Chris PeBenito |
e3a90e |
role_transition $2 abrt_initrc_exec_t system_r;
|
|
Chris PeBenito |
e3a90e |
allow $2 system_r;
|
|
Chris PeBenito |
e3a90e |
|
|
Chris PeBenito |
e3a90e |
files_search_etc($1)
|
|
Chris PeBenito |
e3a90e |
admin_pattern($1, abrt_etc_t)
|
|
Chris PeBenito |
e3a90e |
|
|
Chris PeBenito |
e3a90e |
logging_search_logs($1)
|
|
Chris PeBenito |
e3a90e |
admin_pattern($1, abrt_var_log_t)
|
|
Chris PeBenito |
e3a90e |
|
|
Chris PeBenito |
e3a90e |
files_search_var($1)
|
|
Chris PeBenito |
e3a90e |
admin_pattern($1, abrt_var_cache_t)
|
|
Chris PeBenito |
e3a90e |
|
|
Chris PeBenito |
e3a90e |
files_search_pids($1)
|
|
Chris PeBenito |
e3a90e |
admin_pattern($1, abrt_var_run_t)
|
|
Chris PeBenito |
e3a90e |
|
|
Chris PeBenito |
e3a90e |
files_search_tmp($1)
|
|
Chris PeBenito |
e3a90e |
admin_pattern($1, abrt_tmp_t)
|
|
Chris PeBenito |
e3a90e |
')
|