2006-03-21 20:12:24 +00:00
|
|
|
|
2008-07-02 14:07:57 +00:00
|
|
|
policy_module(calamaris, 1.3.0)
|
2006-03-21 20:12:24 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
type calamaris_t;
|
|
|
|
type calamaris_exec_t;
|
2008-07-23 21:38:39 +00:00
|
|
|
init_system_domain(calamaris_t, calamaris_exec_t)
|
2006-03-21 20:12:24 +00:00
|
|
|
|
|
|
|
type calamaris_www_t;
|
|
|
|
files_type(calamaris_www_t)
|
|
|
|
|
|
|
|
type calamaris_log_t;
|
|
|
|
logging_log_file(calamaris_log_t)
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local policy
|
|
|
|
#
|
|
|
|
|
|
|
|
# for when squid has a different UID
|
|
|
|
allow calamaris_t self:capability dac_override;
|
|
|
|
allow calamaris_t self:process { fork signal_perms setsched };
|
2008-10-16 16:09:20 +00:00
|
|
|
allow calamaris_t self:fifo_file rw_fifo_file_perms;
|
2006-03-21 20:12:24 +00:00
|
|
|
allow calamaris_t self:unix_stream_socket create_stream_socket_perms;
|
|
|
|
allow calamaris_t self:tcp_socket create_stream_socket_perms;
|
|
|
|
allow calamaris_t self:udp_socket create_socket_perms;
|
|
|
|
|
2008-07-23 21:38:39 +00:00
|
|
|
manage_files_pattern(calamaris_t, calamaris_www_t, calamaris_www_t)
|
|
|
|
manage_lnk_files_pattern(calamaris_t, calamaris_www_t, calamaris_www_t)
|
2006-03-21 20:12:24 +00:00
|
|
|
|
2008-07-23 21:38:39 +00:00
|
|
|
manage_files_pattern(calamaris_t, calamaris_log_t, calamaris_log_t)
|
|
|
|
logging_log_filetrans(calamaris_t, calamaris_log_t, { file dir })
|
2006-03-21 20:12:24 +00:00
|
|
|
|
|
|
|
kernel_read_all_sysctls(calamaris_t)
|
|
|
|
kernel_read_system_state(calamaris_t)
|
|
|
|
|
|
|
|
corecmd_exec_bin(calamaris_t)
|
|
|
|
|
2007-06-27 15:23:21 +00:00
|
|
|
corenet_all_recvfrom_unlabeled(calamaris_t)
|
|
|
|
corenet_all_recvfrom_netlabel(calamaris_t)
|
2006-03-21 20:12:24 +00:00
|
|
|
corenet_tcp_sendrecv_generic_if(calamaris_t)
|
|
|
|
corenet_udp_sendrecv_generic_if(calamaris_t)
|
|
|
|
corenet_tcp_sendrecv_all_nodes(calamaris_t)
|
|
|
|
corenet_udp_sendrecv_all_nodes(calamaris_t)
|
|
|
|
corenet_tcp_sendrecv_all_ports(calamaris_t)
|
|
|
|
corenet_udp_sendrecv_all_ports(calamaris_t)
|
|
|
|
|
|
|
|
dev_read_urand(calamaris_t)
|
|
|
|
|
|
|
|
files_search_pids(calamaris_t)
|
|
|
|
files_read_etc_files(calamaris_t)
|
|
|
|
files_read_usr_files(calamaris_t)
|
|
|
|
files_read_var_files(calamaris_t)
|
|
|
|
files_read_etc_runtime_files(calamaris_t)
|
|
|
|
|
|
|
|
libs_read_lib_files(calamaris_t)
|
|
|
|
|
|
|
|
logging_send_syslog_msg(calamaris_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(calamaris_t)
|
|
|
|
|
|
|
|
sysnet_read_config(calamaris_t)
|
|
|
|
|
2008-04-29 13:58:34 +00:00
|
|
|
sysadm_dontaudit_list_home_dirs(calamaris_t)
|
2006-03-21 20:12:24 +00:00
|
|
|
|
|
|
|
squid_read_log(calamaris_t)
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2006-03-21 20:12:24 +00:00
|
|
|
apache_search_sys_content(calamaris_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2008-07-23 21:38:39 +00:00
|
|
|
cron_system_entry(calamaris_t, calamaris_exec_t)
|
2006-03-21 20:12:24 +00:00
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2006-03-21 20:12:24 +00:00
|
|
|
mta_send_mail(calamaris_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2006-03-21 20:12:24 +00:00
|
|
|
nis_use_ypbind(calamaris_t)
|
|
|
|
')
|