Chris PeBenito e3a90e
Chris PeBenito e3a90e
policy_module(abrt, 1.0.0)
Chris PeBenito e3a90e
Chris PeBenito e3a90e
########################################
Chris PeBenito e3a90e
#
Chris PeBenito e3a90e
# Declarations
Chris PeBenito e3a90e
#
Chris PeBenito e3a90e
Chris PeBenito e3a90e
type abrt_t;
Chris PeBenito e3a90e
type abrt_exec_t;
Chris PeBenito e3a90e
init_daemon_domain(abrt_t, abrt_exec_t)
Chris PeBenito e3a90e
Chris PeBenito e3a90e
type abrt_initrc_exec_t;
Chris PeBenito e3a90e
init_script_file(abrt_initrc_exec_t)
Chris PeBenito e3a90e
Chris PeBenito e3a90e
# etc files
Chris PeBenito e3a90e
type abrt_etc_t;
Chris PeBenito e3a90e
files_config_file(abrt_etc_t)
Chris PeBenito e3a90e
Chris PeBenito e3a90e
# log files
Chris PeBenito e3a90e
type abrt_var_log_t;
Chris PeBenito e3a90e
logging_log_file(abrt_var_log_t)
Chris PeBenito e3a90e
Chris PeBenito e3a90e
# tmp files
Chris PeBenito e3a90e
type abrt_tmp_t;
Chris PeBenito e3a90e
files_tmp_file(abrt_tmp_t)
Chris PeBenito e3a90e
Chris PeBenito e3a90e
# var/cache files
Chris PeBenito e3a90e
type abrt_var_cache_t;
Chris PeBenito e3a90e
files_type(abrt_var_cache_t)
Chris PeBenito e3a90e
Chris PeBenito e3a90e
# pid files
Chris PeBenito e3a90e
type abrt_var_run_t;
Chris PeBenito e3a90e
files_pid_file(abrt_var_run_t)
Chris PeBenito e3a90e
Chris PeBenito e3a90e
########################################
Chris PeBenito e3a90e
#
Chris PeBenito e3a90e
# abrt local policy
Chris PeBenito e3a90e
#
Chris PeBenito e3a90e
Chris PeBenito e3a90e
allow abrt_t self:capability { setuid setgid sys_nice dac_override };
Chris PeBenito e3a90e
allow abrt_t self:process { signal signull setsched getsched };
Chris PeBenito e3a90e
Chris PeBenito e3a90e
allow abrt_t self:fifo_file rw_fifo_file_perms;
Chris PeBenito e3a90e
allow abrt_t self:tcp_socket create_stream_socket_perms;
Chris PeBenito e3a90e
allow abrt_t self:udp_socket create_socket_perms;
Chris PeBenito e3a90e
allow abrt_t self:unix_dgram_socket create_socket_perms;
Chris PeBenito e3a90e
allow abrt_t self:netlink_route_socket r_netlink_socket_perms;
Chris PeBenito e3a90e
Chris PeBenito e3a90e
# abrt etc files
Chris PeBenito e3a90e
rw_files_pattern(abrt_t, abrt_etc_t, abrt_etc_t)
Chris PeBenito e3a90e
Chris PeBenito e3a90e
# log file
Chris PeBenito e3a90e
manage_files_pattern(abrt_t, abrt_var_log_t, abrt_var_log_t)
Chris PeBenito e3a90e
logging_log_filetrans(abrt_t, abrt_var_log_t, file)
Chris PeBenito e3a90e
Chris PeBenito e3a90e
# abrt tmp files 
Chris PeBenito e3a90e
manage_dirs_pattern(abrt_t, abrt_tmp_t, abrt_tmp_t)
Chris PeBenito e3a90e
manage_files_pattern(abrt_t, abrt_tmp_t, abrt_tmp_t)
Chris PeBenito e3a90e
files_tmp_filetrans(abrt_t, abrt_tmp_t, { file dir })
Chris PeBenito e3a90e
Chris PeBenito e3a90e
# abrt var/cache files
Chris PeBenito e3a90e
manage_files_pattern(abrt_t, abrt_var_cache_t, abrt_var_cache_t)
Chris PeBenito e3a90e
manage_dirs_pattern(abrt_t, abrt_var_cache_t, abrt_var_cache_t)
Chris PeBenito e3a90e
files_var_filetrans(abrt_t, abrt_var_cache_t, { file dir })
Chris PeBenito e3a90e
Chris PeBenito e3a90e
# abrt pid files
Chris PeBenito e3a90e
manage_files_pattern(abrt_t, abrt_var_run_t, abrt_var_run_t)
Chris PeBenito e3a90e
manage_dirs_pattern(abrt_t, abrt_var_run_t, abrt_var_run_t)
Chris PeBenito e3a90e
files_pid_filetrans(abrt_t, abrt_var_run_t, { file dir })
Chris PeBenito e3a90e
Chris PeBenito e3a90e
kernel_read_ring_buffer(abrt_t)
Chris PeBenito e3a90e
kernel_read_system_state(abrt_t)
Chris PeBenito e3a90e
kernel_rw_kernel_sysctl(abrt_t)
Chris PeBenito e3a90e
Chris PeBenito e3a90e
corecmd_exec_bin(abrt_t)
Chris PeBenito e3a90e
corecmd_exec_shell(abrt_t)
Chris PeBenito e3a90e
Chris PeBenito e3a90e
corenet_tcp_connect_http_port(abrt_t)
Chris PeBenito e3a90e
Chris PeBenito e3a90e
dev_read_urand(abrt_t)
Chris PeBenito e3a90e
Chris PeBenito e3a90e
files_getattr_all_files(abrt_t)
Chris PeBenito e3a90e
files_read_etc_files(abrt_t)
Chris PeBenito e3a90e
files_read_usr_files(abrt_t)
Chris PeBenito e3a90e
Chris PeBenito e3a90e
fs_list_inotifyfs(abrt_t)
Chris PeBenito e3a90e
fs_getattr_all_fs(abrt_t)
Chris PeBenito e3a90e
fs_getattr_all_dirs(abrt_t)
Chris PeBenito e3a90e
Chris PeBenito e3a90e
sysnet_read_config(abrt_t)
Chris PeBenito e3a90e
Chris PeBenito e3a90e
logging_read_generic_logs(abrt_t)
Chris PeBenito e3a90e
logging_send_syslog_msg(abrt_t)
Chris PeBenito e3a90e
Chris PeBenito e3a90e
miscfiles_read_certs(abrt_t)
Chris PeBenito e3a90e
miscfiles_read_localization(abrt_t)
Chris PeBenito e3a90e
Chris PeBenito e3a90e
# to run bugzilla plugin
Chris PeBenito e3a90e
# read ~/.abrt/Bugzilla.conf
Chris PeBenito e3a90e
userdom_read_user_home_content_files(abrt_t)
Chris PeBenito e3a90e
Chris PeBenito e3a90e
optional_policy(`
Chris PeBenito e3a90e
	dbus_connect_system_bus(abrt_t)
Chris PeBenito e3a90e
	dbus_system_bus_client(abrt_t)
Chris PeBenito e3a90e
')
Chris PeBenito e3a90e
Chris PeBenito e3a90e
# to install debuginfo packages 
Chris PeBenito e3a90e
optional_policy(`
Chris PeBenito e3a90e
	rpm_manage_db(abrt_t)
Chris PeBenito e3a90e
	rpm_domtrans(abrt_t)
Chris PeBenito e3a90e
')
Chris PeBenito e3a90e
Chris PeBenito e3a90e
# to run mailx plugin
Chris PeBenito e3a90e
optional_policy(`
Chris PeBenito e3a90e
	sendmail_domtrans(abrt_t)
Chris PeBenito e3a90e
')