|
Chris PeBenito |
29af4c |
policy_module(calamaris, 1.6.0)
|
|
Chris PeBenito |
99c902 |
|
|
Chris PeBenito |
99c902 |
########################################
|
|
Chris PeBenito |
99c902 |
#
|
|
Chris PeBenito |
99c902 |
# Declarations
|
|
Chris PeBenito |
99c902 |
#
|
|
Chris PeBenito |
99c902 |
|
|
Chris PeBenito |
99c902 |
type calamaris_t;
|
|
Chris PeBenito |
99c902 |
type calamaris_exec_t;
|
|
Chris PeBenito |
0bfccd |
init_system_domain(calamaris_t, calamaris_exec_t)
|
|
Chris PeBenito |
99c902 |
|
|
Chris PeBenito |
99c902 |
type calamaris_www_t;
|
|
Chris PeBenito |
99c902 |
files_type(calamaris_www_t)
|
|
Chris PeBenito |
99c902 |
|
|
Chris PeBenito |
99c902 |
type calamaris_log_t;
|
|
Chris PeBenito |
99c902 |
logging_log_file(calamaris_log_t)
|
|
Chris PeBenito |
99c902 |
|
|
Chris PeBenito |
99c902 |
########################################
|
|
Chris PeBenito |
99c902 |
#
|
|
Chris PeBenito |
99c902 |
# Local policy
|
|
Chris PeBenito |
99c902 |
#
|
|
Chris PeBenito |
99c902 |
|
|
Chris PeBenito |
99c902 |
# for when squid has a different UID
|
|
Chris PeBenito |
99c902 |
allow calamaris_t self:capability dac_override;
|
|
Chris PeBenito |
99c902 |
allow calamaris_t self:process { fork signal_perms setsched };
|
|
Chris PeBenito |
0b36a2 |
allow calamaris_t self:fifo_file rw_fifo_file_perms;
|
|
Chris PeBenito |
99c902 |
allow calamaris_t self:unix_stream_socket create_stream_socket_perms;
|
|
Chris PeBenito |
99c902 |
allow calamaris_t self:tcp_socket create_stream_socket_perms;
|
|
Chris PeBenito |
99c902 |
allow calamaris_t self:udp_socket create_socket_perms;
|
|
Chris PeBenito |
99c902 |
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(calamaris_t, calamaris_www_t, calamaris_www_t)
|
|
Chris PeBenito |
0bfccd |
manage_lnk_files_pattern(calamaris_t, calamaris_www_t, calamaris_www_t)
|
|
Chris PeBenito |
99c902 |
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(calamaris_t, calamaris_log_t, calamaris_log_t)
|
|
Chris PeBenito |
0bfccd |
logging_log_filetrans(calamaris_t, calamaris_log_t, { file dir })
|
|
Chris PeBenito |
99c902 |
|
|
Chris PeBenito |
99c902 |
kernel_read_all_sysctls(calamaris_t)
|
|
Chris PeBenito |
99c902 |
kernel_read_system_state(calamaris_t)
|
|
Chris PeBenito |
99c902 |
|
|
Chris PeBenito |
99c902 |
corecmd_exec_bin(calamaris_t)
|
|
Chris PeBenito |
99c902 |
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_unlabeled(calamaris_t)
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_netlabel(calamaris_t)
|
|
Chris PeBenito |
99c902 |
corenet_tcp_sendrecv_generic_if(calamaris_t)
|
|
Chris PeBenito |
99c902 |
corenet_udp_sendrecv_generic_if(calamaris_t)
|
|
Chris PeBenito |
c12621 |
corenet_tcp_sendrecv_generic_node(calamaris_t)
|
|
Chris PeBenito |
c12621 |
corenet_udp_sendrecv_generic_node(calamaris_t)
|
|
Chris PeBenito |
99c902 |
corenet_tcp_sendrecv_all_ports(calamaris_t)
|
|
Chris PeBenito |
99c902 |
corenet_udp_sendrecv_all_ports(calamaris_t)
|
|
Chris PeBenito |
99c902 |
|
|
Chris PeBenito |
99c902 |
dev_read_urand(calamaris_t)
|
|
Chris PeBenito |
99c902 |
|
|
Chris PeBenito |
99c902 |
files_search_pids(calamaris_t)
|
|
Chris PeBenito |
99c902 |
files_read_etc_files(calamaris_t)
|
|
Chris PeBenito |
99c902 |
files_read_usr_files(calamaris_t)
|
|
Chris PeBenito |
99c902 |
files_read_var_files(calamaris_t)
|
|
Chris PeBenito |
99c902 |
files_read_etc_runtime_files(calamaris_t)
|
|
Chris PeBenito |
99c902 |
|
|
Chris PeBenito |
99c902 |
libs_read_lib_files(calamaris_t)
|
|
Chris PeBenito |
99c902 |
|
|
Chris PeBenito |
962d6f |
auth_use_nsswitch(calamaris_t)
|
|
Chris PeBenito |
962d6f |
|
|
Chris PeBenito |
99c902 |
logging_send_syslog_msg(calamaris_t)
|
|
Chris PeBenito |
99c902 |
|
|
Chris PeBenito |
99c902 |
miscfiles_read_localization(calamaris_t)
|
|
Chris PeBenito |
99c902 |
|
|
Chris PeBenito |
296273 |
userdom_dontaudit_list_user_home_dirs(calamaris_t)
|
|
Chris PeBenito |
99c902 |
|
|
Chris PeBenito |
99c902 |
squid_read_log(calamaris_t)
|
|
Chris PeBenito |
99c902 |
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
99c902 |
apache_search_sys_content(calamaris_t)
|
|
Chris PeBenito |
99c902 |
')
|
|
Chris PeBenito |
99c902 |
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
0bfccd |
cron_system_entry(calamaris_t, calamaris_exec_t)
|
|
Chris PeBenito |
99c902 |
')
|
|
Chris PeBenito |
99c902 |
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
99c902 |
mta_send_mail(calamaris_t)
|
|
Chris PeBenito |
99c902 |
')
|