## Wine Is Not an Emulator. Run Windows programs in Linux.
########################################
##
## Execute the wine program in the wine domain.
##
##
##
## Domain allowed access.
##
##
#
interface(`wine_domtrans',`
gen_require(`
type wine_t, wine_exec_t;
')
corecmd_search_bin($1)
domtrans_pattern($1, wine_exec_t, wine_t)
')
########################################
##
## Execute wine in the wine domain, and
## allow the specified role the wine domain.
##
##
##
## The type of the process performing this action.
##
##
##
##
## The role to be allowed the wine domain.
##
##
##
##
## The type of the terminal allow the wine domain to use.
##
##
#
interface(`wine_run',`
gen_require(`
type wine_t;
')
wine_domtrans($1)
role $2 types wine_t;
allow wine_t $3:chr_file rw_term_perms;
')