Chris PeBenito 17de1b
## <summary>Wine Is Not an Emulator.  Run Windows programs in Linux.</summary>
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Execute the wine program in the wine domain.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`wine_domtrans',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type wine_t, wine_exec_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	corecmd_search_bin($1)
Chris PeBenito c0868a
	domtrans_pattern($1, wine_exec_t, wine_t)
Chris PeBenito 17de1b
')
Chris PeBenito 8a9d6f
Chris PeBenito 8a9d6f
########################################
Chris PeBenito 8a9d6f
## <summary>
Chris PeBenito 8a9d6f
##	Execute wine in the wine domain, and
Chris PeBenito 8a9d6f
##	allow the specified role the wine domain.
Chris PeBenito 8a9d6f
## </summary>
Chris PeBenito 8a9d6f
## <param name="domain">
Chris PeBenito 8a9d6f
##	<summary>
Chris PeBenito 8a9d6f
##	The type of the process performing this action.
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 wine domain.
Chris PeBenito 8a9d6f
##	</summary>
Chris PeBenito 8a9d6f
## </param>
Chris PeBenito 8a9d6f
#
Chris PeBenito 8a9d6f
interface(`wine_run',`
Chris PeBenito 8a9d6f
	gen_require(`
Chris PeBenito 8a9d6f
		type wine_t;
Chris PeBenito 8a9d6f
	')
Chris PeBenito 8a9d6f
Chris PeBenito 8a9d6f
	wine_domtrans($1)
Chris PeBenito 8a9d6f
	role $2 types wine_t;
Chris PeBenito 8a9d6f
')