2006-11-16 20:56:24 +00:00
|
|
|
|
2008-11-11 16:38:34 +00:00
|
|
|
policy_module(aide, 1.4.2)
|
2006-11-16 20:56:24 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
type aide_t;
|
|
|
|
type aide_exec_t;
|
2008-07-23 21:38:39 +00:00
|
|
|
application_domain(aide_t, aide_exec_t)
|
2006-11-16 20:56:24 +00:00
|
|
|
|
|
|
|
# log files
|
|
|
|
type aide_log_t;
|
|
|
|
logging_log_file(aide_log_t)
|
|
|
|
|
|
|
|
# aide database
|
|
|
|
type aide_db_t;
|
|
|
|
files_type(aide_db_t)
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# aide local policy
|
|
|
|
#
|
|
|
|
|
|
|
|
allow aide_t self:capability { dac_override fowner };
|
2006-12-12 20:08:08 +00:00
|
|
|
|
2006-11-16 20:56:24 +00:00
|
|
|
# database actions
|
2008-07-23 21:38:39 +00:00
|
|
|
manage_files_pattern(aide_t, aide_db_t, aide_db_t)
|
2006-11-16 20:56:24 +00:00
|
|
|
|
|
|
|
# logs
|
2007-04-30 15:09:15 +00:00
|
|
|
manage_files_pattern(aide_t, aide_log_t, aide_log_t)
|
2008-07-23 21:38:39 +00:00
|
|
|
logging_log_filetrans(aide_t, aide_log_t, file)
|
2006-11-16 20:56:24 +00:00
|
|
|
|
|
|
|
files_read_all_files(aide_t)
|
|
|
|
|
2007-06-12 18:46:14 +00:00
|
|
|
logging_send_audit_msgs(aide_t)
|
|
|
|
|
2006-11-16 20:56:24 +00:00
|
|
|
seutil_use_newrole_fds(aide_t)
|
2008-11-05 16:10:46 +00:00
|
|
|
|
|
|
|
userdom_use_user_terminals(aide_t)
|