|
|
1ec3d1a |
## <summary>ABRT - automated bug-reporting tool</summary>
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
######################################
|
|
|
1ec3d1a |
## <summary>
|
|
|
1bafb67 |
## Creates types and rules for a basic
|
|
|
1bafb67 |
## ABRT daemon domain.
|
|
|
1bafb67 |
## </summary>
|
|
|
1bafb67 |
## <param name="prefix">
|
|
|
1bafb67 |
## <summary>
|
|
|
1bafb67 |
## Prefix for the domain.
|
|
|
1bafb67 |
## </summary>
|
|
|
1bafb67 |
## </param>
|
|
|
1bafb67 |
#
|
|
|
1bafb67 |
template(`abrt_basic_types_template',`
|
|
|
1bafb67 |
gen_require(`
|
|
|
1bafb67 |
attribute abrt_domain;
|
|
|
1bafb67 |
')
|
|
|
1bafb67 |
|
|
|
1bafb67 |
type $1_t, abrt_domain;
|
|
|
1bafb67 |
type $1_exec_t;
|
|
|
1bafb67 |
|
|
|
1bafb67 |
kernel_read_system_state($1_t)
|
|
|
1bafb67 |
')
|
|
|
1bafb67 |
|
|
|
1bafb67 |
######################################
|
|
|
1bafb67 |
## <summary>
|
|
|
1ec3d1a |
## Execute abrt in the abrt domain.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## <param name="domain">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Domain allowed to transition.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
interface(`abrt_domtrans',`
|
|
|
1ec3d1a |
gen_require(`
|
|
|
1ec3d1a |
type abrt_t, abrt_exec_t;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
corecmd_search_bin($1)
|
|
|
1ec3d1a |
domtrans_pattern($1, abrt_exec_t, abrt_t)
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
######################################
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Execute abrt in the caller domain.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## <param name="domain">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Domain allowed access.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
interface(`abrt_exec',`
|
|
|
1ec3d1a |
gen_require(`
|
|
|
1ec3d1a |
type abrt_exec_t;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
corecmd_search_bin($1)
|
|
|
1ec3d1a |
can_exec($1, abrt_exec_t)
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
########################################
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Send a null signal to abrt.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## <param name="domain">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Domain allowed access.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
interface(`abrt_signull',`
|
|
|
1ec3d1a |
gen_require(`
|
|
|
1ec3d1a |
type abrt_t;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
allow $1 abrt_t:process signull;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
########################################
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Allow the domain to read abrt state files in /proc.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## <param name="domain">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Domain allowed access.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
interface(`abrt_read_state',`
|
|
|
1ec3d1a |
gen_require(`
|
|
|
1ec3d1a |
type abrt_t;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
kernel_search_proc($1)
|
|
|
1ec3d1a |
ps_process_pattern($1, abrt_t)
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
########################################
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Connect to abrt over a unix stream socket.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## <param name="domain">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Domain allowed access.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
interface(`abrt_stream_connect',`
|
|
|
1ec3d1a |
gen_require(`
|
|
|
1ec3d1a |
type abrt_t, abrt_var_run_t;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
files_search_pids($1)
|
|
|
1ec3d1a |
stream_connect_pattern($1, abrt_var_run_t, abrt_var_run_t, abrt_t)
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
########################################
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Send and receive messages from
|
|
|
1ec3d1a |
## abrt over dbus.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## <param name="domain">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Domain allowed access.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
interface(`abrt_dbus_chat',`
|
|
|
1ec3d1a |
gen_require(`
|
|
|
1ec3d1a |
type abrt_t;
|
|
|
1ec3d1a |
class dbus send_msg;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
allow $1 abrt_t:dbus send_msg;
|
|
|
1ec3d1a |
allow abrt_t $1:dbus send_msg;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
#####################################
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Execute abrt-helper in the abrt-helper domain.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## <param name="domain">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Domain allowed to transition.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
interface(`abrt_domtrans_helper',`
|
|
|
1ec3d1a |
gen_require(`
|
|
|
1ec3d1a |
type abrt_helper_t, abrt_helper_exec_t;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
domtrans_pattern($1, abrt_helper_exec_t, abrt_helper_t)
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
########################################
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Execute abrt helper in the abrt_helper domain, and
|
|
|
1ec3d1a |
## allow the specified role the abrt_helper domain.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## <param name="domain">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Domain allowed to transition.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
## <param name="role">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Role allowed access.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
## <rolecap/>
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
interface(`abrt_run_helper',`
|
|
|
1ec3d1a |
gen_require(`
|
|
|
1ec3d1a |
type abrt_helper_t;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
abrt_domtrans_helper($1)
|
|
|
1ec3d1a |
role $2 types abrt_helper_t;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
########################################
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Read abrt cache
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## <param name="domain">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Domain allowed access.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
interface(`abrt_read_cache',`
|
|
|
1ec3d1a |
gen_require(`
|
|
|
1ec3d1a |
type abrt_var_cache_t;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
read_files_pattern($1, abrt_var_cache_t, abrt_var_cache_t)
|
|
|
1ec3d1a |
read_lnk_files_pattern($1, abrt_var_cache_t, abrt_var_cache_t)
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
########################################
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Append abrt cache
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## <param name="domain">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Domain allowed access.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
interface(`abrt_append_cache',`
|
|
|
1ec3d1a |
gen_require(`
|
|
|
1ec3d1a |
type abrt_var_cache_t;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
allow $1 abrt_var_cache_t:file append_inherited_file_perms;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
########################################
|
|
|
1ec3d1a |
## <summary>
|
|
|
e14f475 |
## Read/Write inherited abrt cache
|
|
|
e14f475 |
## </summary>
|
|
|
e14f475 |
## <param name="domain">
|
|
|
e14f475 |
## <summary>
|
|
|
e14f475 |
## Domain allowed access.
|
|
|
e14f475 |
## </summary>
|
|
|
e14f475 |
## </param>
|
|
|
e14f475 |
#
|
|
|
e14f475 |
interface(`abrt_rw_inherited_cache',`
|
|
|
e14f475 |
gen_require(`
|
|
|
e14f475 |
type abrt_var_cache_t;
|
|
|
e14f475 |
')
|
|
|
e14f475 |
|
|
|
e14f475 |
|
|
|
e14f475 |
allow $1 abrt_var_cache_t:file rw_inherited_file_perms;
|
|
|
e14f475 |
')
|
|
|
e14f475 |
|
|
|
e14f475 |
########################################
|
|
|
e14f475 |
## <summary>
|
|
|
1ec3d1a |
## Manage abrt cache
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## <param name="domain">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Domain allowed access.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
interface(`abrt_manage_cache',`
|
|
|
1ec3d1a |
gen_require(`
|
|
|
1ec3d1a |
type abrt_var_cache_t;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
manage_files_pattern($1, abrt_var_cache_t, abrt_var_cache_t)
|
|
|
1ec3d1a |
manage_lnk_files_pattern($1, abrt_var_cache_t, abrt_var_cache_t)
|
|
|
1ec3d1a |
manage_dirs_pattern($1, abrt_var_cache_t, abrt_var_cache_t)
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
####################################
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Read abrt configuration file.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## <param name="domain">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Domain allowed access.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
interface(`abrt_read_config',`
|
|
|
1ec3d1a |
gen_require(`
|
|
|
1ec3d1a |
type abrt_etc_t;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
files_search_etc($1)
|
|
|
1ec3d1a |
read_files_pattern($1, abrt_etc_t, abrt_etc_t)
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
######################################
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Read abrt logs.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## <param name="domain">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Domain allowed access.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
interface(`abrt_read_log',`
|
|
|
1ec3d1a |
gen_require(`
|
|
|
1ec3d1a |
type abrt_var_log_t;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
logging_search_logs($1)
|
|
|
1ec3d1a |
read_files_pattern($1, abrt_var_log_t, abrt_var_log_t)
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
######################################
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Read abrt PID files.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## <param name="domain">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Domain allowed access.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
interface(`abrt_read_pid_files',`
|
|
|
1ec3d1a |
gen_require(`
|
|
|
1ec3d1a |
type abrt_var_run_t;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
files_search_pids($1)
|
|
|
1ec3d1a |
read_files_pattern($1, abrt_var_run_t, abrt_var_run_t)
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
######################################
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Create, read, write, and delete abrt PID files.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## <param name="domain">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Domain allowed access.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
interface(`abrt_manage_pid_files',`
|
|
|
1ec3d1a |
gen_require(`
|
|
|
1ec3d1a |
type abrt_var_run_t;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
files_search_pids($1)
|
|
|
1ec3d1a |
manage_files_pattern($1, abrt_var_run_t, abrt_var_run_t)
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
########################################
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Read and write abrt fifo files.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## <param name="domain">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Domain allowed access.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
interface(`abrt_rw_fifo_file',`
|
|
|
1ec3d1a |
gen_require(`
|
|
|
1ec3d1a |
type abrt_t;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
allow $1 abrt_t:fifo_file rw_inherited_fifo_file_perms;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
########################################
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Execute abrt server in the abrt domain.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## <param name="domain">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Domain allowed to transition.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
interface(`abrt_systemctl',`
|
|
|
1ec3d1a |
gen_require(`
|
|
|
1ec3d1a |
type abrt_t;
|
|
|
1ec3d1a |
type abrt_unit_file_t;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
systemd_exec_systemctl($1)
|
|
|
1ec3d1a |
allow $1 abrt_unit_file_t:file read_file_perms;
|
|
|
1ec3d1a |
allow $1 abrt_unit_file_t:service manage_service_perms;
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
ps_process_pattern($1, abrt_t)
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
#####################################
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## All of the rules required to administrate
|
|
|
1ec3d1a |
## an abrt environment
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## <param name="domain">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Domain allowed access.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
## <param name="role">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## The role to be allowed to manage the abrt domain.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
## <rolecap/>
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
interface(`abrt_admin',`
|
|
|
1ec3d1a |
gen_require(`
|
|
|
1ec3d1a |
type abrt_t, abrt_etc_t;
|
|
|
1ec3d1a |
type abrt_var_cache_t, abrt_var_log_t;
|
|
|
1ec3d1a |
type abrt_var_run_t, abrt_tmp_t;
|
|
|
1ec3d1a |
type abrt_initrc_exec_t;
|
|
|
1ec3d1a |
type abrt_unit_file_t;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
allow $1 abrt_t:process { signal_perms };
|
|
|
1ec3d1a |
ps_process_pattern($1, abrt_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
tunable_policy(`deny_ptrace',`',`
|
|
|
1ec3d1a |
allow $1 abrt_t:process ptrace;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
init_labeled_script_domtrans($1, abrt_initrc_exec_t)
|
|
|
1ec3d1a |
domain_system_change_exemption($1)
|
|
|
1ec3d1a |
role_transition $2 abrt_initrc_exec_t system_r;
|
|
|
1ec3d1a |
allow $2 system_r;
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
files_list_etc($1)
|
|
|
1ec3d1a |
admin_pattern($1, abrt_etc_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
logging_list_logs($1)
|
|
|
1ec3d1a |
admin_pattern($1, abrt_var_log_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
files_list_var($1)
|
|
|
1ec3d1a |
admin_pattern($1, abrt_var_cache_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
files_list_pids($1)
|
|
|
1ec3d1a |
admin_pattern($1, abrt_var_run_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
files_list_tmp($1)
|
|
|
1ec3d1a |
admin_pattern($1, abrt_tmp_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
abrt_systemctl($1)
|
|
|
1ec3d1a |
admin_pattern($1, abrt_unit_file_t)
|
|
|
1ec3d1a |
allow $1 abrt_unit_file_t:service all_service_perms;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
####################################
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Execute abrt-retrace in the abrt-retrace domain.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## <param name="domain">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Domain allowed to transition.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
interface(`abrt_domtrans_retrace_worker',`
|
|
|
1ec3d1a |
gen_require(`
|
|
|
1ec3d1a |
type abrt_retrace_worker_t, abrt_retrace_worker_exec_t;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
corecmd_search_bin($1)
|
|
|
1ec3d1a |
domtrans_pattern($1, abrt_retrace_worker_exec_t, abrt_retrace_worker_t)
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
######################################
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Manage abrt retrace server cache
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## <param name="domain">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Domain allowed access.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
interface(`abrt_manage_spool_retrace',`
|
|
|
1ec3d1a |
gen_require(`
|
|
|
1ec3d1a |
type abrt_retrace_spool_t;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
manage_dirs_pattern($1, abrt_retrace_spool_t, abrt_retrace_spool_t)
|
|
|
1ec3d1a |
manage_files_pattern($1, abrt_retrace_spool_t, abrt_retrace_spool_t)
|
|
|
1ec3d1a |
manage_lnk_files_pattern($1, abrt_retrace_spool_t, abrt_retrace_spool_t)
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
#####################################
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Read abrt retrace server cache
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## <param name="domain">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Domain allowed access.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
interface(`abrt_read_spool_retrace',`
|
|
|
1ec3d1a |
gen_require(`
|
|
|
1ec3d1a |
type abrt_retrace_spool_t;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
list_dirs_pattern($1, abrt_retrace_spool_t, abrt_retrace_spool_t)
|
|
|
1ec3d1a |
read_files_pattern($1, abrt_retrace_spool_t, abrt_retrace_spool_t)
|
|
|
1ec3d1a |
read_lnk_files_pattern($1, abrt_retrace_spool_t, abrt_retrace_spool_t)
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
#####################################
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Read abrt retrace server cache
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## <param name="domain">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Domain allowed access.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
interface(`abrt_read_cache_retrace',`
|
|
|
1ec3d1a |
gen_require(`
|
|
|
1ec3d1a |
type abrt_retrace_cache_t;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
list_dirs_pattern($1, abrt_retrace_cache_t, abrt_retrace_cache_t)
|
|
|
1ec3d1a |
read_files_pattern($1, abrt_retrace_cache_t, abrt_retrace_cache_t)
|
|
|
1ec3d1a |
read_lnk_files_pattern($1, abrt_retrace_cache_t, abrt_retrace_cache_t)
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
########################################
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Do not audit attempts to write abrt sock files
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## <param name="domain">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Domain to not audit.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
interface(`abrt_dontaudit_write_sock_file',`
|
|
|
1ec3d1a |
gen_require(`
|
|
|
1ec3d1a |
type abrt_t;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
dontaudit $1 abrt_t:sock_file write;
|
|
|
1ec3d1a |
')
|