Chris PeBenito 9d4395
## <summary>MojoMojo Wiki</summary>
Chris PeBenito 9d4395
Chris PeBenito 9d4395
########################################
Chris PeBenito 9d4395
## <summary>
Chris PeBenito 9d4395
##	All of the rules required to administrate
Chris PeBenito 9d4395
##	an mojomojo environment
Chris PeBenito 9d4395
## </summary>
Chris PeBenito 9d4395
## <param name="domain">
Chris PeBenito 9d4395
##	<summary>
Chris PeBenito 9d4395
##	Domain allowed access.
Chris PeBenito 9d4395
##	</summary>
Chris PeBenito 9d4395
## </param>
Chris PeBenito 9d4395
## <param name="role">
Chris PeBenito 9d4395
##	<summary>
Chris PeBenito 9d4395
##	Role allowed access.
Chris PeBenito 9d4395
##	</summary>
Chris PeBenito 9d4395
## </param>
Chris PeBenito 9d4395
## <rolecap/>
Chris PeBenito 9d4395
#
Chris PeBenito 9d4395
interface(`mojomojo_admin',`
Chris PeBenito 9d4395
	gen_require(`
Chris PeBenito 9d4395
		type httpd_mojomojo_script_t;
Chris PeBenito 9d4395
		type httpd_mojomojo_content_t, httpd_mojomojo_ra_content_t;
Dan Walsh aae38f
		type httpd_mojomojo_rw_content_t, httpd_mojomojo_tmp_t;
Chris PeBenito 9d4395
		type httpd_mojomojo_script_exec_t, httpd_mojomojo_htaccess_t;
Chris PeBenito 9d4395
	')
Chris PeBenito 9d4395
Chris PeBenito 9d4395
	allow $1 httpd_mojomojo_script_t:process { ptrace signal_perms };
Chris PeBenito 9d4395
	ps_process_pattern($1, httpd_mojomojo_script_t)
Chris PeBenito 9d4395
Dan Walsh aae38f
	files_list_tmp($1)
Dan Walsh aae38f
	admin_pattern($1, httpd_mojomojo_tmp_t)
Dan Walsh aae38f
Chris PeBenito 9d4395
	files_search_var_lib(httpd_mojomojo_script_t)
Chris PeBenito 9d4395
Chris PeBenito 9d4395
	apache_search_sys_content($1)
Chris PeBenito 9d4395
	admin_pattern($1, httpd_mojomojo_script_exec_t)
Chris PeBenito 9d4395
	admin_pattern($1, httpd_mojomojo_script_t)
Chris PeBenito 9d4395
	admin_pattern($1, httpd_mojomojo_content_t)
Chris PeBenito 9d4395
	admin_pattern($1, httpd_mojomojo_htaccess_t)
Chris PeBenito 9d4395
	admin_pattern($1, httpd_mojomojo_rw_content_t)
Chris PeBenito 9d4395
	admin_pattern($1, httpd_mojomojo_ra_content_t)
Chris PeBenito 9d4395
')