2010-09-01 14:08:09 +00:00
|
|
|
policy_module(wine, 1.7.2)
|
2006-01-19 23:00:23 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
2010-09-01 13:32:55 +00:00
|
|
|
## <desc>
|
|
|
|
## <p>
|
|
|
|
## Ignore wine mmap_zero errors.
|
|
|
|
## </p>
|
|
|
|
## </desc>
|
|
|
|
gen_tunable(wine_mmap_zero_ignore, false)
|
|
|
|
|
2006-01-19 23:00:23 +00:00
|
|
|
type wine_t;
|
|
|
|
type wine_exec_t;
|
2008-07-23 21:38:39 +00:00
|
|
|
application_domain(wine_t, wine_exec_t)
|
2010-02-19 14:17:51 +00:00
|
|
|
ubac_constrained(wine_t)
|
|
|
|
role system_r types wine_t;
|
|
|
|
|
|
|
|
type wine_tmp_t;
|
|
|
|
files_tmp_file(wine_tmp_t)
|
|
|
|
ubac_constrained(wine_tmp_t)
|
2006-01-19 23:00:23 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local policy
|
|
|
|
#
|
|
|
|
|
2010-02-19 14:17:51 +00:00
|
|
|
allow wine_t self:process { execstack execmem execheap };
|
|
|
|
allow wine_t self:fifo_file manage_fifo_file_perms;
|
|
|
|
|
|
|
|
can_exec(wine_t, wine_exec_t)
|
|
|
|
|
|
|
|
manage_dirs_pattern(wine_t, wine_tmp_t, wine_tmp_t)
|
|
|
|
manage_files_pattern(wine_t, wine_tmp_t, wine_tmp_t)
|
|
|
|
files_tmp_filetrans(wine_t, wine_tmp_t, { file dir })
|
|
|
|
|
2010-09-01 18:55:04 +00:00
|
|
|
domain_mmap_low(wine_t)
|
2010-02-19 14:17:51 +00:00
|
|
|
|
|
|
|
files_execmod_all_files(wine_t)
|
|
|
|
|
2008-11-05 16:10:46 +00:00
|
|
|
userdom_use_user_terminals(wine_t)
|
|
|
|
|
2010-09-01 13:32:55 +00:00
|
|
|
tunable_policy(`wine_mmap_zero_ignore',`
|
|
|
|
dontaudit wine_t self:memprotect mmap_zero;
|
|
|
|
')
|
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
optional_policy(`
|
2010-02-19 14:17:51 +00:00
|
|
|
hal_dbus_chat(wine_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
2010-08-26 13:41:21 +00:00
|
|
|
policykit_dbus_chat(wine_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
unconfined_domain(wine_t)
|
2010-02-19 14:17:51 +00:00
|
|
|
')
|
2006-06-07 17:43:10 +00:00
|
|
|
|
2010-02-19 14:17:51 +00:00
|
|
|
optional_policy(`
|
|
|
|
xserver_read_xdm_pid(wine_t)
|
|
|
|
xserver_rw_shm(wine_t)
|
2006-01-19 23:00:23 +00:00
|
|
|
')
|