|
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>
|
|
Dominick Grift |
288845 |
## Domain allowed to transition.
|
|
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 |
1b2f08 |
## Execute abrt in the caller domain.
|
|
Chris PeBenito |
e3a90e |
## </summary>
|
|
Chris PeBenito |
e3a90e |
## <param name="domain">
|
|
Chris PeBenito |
e3a90e |
## <summary>
|
|
Chris PeBenito |
a72e42 |
## Domain allowed access.
|
|
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 |
|
|
Dominick Grift |
cd1734 |
corecmd_search_bin($1)
|
|
Chris PeBenito |
e3a90e |
can_exec($1, abrt_exec_t)
|
|
Chris PeBenito |
e3a90e |
')
|
|
Chris PeBenito |
e3a90e |
|
|
Chris PeBenito |
1b2f08 |
########################################
|
|
Chris PeBenito |
1b2f08 |
## <summary>
|
|
Chris PeBenito |
1b2f08 |
## Send a null signal to abrt.
|
|
Chris PeBenito |
1b2f08 |
## </summary>
|
|
Chris PeBenito |
1b2f08 |
## <param name="domain">
|
|
Chris PeBenito |
1b2f08 |
## <summary>
|
|
Chris PeBenito |
1b2f08 |
## Domain allowed access.
|
|
Chris PeBenito |
1b2f08 |
## </summary>
|
|
Chris PeBenito |
1b2f08 |
## </param>
|
|
Chris PeBenito |
1b2f08 |
#
|
|
Chris PeBenito |
1b2f08 |
interface(`abrt_signull',`
|
|
Chris PeBenito |
1b2f08 |
gen_require(`
|
|
Chris PeBenito |
1b2f08 |
type abrt_t;
|
|
Chris PeBenito |
1b2f08 |
')
|
|
Chris PeBenito |
1b2f08 |
|
|
Chris PeBenito |
1b2f08 |
allow $1 abrt_t:process signull;
|
|
Chris PeBenito |
1b2f08 |
')
|
|
Chris PeBenito |
1b2f08 |
|
|
Chris PeBenito |
1b2f08 |
########################################
|
|
Chris PeBenito |
1b2f08 |
## <summary>
|
|
Chris PeBenito |
1b2f08 |
## Allow the domain to read abrt state files in /proc.
|
|
Chris PeBenito |
1b2f08 |
## </summary>
|
|
Chris PeBenito |
1b2f08 |
## <param name="domain">
|
|
Chris PeBenito |
1b2f08 |
## <summary>
|
|
Dominick Grift |
288845 |
## Domain allowed access.
|
|
Chris PeBenito |
1b2f08 |
## </summary>
|
|
Chris PeBenito |
1b2f08 |
## </param>
|
|
Chris PeBenito |
1b2f08 |
#
|
|
Chris PeBenito |
1b2f08 |
interface(`abrt_read_state',`
|
|
Chris PeBenito |
1b2f08 |
gen_require(`
|
|
Chris PeBenito |
1b2f08 |
type abrt_t;
|
|
Chris PeBenito |
1b2f08 |
')
|
|
Chris PeBenito |
1b2f08 |
|
|
Chris PeBenito |
1b2f08 |
ps_process_pattern($1, abrt_t)
|
|
Chris PeBenito |
1b2f08 |
')
|
|
Chris PeBenito |
1b2f08 |
|
|
Chris PeBenito |
1b2f08 |
########################################
|
|
Chris PeBenito |
1b2f08 |
## <summary>
|
|
Chris PeBenito |
b52122 |
## Connect to abrt over an unix stream socket.
|
|
Chris PeBenito |
b52122 |
## </summary>
|
|
Chris PeBenito |
b52122 |
## <param name="domain">
|
|
Chris PeBenito |
b52122 |
## <summary>
|
|
Chris PeBenito |
b52122 |
## Domain allowed access.
|
|
Chris PeBenito |
b52122 |
## </summary>
|
|
Chris PeBenito |
b52122 |
## </param>
|
|
Chris PeBenito |
b52122 |
#
|
|
Chris PeBenito |
b52122 |
interface(`abrt_stream_connect',`
|
|
Chris PeBenito |
b52122 |
gen_require(`
|
|
Chris PeBenito |
b52122 |
type abrt_t, abrt_var_run_t;
|
|
Chris PeBenito |
b52122 |
')
|
|
Chris PeBenito |
b52122 |
|
|
Chris PeBenito |
b52122 |
files_search_pids($1)
|
|
Chris PeBenito |
b52122 |
stream_connect_pattern($1, abrt_var_run_t, abrt_var_run_t, abrt_t)
|
|
Chris PeBenito |
b52122 |
')
|
|
Chris PeBenito |
b52122 |
|
|
Chris PeBenito |
b52122 |
########################################
|
|
Chris PeBenito |
b52122 |
## <summary>
|
|
Chris PeBenito |
1b2f08 |
## Send and receive messages from
|
|
Chris PeBenito |
1b2f08 |
## abrt over dbus.
|
|
Chris PeBenito |
1b2f08 |
## </summary>
|
|
Chris PeBenito |
1b2f08 |
## <param name="domain">
|
|
Chris PeBenito |
1b2f08 |
## <summary>
|
|
Chris PeBenito |
1b2f08 |
## Domain allowed access.
|
|
Chris PeBenito |
1b2f08 |
## </summary>
|
|
Chris PeBenito |
1b2f08 |
## </param>
|
|
Chris PeBenito |
1b2f08 |
#
|
|
Chris PeBenito |
1b2f08 |
interface(`abrt_dbus_chat',`
|
|
Chris PeBenito |
1b2f08 |
gen_require(`
|
|
Chris PeBenito |
1b2f08 |
type abrt_t;
|
|
Chris PeBenito |
1b2f08 |
class dbus send_msg;
|
|
Chris PeBenito |
1b2f08 |
')
|
|
Chris PeBenito |
1b2f08 |
|
|
Chris PeBenito |
1b2f08 |
allow $1 abrt_t:dbus send_msg;
|
|
Chris PeBenito |
1b2f08 |
allow abrt_t $1:dbus send_msg;
|
|
Chris PeBenito |
1b2f08 |
')
|
|
Chris PeBenito |
1b2f08 |
|
|
Chris PeBenito |
1b2f08 |
#####################################
|
|
Chris PeBenito |
1b2f08 |
## <summary>
|
|
Chris PeBenito |
1b2f08 |
## Execute abrt-helper in the abrt-helper domain.
|
|
Chris PeBenito |
1b2f08 |
## </summary>
|
|
Chris PeBenito |
1b2f08 |
## <param name="domain">
|
|
Chris PeBenito |
1b2f08 |
## <summary>
|
|
Dominick Grift |
288845 |
## Domain allowed to transition.
|
|
Chris PeBenito |
1b2f08 |
## </summary>
|
|
Chris PeBenito |
1b2f08 |
## </param>
|
|
Chris PeBenito |
1b2f08 |
#
|
|
Chris PeBenito |
1b2f08 |
interface(`abrt_domtrans_helper',`
|
|
Chris PeBenito |
1b2f08 |
gen_require(`
|
|
Chris PeBenito |
1b2f08 |
type abrt_helper_t, abrt_helper_exec_t;
|
|
Chris PeBenito |
1b2f08 |
')
|
|
Chris PeBenito |
1b2f08 |
|
|
Chris PeBenito |
1b2f08 |
domtrans_pattern($1, abrt_helper_exec_t, abrt_helper_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
2968e0 |
ifdef(`hide_broken_symptoms', `
|
|
Dan Walsh |
2968e0 |
dontaudit abrt_helper_t $1:socket_class_set { read write };
|
|
Dan Walsh |
2968e0 |
')
|
|
Chris PeBenito |
1b2f08 |
')
|
|
Chris PeBenito |
1b2f08 |
|
|
Chris PeBenito |
1b2f08 |
########################################
|
|
Chris PeBenito |
1b2f08 |
## <summary>
|
|
Chris PeBenito |
1b2f08 |
## Execute abrt helper in the abrt_helper domain, and
|
|
Chris PeBenito |
1b2f08 |
## allow the specified role the abrt_helper domain.
|
|
Chris PeBenito |
1b2f08 |
## </summary>
|
|
Chris PeBenito |
1b2f08 |
## <param name="domain">
|
|
Chris PeBenito |
1b2f08 |
## <summary>
|
|
Dominick Grift |
288845 |
## Domain allowed to transition.
|
|
Chris PeBenito |
1b2f08 |
## </summary>
|
|
Chris PeBenito |
1b2f08 |
## </param>
|
|
Chris PeBenito |
1b2f08 |
## <param name="role">
|
|
Chris PeBenito |
1b2f08 |
## <summary>
|
|
Chris PeBenito |
1b2f08 |
## Role allowed access.
|
|
Chris PeBenito |
1b2f08 |
## </summary>
|
|
Chris PeBenito |
1b2f08 |
## </param>
|
|
Chris PeBenito |
1b2f08 |
## <rolecap/>
|
|
Chris PeBenito |
1b2f08 |
#
|
|
Chris PeBenito |
1b2f08 |
interface(`abrt_run_helper',`
|
|
Chris PeBenito |
1b2f08 |
gen_require(`
|
|
Chris PeBenito |
1b2f08 |
type abrt_helper_t;
|
|
Chris PeBenito |
1b2f08 |
')
|
|
Chris PeBenito |
1b2f08 |
|
|
Chris PeBenito |
1b2f08 |
abrt_domtrans_helper($1)
|
|
Chris PeBenito |
1b2f08 |
role $2 types abrt_helper_t;
|
|
Chris PeBenito |
1b2f08 |
')
|
|
Chris PeBenito |
1b2f08 |
|
|
Chris PeBenito |
1b2f08 |
########################################
|
|
Chris PeBenito |
1b2f08 |
## <summary>
|
|
Dan Walsh |
3eaa99 |
## Append abrt cache
|
|
Dan Walsh |
3eaa99 |
## </summary>
|
|
Dan Walsh |
3eaa99 |
## <param name="domain">
|
|
Dan Walsh |
3eaa99 |
## <summary>
|
|
Dan Walsh |
3eaa99 |
## Domain allowed access.
|
|
Dan Walsh |
3eaa99 |
## </summary>
|
|
Dan Walsh |
3eaa99 |
## </param>
|
|
Dan Walsh |
3eaa99 |
#
|
|
Dan Walsh |
2968e0 |
interface(`abrt_cache_append',`
|
|
Dan Walsh |
3eaa99 |
gen_require(`
|
|
Dan Walsh |
3eaa99 |
type abrt_var_cache_t;
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
append_files_pattern($1, abrt_var_cache_t, abrt_var_cache_t)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
########################################
|
|
Dan Walsh |
3eaa99 |
## <summary>
|
|
Dan Walsh |
3eaa99 |
## Manage abrt cache
|
|
Chris PeBenito |
1b2f08 |
## </summary>
|
|
Chris PeBenito |
1b2f08 |
## <param name="domain">
|
|
Chris PeBenito |
1b2f08 |
## <summary>
|
|
Chris PeBenito |
1b2f08 |
## Domain allowed access.
|
|
Chris PeBenito |
1b2f08 |
## </summary>
|
|
Chris PeBenito |
1b2f08 |
## </param>
|
|
Chris PeBenito |
1b2f08 |
#
|
|
Dan Walsh |
2968e0 |
interface(`abrt_cache_manage',`
|
|
Chris PeBenito |
1b2f08 |
gen_require(`
|
|
Chris PeBenito |
1b2f08 |
type abrt_var_cache_t;
|
|
Chris PeBenito |
1b2f08 |
')
|
|
Chris PeBenito |
1b2f08 |
|
|
Chris PeBenito |
1b2f08 |
manage_files_pattern($1, abrt_var_cache_t, abrt_var_cache_t)
|
|
Chris PeBenito |
1b2f08 |
')
|
|
Chris PeBenito |
1b2f08 |
|
|
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 |
1b2f08 |
######################################
|
|
Chris PeBenito |
1b2f08 |
## <summary>
|
|
Chris PeBenito |
1b2f08 |
## Read abrt PID files.
|
|
Chris PeBenito |
1b2f08 |
## </summary>
|
|
Chris PeBenito |
1b2f08 |
## <param name="domain">
|
|
Chris PeBenito |
1b2f08 |
## <summary>
|
|
Chris PeBenito |
1b2f08 |
## Domain allowed access.
|
|
Chris PeBenito |
1b2f08 |
## </summary>
|
|
Chris PeBenito |
1b2f08 |
## </param>
|
|
Chris PeBenito |
1b2f08 |
#
|
|
Chris PeBenito |
1b2f08 |
interface(`abrt_read_pid_files',`
|
|
Chris PeBenito |
1b2f08 |
gen_require(`
|
|
Chris PeBenito |
1b2f08 |
type abrt_var_run_t;
|
|
Chris PeBenito |
1b2f08 |
')
|
|
Chris PeBenito |
1b2f08 |
|
|
Chris PeBenito |
1b2f08 |
files_search_pids($1)
|
|
Chris PeBenito |
1b2f08 |
read_files_pattern($1, abrt_var_run_t, abrt_var_run_t)
|
|
Chris PeBenito |
1b2f08 |
')
|
|
Chris PeBenito |
1b2f08 |
|
|
Chris PeBenito |
b52122 |
######################################
|
|
Chris PeBenito |
b52122 |
## <summary>
|
|
Chris PeBenito |
b52122 |
## Create, read, write, and delete abrt PID files.
|
|
Chris PeBenito |
b52122 |
## </summary>
|
|
Chris PeBenito |
b52122 |
## <param name="domain">
|
|
Chris PeBenito |
b52122 |
## <summary>
|
|
Chris PeBenito |
b52122 |
## Domain allowed access.
|
|
Chris PeBenito |
b52122 |
## </summary>
|
|
Chris PeBenito |
b52122 |
## </param>
|
|
Chris PeBenito |
b52122 |
#
|
|
Chris PeBenito |
b52122 |
interface(`abrt_manage_pid_files',`
|
|
Chris PeBenito |
b52122 |
gen_require(`
|
|
Chris PeBenito |
b52122 |
type abrt_var_run_t;
|
|
Chris PeBenito |
b52122 |
')
|
|
Chris PeBenito |
b52122 |
|
|
Chris PeBenito |
b52122 |
files_search_pids($1)
|
|
Chris PeBenito |
b52122 |
manage_files_pattern($1, abrt_var_run_t, abrt_var_run_t)
|
|
Chris PeBenito |
b52122 |
')
|
|
Chris PeBenito |
b52122 |
|
|
Dan Walsh |
3eaa99 |
########################################
|
|
Dan Walsh |
3eaa99 |
## <summary>
|
|
Dan Walsh |
3eaa99 |
## Read and write abrt fifo files.
|
|
Dan Walsh |
3eaa99 |
## </summary>
|
|
Dan Walsh |
3eaa99 |
## <param name="domain">
|
|
Dan Walsh |
3eaa99 |
## <summary>
|
|
Dan Walsh |
3eaa99 |
## Domain allowed access.
|
|
Dan Walsh |
3eaa99 |
## </summary>
|
|
Dan Walsh |
3eaa99 |
## </param>
|
|
Dan Walsh |
3eaa99 |
#
|
|
Dan Walsh |
3eaa99 |
interface(`abrt_rw_fifo_file',`
|
|
Dan Walsh |
3eaa99 |
gen_require(`
|
|
Dan Walsh |
3eaa99 |
type abrt_t;
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
allow $1 abrt_t:fifo_file rw_inherited_fifo_file_perms;
|
|
Dan Walsh |
3eaa99 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Chris PeBenito |
e3a90e |
#####################################
|
|
Chris PeBenito |
e3a90e |
## <summary>
|
|
Chris PeBenito |
1b2f08 |
## 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 |
1b2f08 |
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 |
1b2f08 |
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 |
')
|