|
Chris PeBenito |
17de1b |
## <summary>Concurrent versions system</summary>
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Read the CVS data and metadata.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## <param name="domain">
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Domain allowed access.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## </param>
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
interface(`cvs_read_data',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
type cvs_data_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
8f800d |
list_dirs_pattern($1, cvs_data_t, cvs_data_t)
|
|
Chris PeBenito |
8f800d |
read_files_pattern($1, cvs_data_t, cvs_data_t)
|
|
Chris PeBenito |
8f800d |
read_lnk_files_pattern($1, cvs_data_t, cvs_data_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Allow the specified domain to execute cvs
|
|
Chris PeBenito |
17de1b |
## in the caller domain.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## <param name="domain">
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Domain allowed access.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## </param>
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
interface(`cvs_exec',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
type cvs_exec_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0bfccd |
can_exec($1, cvs_exec_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
3daef6 |
|
|
Chris PeBenito |
3daef6 |
########################################
|
|
Chris PeBenito |
3daef6 |
## <summary>
|
|
Chris PeBenito |
3daef6 |
## All of the rules required to administrate
|
|
Chris PeBenito |
3daef6 |
## an cvs environment
|
|
Chris PeBenito |
3daef6 |
## </summary>
|
|
Chris PeBenito |
3daef6 |
## <param name="domain">
|
|
Chris PeBenito |
3daef6 |
## <summary>
|
|
Chris PeBenito |
3daef6 |
## Domain allowed access.
|
|
Chris PeBenito |
3daef6 |
## </summary>
|
|
Chris PeBenito |
3daef6 |
## </param>
|
|
Chris PeBenito |
3daef6 |
## <param name="role">
|
|
Chris PeBenito |
3daef6 |
## <summary>
|
|
Chris PeBenito |
3daef6 |
## The role to be allowed to manage the cvs domain.
|
|
Chris PeBenito |
3daef6 |
## </summary>
|
|
Chris PeBenito |
3daef6 |
## </param>
|
|
Chris PeBenito |
3daef6 |
## <rolecap/>
|
|
Chris PeBenito |
3daef6 |
#
|
|
Chris PeBenito |
3daef6 |
interface(`cvs_admin',`
|
|
Chris PeBenito |
3daef6 |
gen_require(`
|
|
Chris PeBenito |
3daef6 |
type cvs_t, cvs_tmp_t;
|
|
Chris PeBenito |
3daef6 |
type cvs_data_t, cvs_var_run_t;
|
|
Chris PeBenito |
3daef6 |
type cvs_initrc_exec_t;
|
|
Chris PeBenito |
3daef6 |
')
|
|
Chris PeBenito |
3daef6 |
|
|
Chris PeBenito |
3daef6 |
allow $1 cvs_t:process { ptrace signal_perms };
|
|
Chris PeBenito |
3daef6 |
ps_process_pattern($1, cvs_t)
|
|
Chris PeBenito |
2a9837 |
|
|
Chris PeBenito |
3daef6 |
# Allow cvs_t to restart the apache service
|
|
Chris PeBenito |
3daef6 |
init_labeled_script_domtrans($1, cvs_initrc_exec_t)
|
|
Chris PeBenito |
3daef6 |
domain_system_change_exemption($1)
|
|
Chris PeBenito |
3daef6 |
role_transition $2 cvs_initrc_exec_t system_r;
|
|
Chris PeBenito |
3daef6 |
allow $2 system_r;
|
|
Chris PeBenito |
74993c |
|
|
Chris PeBenito |
74993c |
files_list_tmp($1)
|
|
Chris PeBenito |
74993c |
admin_pattern($1, cvs_tmp_t)
|
|
Chris PeBenito |
74993c |
|
|
Chris PeBenito |
74993c |
admin_pattern($1, cvs_data_t)
|
|
Chris PeBenito |
74993c |
|
|
Chris PeBenito |
74993c |
files_list_pids($1)
|
|
Chris PeBenito |
74993c |
admin_pattern($1, cvs_var_run_t)
|
|
Chris PeBenito |
3daef6 |
')
|