Chris PeBenito a225f9
## <summary>Wine Is Not an Emulator.  Run Windows programs in Linux.</summary>
Chris PeBenito a225f9
Chris PeBenito a225f9
########################################
Chris PeBenito a225f9
## <summary>
Chris PeBenito a225f9
##	Execute the wine program in the wine domain.
Chris PeBenito a225f9
## </summary>
Chris PeBenito a225f9
## <param name="domain">
Chris PeBenito 885b83
##	<summary>
Chris PeBenito a225f9
##	Domain allowed access.
Chris PeBenito 885b83
##	</summary>
Chris PeBenito a225f9
## </param>
Chris PeBenito a225f9
#
Chris PeBenito a225f9
interface(`wine_domtrans',`
Chris PeBenito a225f9
	gen_require(`
Chris PeBenito a225f9
		type wine_t, wine_exec_t;
Chris PeBenito a225f9
	')
Chris PeBenito a225f9
Chris PeBenito a225f9
	corecmd_search_bin($1)
Chris PeBenito a225f9
	domain_auto_trans($1, wine_exec_t, wine_t)
Chris PeBenito a225f9
Chris PeBenito a225f9
	allow $1 wine_t:fd use;
Chris PeBenito a225f9
	allow wine_t $1:fd use;
Chris PeBenito a225f9
	allow wine_t $1:fifo_file rw_file_perms;
Chris PeBenito a225f9
	allow wine_t $1:process sigchld;
Chris PeBenito a225f9
')