|
Chris PeBenito |
99c902 |
|
|
Chris PeBenito |
e9c6cd |
policy_module(calamaris,1.2.1)
|
|
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 |
99c902 |
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 |
99c902 |
allow calamaris_t self:fifo_file { getattr read write ioctl };
|
|
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 |
c0868a |
manage_files_pattern(calamaris_t,calamaris_www_t,calamaris_www_t)
|
|
Chris PeBenito |
c0868a |
manage_lnk_files_pattern(calamaris_t,calamaris_www_t,calamaris_www_t)
|
|
Chris PeBenito |
99c902 |
|
|
Chris PeBenito |
c0868a |
manage_files_pattern(calamaris_t,calamaris_log_t,calamaris_log_t)
|
|
Chris PeBenito |
99c902 |
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 |
99c902 |
corenet_tcp_sendrecv_all_nodes(calamaris_t)
|
|
Chris PeBenito |
99c902 |
corenet_udp_sendrecv_all_nodes(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 |
libs_use_ld_so(calamaris_t)
|
|
Chris PeBenito |
99c902 |
libs_use_shared_libs(calamaris_t)
|
|
Chris PeBenito |
99c902 |
|
|
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 |
99c902 |
sysnet_read_config(calamaris_t)
|
|
Chris PeBenito |
99c902 |
|
|
Chris PeBenito |
e9c6cd |
sysadm_dontaudit_list_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 |
99c902 |
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 |
')
|
|
Chris PeBenito |
99c902 |
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
99c902 |
nis_use_ypbind(calamaris_t)
|
|
Chris PeBenito |
99c902 |
')
|