selinux-refpolicy/policy/modules/apps/wine.if
2007-09-07 13:41:20 +00:00

52 lines
1.1 KiB
Plaintext

## <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">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`wine_domtrans',`
gen_require(`
type wine_t, wine_exec_t;
')
corecmd_search_bin($1)
domtrans_pattern($1, wine_exec_t, wine_t)
')
########################################
## <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;
')