2006-04-12 16:58:23 +00:00
|
|
|
## <summary>GNAT Ada95 compiler</summary>
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Execute the ada program in the ada domain.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`ada_domtrans',`
|
2007-10-02 16:04:50 +00:00
|
|
|
gen_require(`
|
|
|
|
type ada_t, ada_exec_t;
|
2006-04-12 16:58:23 +00:00
|
|
|
')
|
2007-10-02 16:04:50 +00:00
|
|
|
|
|
|
|
corecmd_search_bin($1)
|
|
|
|
domtrans_pattern($1, ada_exec_t, ada_t)
|
2006-04-12 16:58:23 +00:00
|
|
|
')
|
2007-09-07 13:41:20 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Execute ada in the ada domain, and
|
|
|
|
## allow the specified role the ada domain.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
2007-10-02 16:04:50 +00:00
|
|
|
## Domain allowed access.
|
2007-09-07 13:41:20 +00:00
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
## <param name="role">
|
|
|
|
## <summary>
|
2010-08-03 13:20:22 +00:00
|
|
|
## Role allowed access.
|
2007-09-07 13:41:20 +00:00
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`ada_run',`
|
2007-10-02 16:04:50 +00:00
|
|
|
gen_require(`
|
|
|
|
type ada_t;
|
2007-09-07 13:41:20 +00:00
|
|
|
')
|
2007-10-02 16:04:50 +00:00
|
|
|
|
|
|
|
ada_domtrans($1)
|
|
|
|
role $2 types ada_t;
|
2007-09-07 13:41:20 +00:00
|
|
|
')
|