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 c655ec
	ifdef(`targeted_policy',`
Chris PeBenito c655ec
		gen_require(`
Chris PeBenito c655ec
			type ada_t, ada_exec_t;
Chris PeBenito c655ec
		')
Chris PeBenito c655ec
Chris PeBenito c655ec
		corecmd_search_bin($1)
Chris PeBenito c655ec
		domain_auto_trans($1, ada_exec_t, ada_t)
Chris PeBenito c655ec
Chris PeBenito c655ec
		allow $1 ada_t:fd use;
Chris PeBenito c655ec
		allow ada_t $1:fd use;
Chris PeBenito c655ec
		allow ada_t $1:fifo_file rw_file_perms;
Chris PeBenito c655ec
		allow ada_t $1:process sigchld;
Chris PeBenito c655ec
	',`
Chris PeBenito ea3c1f
		refpolicywarn(`$0($1) has no effect in strict policy.')
Chris PeBenito c655ec
	')
Chris PeBenito c655ec
')