2006-01-19 23:00:23 +00:00
|
|
|
## <summary>Wine Is Not an Emulator. Run Windows programs in Linux.</summary>
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Execute the wine program in the wine domain.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2006-01-19 23:00:23 +00:00
|
|
|
## Domain allowed access.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2006-01-19 23:00:23 +00:00
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`wine_domtrans',`
|
|
|
|
gen_require(`
|
|
|
|
type wine_t, wine_exec_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
corecmd_search_bin($1)
|
2006-12-12 20:08:08 +00:00
|
|
|
domtrans_pattern($1, wine_exec_t, wine_t)
|
2006-01-19 23:00:23 +00:00
|
|
|
')
|
2007-09-07 13:41:20 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Execute wine in the wine domain, and
|
|
|
|
## allow the specified role the wine domain.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## The type of the process performing this action.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
## <param name="role">
|
|
|
|
## <summary>
|
|
|
|
## The role to be allowed the wine domain.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
## <param name="terminal">
|
|
|
|
## <summary>
|
|
|
|
## The type of the terminal allow the wine domain to use.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
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;
|
|
|
|
')
|