Chris PeBenito fa45da
Chris PeBenito fa45da
policy_module(aide,1.0.0)
Chris PeBenito fa45da
Chris PeBenito fa45da
########################################
Chris PeBenito fa45da
#
Chris PeBenito fa45da
# Declarations
Chris PeBenito fa45da
#
Chris PeBenito fa45da
Chris PeBenito fa45da
type aide_t;
Chris PeBenito fa45da
type aide_exec_t;
Chris PeBenito fa45da
domain_type(aide_t)
Chris PeBenito fa45da
domain_entry_file(aide_t,aide_exec_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
# log files
Chris PeBenito fa45da
type aide_log_t;
Chris PeBenito fa45da
logging_log_file(aide_log_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
# aide database
Chris PeBenito fa45da
type aide_db_t;
Chris PeBenito fa45da
files_type(aide_db_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
########################################
Chris PeBenito fa45da
#
Chris PeBenito fa45da
# aide local policy
Chris PeBenito fa45da
#
Chris PeBenito fa45da
Chris PeBenito fa45da
allow aide_t self:capability { dac_override fowner };
Chris PeBenito c0868a
Chris PeBenito c0868a
send_audit_msgs_pattern(aide_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
# database actions
Chris PeBenito c0868a
manage_files_pattern(aide_t,aide_db_t,aide_db_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
# logs
Chris PeBenito fa45da
allow aide_t aide_log_t:file manage_file_perms;
Chris PeBenito c0868a
logging_log_filetrans(aide_t,aide_log_t,file)
Chris PeBenito fa45da
Chris PeBenito fa45da
files_read_all_files(aide_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
libs_use_ld_so(aide_t)
Chris PeBenito fa45da
libs_use_shared_libs(aide_t)
Chris PeBenito fa45da
Chris PeBenito fa45da
seutil_use_newrole_fds(aide_t)