Chris PeBenito c655ec
## <summary>GNAT Ada95 compiler</summary>
Chris PeBenito c655ec
Chris PeBenito c655ec
########################################
Chris PeBenito c655ec
## <summary>
Chris PeBenito c655ec
##	Execute the ada program in the ada domain.
Chris PeBenito c655ec
## </summary>
Chris PeBenito c655ec
## <param name="domain">
Chris PeBenito c655ec
##	<summary>
Chris PeBenito c655ec
##	Domain allowed access.
Chris PeBenito c655ec
##	</summary>
Chris PeBenito c655ec
## </param>
Chris PeBenito c655ec
#
Chris PeBenito c655ec
interface(`ada_domtrans',`
Chris PeBenito 350b6a
	gen_require(`
Chris PeBenito 350b6a
		type ada_t, ada_exec_t;
Chris PeBenito c655ec
	')
Chris PeBenito 350b6a
Chris PeBenito 350b6a
	corecmd_search_bin($1)
Chris PeBenito 350b6a
	domtrans_pattern($1, ada_exec_t, ada_t)
Chris PeBenito c655ec
')
Chris PeBenito 8a9d6f
Chris PeBenito 8a9d6f
########################################
Chris PeBenito 8a9d6f
## <summary>
Chris PeBenito 8a9d6f
##	Execute ada in the ada domain, and
Chris PeBenito 8a9d6f
##	allow the specified role the ada domain.
Chris PeBenito 8a9d6f
## </summary>
Chris PeBenito 8a9d6f
## <param name="domain">
Chris PeBenito 8a9d6f
##	<summary>
Chris PeBenito 350b6a
##	Domain allowed access.
Chris PeBenito 8a9d6f
##	</summary>
Chris PeBenito 8a9d6f
## </param>
Chris PeBenito 8a9d6f
## <param name="role">
Chris PeBenito 8a9d6f
##	<summary>
Chris PeBenito 8a9d6f
##	The role to be allowed the ada domain.
Chris PeBenito 8a9d6f
##	</summary>
Chris PeBenito 8a9d6f
## </param>
Chris PeBenito 8a9d6f
#
Chris PeBenito 8a9d6f
interface(`ada_run',`
Chris PeBenito 350b6a
	gen_require(`
Chris PeBenito 350b6a
		type ada_t;
Chris PeBenito 8a9d6f
	')
Chris PeBenito 350b6a
Chris PeBenito 350b6a
	ada_domtrans($1)
Chris PeBenito 350b6a
	role $2 types ada_t;
Chris PeBenito 8a9d6f
')