Chris PeBenito 2705f9
#DESC cvs - Concurrent Versions System
Chris PeBenito 2705f9
#
Chris PeBenito 2705f9
# Author:  Dan Walsh <dwalsh@redhat.com>
Chris PeBenito 2705f9
#
Chris PeBenito 2705f9
# Depends: inetd.te
Chris PeBenito 2705f9
Chris PeBenito 2705f9
#################################
Chris PeBenito 2705f9
#
Chris PeBenito 2705f9
# Rules for the cvs_t domain.
Chris PeBenito 2705f9
#
Chris PeBenito 2705f9
# cvs_exec_t is the type of the cvs executable.
Chris PeBenito 2705f9
#
Chris PeBenito 2705f9
Chris PeBenito 2705f9
inetd_child_domain(cvs, tcp)
Chris PeBenito 2705f9
typeattribute cvs_t privmail;
Chris PeBenito 2705f9
typeattribute cvs_t auth_chkpwd;
Chris PeBenito 2705f9
Chris PeBenito a08248
type cvs_data_t, file_type, sysadmfile, customizable;
Chris PeBenito 2705f9
create_dir_file(cvs_t, cvs_data_t)
Chris PeBenito 2705f9
can_exec(cvs_t, { bin_t sbin_t shell_exec_t })
Chris PeBenito a08248
allow cvs_t bin_t:dir search;
Chris PeBenito a08248
allow cvs_t { bin_t sbin_t }:lnk_file read;
Chris PeBenito 2705f9
allow cvs_t etc_runtime_t:file { getattr read };
Chris PeBenito 2705f9
allow system_mail_t cvs_data_t:file { getattr read };
Chris PeBenito 2705f9
dontaudit cvs_t devtty_t:chr_file { read write };
Chris PeBenito 77f6e2
ifdef(`kerberos.te', `
Chris PeBenito a08248
# Allow kerberos to work
Chris PeBenito a08248
allow cvs_t { krb5_keytab_t krb5_conf_t }:file r_file_perms;
Chris PeBenito a08248
dontaudit cvs_t krb5_conf_t:file write;
Chris PeBenito 77f6e2
')
Chris PeBenito 77f6e2