Chris PeBenito 853692
Chris PeBenito 853692
policy_module(tripwire,1.0.0)
Chris PeBenito 853692
Chris PeBenito 853692
########################################
Chris PeBenito 853692
#
Chris PeBenito 853692
# Declarations
Chris PeBenito 853692
#
Chris PeBenito 853692
Chris PeBenito 853692
type siggen_t;
Chris PeBenito 853692
type siggen_exec_t;
Chris PeBenito 853692
domain_type(siggen_t)
Chris PeBenito 853692
domain_entry_file(siggen_t,siggen_exec_t)
Chris PeBenito 853692
Chris PeBenito 853692
type tripwire_t;
Chris PeBenito 853692
type tripwire_exec_t;
Chris PeBenito 853692
domain_type(tripwire_t)
Chris PeBenito 853692
domain_entry_file(tripwire_t,tripwire_exec_t)
Chris PeBenito 853692
role system_r types tripwire_t;
Chris PeBenito 853692
Chris PeBenito 853692
type tripwire_etc_t;
Chris PeBenito 853692
files_config_file(tripwire_etc_t)
Chris PeBenito 853692
Chris PeBenito 853692
type tripwire_report_t;
Chris PeBenito 853692
files_type(tripwire_report_t)
Chris PeBenito 853692
Chris PeBenito 853692
type tripwire_tmp_t;
Chris PeBenito 853692
files_tmp_file(tripwire_tmp_t)
Chris PeBenito 853692
Chris PeBenito 853692
type tripwire_var_lib_t;
Chris PeBenito 853692
files_type(tripwire_var_lib_t)
Chris PeBenito 853692
Chris PeBenito 853692
type twadmin_t;
Chris PeBenito 853692
type twadmin_exec_t;
Chris PeBenito 853692
domain_type(twadmin_t)
Chris PeBenito 853692
domain_entry_file(twadmin_t,twadmin_exec_t)
Chris PeBenito 853692
Chris PeBenito 853692
type twprint_t;
Chris PeBenito 853692
type twprint_exec_t;
Chris PeBenito 853692
domain_type(twprint_t)
Chris PeBenito 853692
domain_entry_file(twprint_t,twprint_exec_t)
Chris PeBenito 853692
Chris PeBenito 853692
########################################
Chris PeBenito 853692
#
Chris PeBenito 853692
# Tripwire local policy
Chris PeBenito 853692
#
Chris PeBenito 853692
Chris PeBenito 853692
allow tripwire_t self:capability { setgid setuid dac_override };
Chris PeBenito 853692
Chris PeBenito c0868a
allow tripwire_t tripwire_etc_t:dir list_dir_perms;
Chris PeBenito c0868a
read_files_pattern(tripwire_t,tripwire_etc_t,tripwire_etc_t)
Chris PeBenito c0868a
read_lnk_files_pattern(tripwire_t,tripwire_etc_t,tripwire_etc_t)
Chris PeBenito 853692
files_search_etc(tripwire_t)
Chris PeBenito 853692
Chris PeBenito 853692
# Tripwire report files
Chris PeBenito c0868a
manage_dirs_pattern(tripwire_t,tripwire_report_t,tripwire_report_t)
Chris PeBenito c0868a
manage_files_pattern(tripwire_t,tripwire_report_t,tripwire_report_t)
Chris PeBenito c0868a
manage_lnk_files_pattern(tripwire_t,tripwire_report_t,tripwire_report_t)
Chris PeBenito c0868a
Chris PeBenito c0868a
manage_dirs_pattern(tripwire_t,tripwire_tmp_t,tripwire_tmp_t)
Chris PeBenito c0868a
manage_files_pattern(tripwire_t,tripwire_tmp_t,tripwire_tmp_t)
Chris PeBenito c0868a
manage_lnk_files_pattern(tripwire_t,tripwire_tmp_t,tripwire_tmp_t)
Chris PeBenito c0868a
manage_fifo_files_pattern(tripwire_t,tripwire_tmp_t,tripwire_tmp_t)
Chris PeBenito c0868a
manage_sock_files_pattern(tripwire_t,tripwire_tmp_t,tripwire_tmp_t)
Chris PeBenito c0868a
files_tmp_filetrans(tripwire_t,tripwire_tmp_t,{ dir file lnk_file sock_file fifo_file })
Chris PeBenito c0868a
Chris PeBenito c0868a
manage_files_pattern(tripwire_t,tripwire_var_lib_t,tripwire_var_lib_t)
Chris PeBenito 853692
files_var_lib_filetrans(tripwire_t,tripwire_var_lib_t,file)
Chris PeBenito 853692
Chris PeBenito 853692
kernel_read_system_state(tripwire_t)
Chris PeBenito 853692
kernel_read_network_state(tripwire_t)
Chris PeBenito 853692
kernel_read_software_raid_state(tripwire_t)
Chris PeBenito 853692
kernel_getattr_core_if(tripwire_t)
Chris PeBenito 853692
kernel_getattr_message_if(tripwire_t)
Chris PeBenito 853692
kernel_read_kernel_sysctls(tripwire_t)
Chris PeBenito 853692
Chris PeBenito 853692
corecmd_exec_shell(tripwire_t)
Chris PeBenito 8021cb
corecmd_exec_bin(tripwire_t)
Chris PeBenito 853692
Chris PeBenito 853692
domain_use_interactive_fds(tripwire_t)
Chris PeBenito 853692
Chris PeBenito 853692
files_read_all_files(tripwire_t)
Chris PeBenito 853692
files_read_all_symlinks(tripwire_t)
Chris PeBenito 853692
files_getattr_all_pipes(tripwire_t)
Chris PeBenito 853692
files_getattr_all_sockets(tripwire_t)
Chris PeBenito 853692
Chris PeBenito 853692
libs_use_ld_so(tripwire_t)
Chris PeBenito 853692
libs_use_shared_libs(tripwire_t)
Chris PeBenito 853692
Chris PeBenito 853692
logging_send_syslog_msg(tripwire_t)
Chris PeBenito 853692
Chris PeBenito 853692
optional_policy(`
Chris PeBenito 853692
	cron_system_entry(tripwire_t,tripwire_exec_t)
Chris PeBenito 853692
')
Chris PeBenito 853692
Chris PeBenito 853692
########################################
Chris PeBenito 853692
#
Chris PeBenito 853692
# Twadmin local policy
Chris PeBenito 853692
#
Chris PeBenito 853692
Chris PeBenito c0868a
manage_dirs_pattern(twadmin_t,tripwire_etc_t,tripwire_etc_t)
Chris PeBenito c0868a
manage_files_pattern(twadmin_t,tripwire_etc_t,tripwire_etc_t)
Chris PeBenito c0868a
manage_lnk_files_pattern(twadmin_t,tripwire_etc_t,tripwire_etc_t)
Chris PeBenito 853692
Chris PeBenito 853692
domain_use_interactive_fds(twadmin_t)
Chris PeBenito 853692
Chris PeBenito 853692
libs_use_ld_so(twadmin_t)
Chris PeBenito 853692
libs_use_shared_libs(twadmin_t)
Chris PeBenito 853692
Chris PeBenito 853692
logging_send_syslog_msg(twadmin_t)
Chris PeBenito 853692
Chris PeBenito 853692
miscfiles_read_localization(twadmin_t)
Chris PeBenito 853692
Chris PeBenito 853692
########################################
Chris PeBenito 853692
#
Chris PeBenito 853692
# Twprint local policy
Chris PeBenito 853692
#
Chris PeBenito 853692
Chris PeBenito c0868a
allow twprint_t tripwire_etc_t:dir list_dir_perms;
Chris PeBenito c0868a
read_files_pattern(twprint_t,tripwire_etc_t,tripwire_etc_t)
Chris PeBenito c0868a
read_lnk_files_pattern(twprint_t,tripwire_etc_t,tripwire_etc_t)
Chris PeBenito 853692
Chris PeBenito c0868a
allow twprint_t tripwire_report_t:dir list_dir_perms;
Chris PeBenito c0868a
read_files_pattern(twprint_t,tripwire_report_t,tripwire_report_t)
Chris PeBenito c0868a
read_lnk_files_pattern(twprint_t,tripwire_report_t,tripwire_report_t)
Chris PeBenito 853692
Chris PeBenito c0868a
allow twprint_t tripwire_var_lib_t:dir list_dir_perms;
Chris PeBenito c0868a
read_files_pattern(twprint_t,tripwire_var_lib_t,tripwire_var_lib_t)
Chris PeBenito c0868a
read_lnk_files_pattern(twprint_t,tripwire_var_lib_t,tripwire_var_lib_t)
Chris PeBenito 853692
files_search_var_lib(twprint_t)
Chris PeBenito 853692
Chris PeBenito 853692
domain_use_interactive_fds(twprint_t)
Chris PeBenito 853692
Chris PeBenito 853692
libs_use_ld_so(twprint_t)
Chris PeBenito 853692
libs_use_shared_libs(twprint_t)
Chris PeBenito 853692
Chris PeBenito 853692
logging_send_syslog_msg(twprint_t)
Chris PeBenito 853692
Chris PeBenito 853692
miscfiles_read_localization(twprint_t)
Chris PeBenito 853692
Chris PeBenito 853692
########################################
Chris PeBenito 853692
#
Chris PeBenito 853692
# Siggen local policy
Chris PeBenito 853692
#
Chris PeBenito 853692
Chris PeBenito 853692
domain_use_interactive_fds(siggen_t)
Chris PeBenito 853692
Chris PeBenito 853692
# Need permission to read files
Chris PeBenito 853692
files_read_all_files(siggen_t)
Chris PeBenito 853692
Chris PeBenito 853692
libs_use_ld_so(siggen_t)
Chris PeBenito 853692
libs_use_shared_libs(siggen_t)
Chris PeBenito 853692
Chris PeBenito 853692
logging_send_syslog_msg(siggen_t)
Chris PeBenito 853692
Chris PeBenito 853692
miscfiles_read_localization(siggen_t)