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(`
Dominick Grift 8f0b74
		type httpd_mojomojo_script_t, httpd_mojomojo_content_t, httpd_mojomojo_ra_content_t;
Dominick Grift 8f0b74
		type httpd_mojomojo_rw_content_t, httpd_mojomojo_tmp_t, httpd_mojomojo_htaccess_t;
Dominick Grift 8f0b74
		type httpd_mojomojo_script_exec_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
Dominick Grift 61f406
	files_list_var_lib(httpd_mojomojo_script_t)
Chris PeBenito 9d4395
Dominick Grift 61f406
	apache_list_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
')