|
Chris PeBenito |
020cbe |
|
|
Chris PeBenito |
a225f9 |
policy_module(logwatch,1.0.1)
|
|
Chris PeBenito |
020cbe |
|
|
Chris PeBenito |
020cbe |
#################################
|
|
Chris PeBenito |
020cbe |
#
|
|
Chris PeBenito |
020cbe |
# Declarations
|
|
Chris PeBenito |
020cbe |
#
|
|
Chris PeBenito |
020cbe |
|
|
Chris PeBenito |
020cbe |
type logwatch_t;
|
|
Chris PeBenito |
020cbe |
type logwatch_exec_t;
|
|
Chris PeBenito |
020cbe |
domain_type(logwatch_t)
|
|
Chris PeBenito |
020cbe |
domain_entry_file(logwatch_t,logwatch_exec_t)
|
|
Chris PeBenito |
020cbe |
role system_r types logwatch_t;
|
|
Chris PeBenito |
020cbe |
|
|
Chris PeBenito |
020cbe |
type logwatch_cache_t;
|
|
Chris PeBenito |
020cbe |
files_type(logwatch_cache_t)
|
|
Chris PeBenito |
020cbe |
|
|
Chris PeBenito |
020cbe |
type logwatch_tmp_t;
|
|
Chris PeBenito |
020cbe |
files_tmp_file(logwatch_tmp_t)
|
|
Chris PeBenito |
020cbe |
|
|
Chris PeBenito |
020cbe |
########################################
|
|
Chris PeBenito |
020cbe |
#
|
|
Chris PeBenito |
020cbe |
# Local policy
|
|
Chris PeBenito |
020cbe |
#
|
|
Chris PeBenito |
020cbe |
|
|
Chris PeBenito |
020cbe |
allow logwatch_t self:capability setgid;
|
|
Chris PeBenito |
020cbe |
allow logwatch_t self:fifo_file rw_file_perms;
|
|
Chris PeBenito |
020cbe |
allow logwatch_t self:unix_stream_socket create_stream_socket_perms;
|
|
Chris PeBenito |
020cbe |
|
|
Chris PeBenito |
020cbe |
allow logwatch_t logwatch_cache_t:dir create_dir_perms;
|
|
Chris PeBenito |
020cbe |
allow logwatch_t logwatch_cache_t:file create_file_perms;
|
|
Chris PeBenito |
020cbe |
|
|
Chris PeBenito |
020cbe |
allow logwatch_t logwatch_tmp_t:dir create_dir_perms;
|
|
Chris PeBenito |
020cbe |
allow logwatch_t logwatch_tmp_t:file create_file_perms;
|
|
Chris PeBenito |
9d5949 |
files_filetrans_tmp(logwatch_t, logwatch_tmp_t, { file dir })
|
|
Chris PeBenito |
020cbe |
|
|
Chris PeBenito |
020cbe |
kernel_read_fs_sysctl(logwatch_t)
|
|
Chris PeBenito |
020cbe |
kernel_read_kernel_sysctl(logwatch_t)
|
|
Chris PeBenito |
020cbe |
kernel_read_system_state(logwatch_t)
|
|
Chris PeBenito |
020cbe |
|
|
Chris PeBenito |
a225f9 |
corecmd_read_sbin_symlink(logwatch_t)
|
|
Chris PeBenito |
020cbe |
corecmd_read_sbin_file(logwatch_t)
|
|
Chris PeBenito |
020cbe |
corecmd_exec_bin(logwatch_t)
|
|
Chris PeBenito |
020cbe |
corecmd_exec_shell(logwatch_t)
|
|
Chris PeBenito |
020cbe |
|
|
Chris PeBenito |
020cbe |
dev_read_urand(logwatch_t)
|
|
Chris PeBenito |
020cbe |
|
|
Chris PeBenito |
020cbe |
# Read /proc/PID directories for all domains.
|
|
Chris PeBenito |
020cbe |
domain_read_all_domains_state(logwatch_t)
|
|
Chris PeBenito |
020cbe |
|
|
Chris PeBenito |
020cbe |
files_read_etc_files(logwatch_t)
|
|
Chris PeBenito |
020cbe |
files_read_etc_runtime_files(logwatch_t)
|
|
Chris PeBenito |
020cbe |
files_read_usr_files(logwatch_t)
|
|
Chris PeBenito |
020cbe |
files_search_spool(logwatch_t)
|
|
Chris PeBenito |
020cbe |
files_dontaudit_search_home(logwatch_t)
|
|
Chris PeBenito |
020cbe |
|
|
Chris PeBenito |
020cbe |
fs_getattr_all_fs(logwatch_t)
|
|
Chris PeBenito |
020cbe |
|
|
Chris PeBenito |
020cbe |
term_dontaudit_getattr_pty_dir(logwatch_t)
|
|
Chris PeBenito |
020cbe |
term_dontaudit_list_ptys(logwatch_t)
|
|
Chris PeBenito |
020cbe |
|
|
Chris PeBenito |
020cbe |
auth_dontaudit_read_shadow(logwatch_t)
|
|
Chris PeBenito |
020cbe |
|
|
Chris PeBenito |
020cbe |
libs_use_ld_so(logwatch_t)
|
|
Chris PeBenito |
020cbe |
libs_use_shared_libs(logwatch_t)
|
|
Chris PeBenito |
020cbe |
libs_read_lib(logwatch_t)
|
|
Chris PeBenito |
020cbe |
|
|
Chris PeBenito |
020cbe |
logging_read_all_logs(logwatch_t)
|
|
Chris PeBenito |
020cbe |
|
|
Chris PeBenito |
020cbe |
miscfiles_read_localization(logwatch_t)
|
|
Chris PeBenito |
020cbe |
|
|
Chris PeBenito |
a225f9 |
selinux_dontaudit_getattr_dir(logwatch_t)
|
|
Chris PeBenito |
a225f9 |
|
|
Chris PeBenito |
020cbe |
userdom_dontaudit_search_sysadm_home_dir(logwatch_t)
|
|
Chris PeBenito |
020cbe |
userdom_dontaudit_getattr_sysadm_home_dir(logwatch_t)
|
|
Chris PeBenito |
020cbe |
|
|
Chris PeBenito |
020cbe |
mta_send_mail(logwatch_t)
|
|
Chris PeBenito |
020cbe |
|
|
Chris PeBenito |
020cbe |
optional_policy(`apache',`
|
|
Chris PeBenito |
020cbe |
apache_read_log(logwatch_t)
|
|
Chris PeBenito |
020cbe |
')
|
|
Chris PeBenito |
020cbe |
|
|
Chris PeBenito |
020cbe |
optional_policy(`bind',`
|
|
Chris PeBenito |
020cbe |
bind_read_config(logwatch_t)
|
|
Chris PeBenito |
020cbe |
bind_read_zone(logwatch_t)
|
|
Chris PeBenito |
020cbe |
')
|
|
Chris PeBenito |
020cbe |
|
|
Chris PeBenito |
020cbe |
optional_policy(`cron',`
|
|
Chris PeBenito |
020cbe |
cron_system_entry(logwatch_t, logwatch_exec_t)
|
|
Chris PeBenito |
020cbe |
')
|
|
Chris PeBenito |
020cbe |
|
|
Chris PeBenito |
020cbe |
optional_policy(`mta',`
|
|
Chris PeBenito |
020cbe |
mta_getattr_spool(logwatch_t)
|
|
Chris PeBenito |
020cbe |
')
|
|
Chris PeBenito |
020cbe |
|
|
Chris PeBenito |
020cbe |
optional_policy(`nscd',`
|
|
Chris PeBenito |
020cbe |
nscd_use_socket(logwatch_t)
|
|
Chris PeBenito |
020cbe |
')
|
|
Chris PeBenito |
020cbe |
|
|
Chris PeBenito |
a225f9 |
optional_policy(`ntp',`
|
|
Chris PeBenito |
a225f9 |
ntp_domtrans(logwatch_t)
|
|
Chris PeBenito |
a225f9 |
')
|
|
Chris PeBenito |
a225f9 |
|
|
Chris PeBenito |
020cbe |
optional_policy(`rpc',`
|
|
Chris PeBenito |
020cbe |
rpc_search_nfs_state_data(logwatch_t)
|
|
Chris PeBenito |
020cbe |
')
|
|
Chris PeBenito |
020cbe |
|
|
Chris PeBenito |
020cbe |
optional_policy(`samba',`
|
|
Chris PeBenito |
020cbe |
samba_read_log(logwatch_t)
|
|
Chris PeBenito |
020cbe |
')
|