2005-09-12 21:40:56 +00:00
|
|
|
#DESC cvs - Concurrent Versions System
|
|
|
|
#
|
|
|
|
# Author: Dan Walsh <dwalsh@redhat.com>
|
|
|
|
#
|
|
|
|
# Depends: inetd.te
|
|
|
|
|
|
|
|
#################################
|
|
|
|
#
|
|
|
|
# Rules for the cvs_t domain.
|
|
|
|
#
|
|
|
|
# cvs_exec_t is the type of the cvs executable.
|
|
|
|
#
|
|
|
|
|
|
|
|
inetd_child_domain(cvs, tcp)
|
|
|
|
typeattribute cvs_t privmail;
|
|
|
|
typeattribute cvs_t auth_chkpwd;
|
|
|
|
|
2005-09-16 13:36:26 +00:00
|
|
|
type cvs_data_t, file_type, sysadmfile, customizable;
|
2005-09-12 21:40:56 +00:00
|
|
|
create_dir_file(cvs_t, cvs_data_t)
|
|
|
|
can_exec(cvs_t, { bin_t sbin_t shell_exec_t })
|
2005-09-16 13:36:26 +00:00
|
|
|
allow cvs_t bin_t:dir search;
|
|
|
|
allow cvs_t { bin_t sbin_t }:lnk_file read;
|
2005-09-12 21:40:56 +00:00
|
|
|
allow cvs_t etc_runtime_t:file { getattr read };
|
|
|
|
allow system_mail_t cvs_data_t:file { getattr read };
|
|
|
|
dontaudit cvs_t devtty_t:chr_file { read write };
|
2005-10-13 20:59:36 +00:00
|
|
|
ifdef(`kerberos.te', `
|
2005-09-16 13:36:26 +00:00
|
|
|
# Allow kerberos to work
|
|
|
|
allow cvs_t { krb5_keytab_t krb5_conf_t }:file r_file_perms;
|
|
|
|
dontaudit cvs_t krb5_conf_t:file write;
|
2005-10-13 20:59:36 +00:00
|
|
|
')
|
|
|
|
|