|
Dominick Grift |
60af2e2 |
## <summary>Bugtracker.</summary>
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
########################################
|
|
|
1ec3d1a |
## <summary>
|
|
Dominick Grift |
60af2e2 |
## Search bugzilla directories.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## <param name="domain">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Domain allowed access.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
interface(`bugzilla_search_content',`
|
|
|
1ec3d1a |
gen_require(`
|
|
|
1ec3d1a |
type httpd_bugzilla_content_t;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
allow $1 httpd_bugzilla_content_t:dir search_dir_perms;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
########################################
|
|
|
1ec3d1a |
## <summary>
|
|
Dominick Grift |
60af2e2 |
## Do not audit attempts to read and
|
|
Dominick Grift |
60af2e2 |
## write bugzilla script unix domain
|
|
Dominick Grift |
60af2e2 |
## stream sockets.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## <param name="domain">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Domain to not audit.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
interface(`bugzilla_dontaudit_rw_stream_sockets',`
|
|
|
1ec3d1a |
gen_require(`
|
|
|
1ec3d1a |
type httpd_bugzilla_script_t;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
dontaudit $1 httpd_bugzilla_script_t:unix_stream_socket { read write };
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
########################################
|
|
|
1ec3d1a |
## <summary>
|
|
Dominick Grift |
60af2e2 |
## All of the rules required to
|
|
Dominick Grift |
60af2e2 |
## administrate an bugzilla environment.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## <param name="domain">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Domain allowed access.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
interface(`bugzilla_admin',`
|
|
|
1ec3d1a |
gen_require(`
|
|
|
1ec3d1a |
type httpd_bugzilla_script_t, httpd_bugzilla_content_t, httpd_bugzilla_ra_content_t;
|
|
|
9a58032 |
type httpd_bugzilla_rw_content_t, httpd_bugzilla_script_exec_t;
|
|
|
9a58032 |
type httpd_bugzilla_htaccess_t, httpd_bugzilla_tmp_t;
|
|
|
9a58032 |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
allow $1 httpd_bugzilla_script_t:process signal_perms;
|
|
|
1ec3d1a |
ps_process_pattern($1, httpd_bugzilla_script_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
tunable_policy(`deny_ptrace',`',`
|
|
|
1ec3d1a |
allow $1 httpd_bugzilla_script_t:process ptrace;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
files_list_tmp($1)
|
|
|
1ec3d1a |
admin_pattern($1, httpd_bugzilla_tmp_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
files_list_var_lib(httpd_bugzilla_script_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
admin_pattern($1, httpd_bugzilla_script_exec_t)
|
|
|
1ec3d1a |
admin_pattern($1, httpd_bugzilla_script_t)
|
|
|
1ec3d1a |
admin_pattern($1, httpd_bugzilla_content_t)
|
|
|
1ec3d1a |
admin_pattern($1, httpd_bugzilla_htaccess_t)
|
|
|
1ec3d1a |
admin_pattern($1, httpd_bugzilla_ra_content_t)
|
|
Dominick Grift |
60af2e2 |
|
|
Dominick Grift |
60af2e2 |
files_search_tmp($1)
|
|
Dominick Grift |
60af2e2 |
files_search_var_lib($1)
|
|
Dominick Grift |
60af2e2 |
admin_pattern($1, httpd_bugzilla_rw_content_t)
|
|
Dominick Grift |
60af2e2 |
|
|
|
2e739f7 |
optional_policy(`
|
|
|
2e739f7 |
apache_list_sys_content($1)
|
|
|
2e739f7 |
')
|
|
|
1ec3d1a |
')
|