|
Chris PeBenito |
93070c |
|
|
Chris PeBenito |
d3d270 |
policy_module(cvs,1.2.0)
|
|
Chris PeBenito |
93070c |
|
|
Chris PeBenito |
93070c |
########################################
|
|
Chris PeBenito |
93070c |
#
|
|
Chris PeBenito |
93070c |
# Declarations
|
|
Chris PeBenito |
93070c |
#
|
|
Chris PeBenito |
93070c |
|
|
Chris PeBenito |
93070c |
type cvs_t;
|
|
Chris PeBenito |
93070c |
type cvs_exec_t;
|
|
Chris PeBenito |
93070c |
inetd_tcp_service_domain(cvs_t,cvs_exec_t)
|
|
Chris PeBenito |
93070c |
role system_r types cvs_t;
|
|
Chris PeBenito |
93070c |
|
|
Chris PeBenito |
93070c |
type cvs_data_t; #, customizable;
|
|
Chris PeBenito |
93070c |
files_type(cvs_data_t)
|
|
Chris PeBenito |
93070c |
|
|
Chris PeBenito |
93070c |
type cvs_tmp_t;
|
|
Chris PeBenito |
93070c |
files_tmp_file(cvs_tmp_t)
|
|
Chris PeBenito |
93070c |
|
|
Chris PeBenito |
93070c |
type cvs_var_run_t;
|
|
Chris PeBenito |
93070c |
files_pid_file(cvs_var_run_t)
|
|
Chris PeBenito |
93070c |
|
|
Chris PeBenito |
93070c |
########################################
|
|
Chris PeBenito |
93070c |
#
|
|
Chris PeBenito |
93070c |
# Local policy
|
|
Chris PeBenito |
93070c |
#
|
|
Chris PeBenito |
93070c |
|
|
Chris PeBenito |
93070c |
allow cvs_t self:process signal_perms;
|
|
Chris PeBenito |
93070c |
allow cvs_t self:fifo_file rw_file_perms;
|
|
Chris PeBenito |
93070c |
allow cvs_t self:tcp_socket connected_stream_socket_perms;
|
|
Chris PeBenito |
93070c |
# for identd; cjp: this should probably only be inetd_child rules?
|
|
Chris PeBenito |
93070c |
allow cvs_t self:netlink_tcpdiag_socket r_netlink_socket_perms;
|
|
Chris PeBenito |
93070c |
allow cvs_t self:capability { setuid setgid };
|
|
Chris PeBenito |
93070c |
|
|
Chris PeBenito |
93070c |
allow cvs_t cvs_data_t:dir create_dir_perms;
|
|
Chris PeBenito |
93070c |
allow cvs_t cvs_data_t:file create_file_perms;
|
|
Chris PeBenito |
93070c |
allow cvs_t cvs_data_t:lnk_file create_lnk_perms;
|
|
Chris PeBenito |
93070c |
|
|
Chris PeBenito |
93070c |
allow cvs_t cvs_tmp_t:dir create_dir_perms;
|
|
Chris PeBenito |
93070c |
allow cvs_t cvs_tmp_t:file create_file_perms;
|
|
Chris PeBenito |
103fe2 |
files_tmp_filetrans(cvs_t, cvs_tmp_t, { file dir })
|
|
Chris PeBenito |
93070c |
|
|
Chris PeBenito |
93070c |
allow cvs_t cvs_var_run_t:file create_file_perms;
|
|
Chris PeBenito |
33acca |
allow cvs_t cvs_var_run_t:dir rw_dir_perms;
|
|
Chris PeBenito |
1c1ac6 |
files_pid_filetrans(cvs_t,cvs_var_run_t,file)
|
|
Chris PeBenito |
93070c |
|
|
Chris PeBenito |
445522 |
kernel_read_kernel_sysctls(cvs_t)
|
|
Chris PeBenito |
93070c |
kernel_read_system_state(cvs_t)
|
|
Chris PeBenito |
93070c |
kernel_read_network_state(cvs_t)
|
|
Chris PeBenito |
93070c |
|
|
Chris PeBenito |
93070c |
corenet_tcp_sendrecv_all_if(cvs_t)
|
|
Chris PeBenito |
93070c |
corenet_udp_sendrecv_all_if(cvs_t)
|
|
Chris PeBenito |
93070c |
corenet_raw_sendrecv_all_if(cvs_t)
|
|
Chris PeBenito |
93070c |
corenet_tcp_sendrecv_all_nodes(cvs_t)
|
|
Chris PeBenito |
93070c |
corenet_udp_sendrecv_all_nodes(cvs_t)
|
|
Chris PeBenito |
93070c |
corenet_raw_sendrecv_all_nodes(cvs_t)
|
|
Chris PeBenito |
93070c |
corenet_tcp_sendrecv_all_ports(cvs_t)
|
|
Chris PeBenito |
93070c |
corenet_udp_sendrecv_all_ports(cvs_t)
|
|
Chris PeBenito |
bd7037 |
corenet_non_ipsec_sendrecv(cvs_t)
|
|
Chris PeBenito |
93070c |
corenet_tcp_bind_all_nodes(cvs_t)
|
|
Chris PeBenito |
93070c |
corenet_udp_bind_all_nodes(cvs_t)
|
|
Chris PeBenito |
93070c |
|
|
Chris PeBenito |
93070c |
dev_read_urand(cvs_t)
|
|
Chris PeBenito |
93070c |
|
|
Chris PeBenito |
93070c |
fs_getattr_xattr_fs(cvs_t)
|
|
Chris PeBenito |
93070c |
|
|
Chris PeBenito |
93070c |
auth_domtrans_chk_passwd(cvs_t)
|
|
Chris PeBenito |
93070c |
|
|
Chris PeBenito |
93070c |
corecmd_exec_bin(cvs_t)
|
|
Chris PeBenito |
93070c |
corecmd_exec_sbin(cvs_t)
|
|
Chris PeBenito |
93070c |
corecmd_exec_shell(cvs_t)
|
|
Chris PeBenito |
93070c |
|
|
Chris PeBenito |
93070c |
files_read_etc_files(cvs_t)
|
|
Chris PeBenito |
93070c |
files_read_etc_runtime_files(cvs_t)
|
|
Chris PeBenito |
93070c |
# for identd; cjp: this should probably only be inetd_child rules?
|
|
Chris PeBenito |
93070c |
files_search_home(cvs_t)
|
|
Chris PeBenito |
93070c |
|
|
Chris PeBenito |
93070c |
libs_use_ld_so(cvs_t)
|
|
Chris PeBenito |
93070c |
libs_use_shared_libs(cvs_t)
|
|
Chris PeBenito |
93070c |
|
|
Chris PeBenito |
93070c |
logging_send_syslog_msg(cvs_t)
|
|
Chris PeBenito |
93070c |
|
|
Chris PeBenito |
93070c |
miscfiles_read_localization(cvs_t)
|
|
Chris PeBenito |
93070c |
|
|
Chris PeBenito |
93070c |
sysnet_read_config(cvs_t)
|
|
Chris PeBenito |
93070c |
|
|
Chris PeBenito |
93070c |
mta_send_mail(cvs_t)
|
|
Chris PeBenito |
93070c |
|
|
Chris PeBenito |
bf080a |
# cjp: typeattribute doesnt work in conditionals yet
|
|
Chris PeBenito |
bf080a |
auth_can_read_shadow_passwords(cvs_t)
|
|
Chris PeBenito |
bf080a |
tunable_policy(`allow_cvs_read_shadow',`
|
|
Chris PeBenito |
bf080a |
auth_tunable_read_shadow(cvs_t)
|
|
Chris PeBenito |
bf080a |
')
|
|
Chris PeBenito |
bf080a |
|
|
Chris PeBenito |
132880 |
optional_policy(`kerberos',`
|
|
Chris PeBenito |
93070c |
kerberos_use(cvs_t)
|
|
Chris PeBenito |
93070c |
kerberos_read_keytab(cvs_t)
|
|
Chris PeBenito |
93070c |
kerberos_read_config(cvs_t)
|
|
Chris PeBenito |
93070c |
kerberos_dontaudit_write_config(cvs_t)
|
|
Chris PeBenito |
93070c |
')
|
|
Chris PeBenito |
93070c |
|
|
Chris PeBenito |
132880 |
optional_policy(`nis',`
|
|
Chris PeBenito |
93070c |
nis_use_ypbind(cvs_t)
|
|
Chris PeBenito |
93070c |
')
|
|
Chris PeBenito |
93070c |
|
|
Chris PeBenito |
132880 |
optional_policy(`nscd',`
|
|
Chris PeBenito |
1815ba |
nscd_socket_use(cvs_t)
|
|
Chris PeBenito |
93070c |
')
|