Chris PeBenito bbc40b5
policy_module(wine, 1.10.0)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
########################################
Chris PeBenito 9401ae1
#
Chris PeBenito 9401ae1
# Declarations
Chris PeBenito 9401ae1
#
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
## <desc>
Chris PeBenito 9401ae1
## 

Chris PeBenito 9401ae1
##	Ignore wine mmap_zero errors.
Chris PeBenito 9401ae1
## 

Chris PeBenito 9401ae1
## </desc>
Chris PeBenito 9401ae1
gen_tunable(wine_mmap_zero_ignore, false)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
type wine_t;
Chris PeBenito 9401ae1
type wine_exec_t;
Chris PeBenito 66b26ac
userdom_user_application_domain(wine_t, wine_exec_t)
Chris PeBenito 9401ae1
role system_r types wine_t;
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
type wine_tmp_t;
Chris PeBenito 66b26ac
userdom_user_tmp_file(wine_tmp_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
########################################
Chris PeBenito 9401ae1
#
Chris PeBenito 9401ae1
# Local policy
Chris PeBenito 9401ae1
#
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
allow wine_t self:process { execstack execmem execheap };
Chris PeBenito 9401ae1
allow wine_t self:fifo_file manage_fifo_file_perms;
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
can_exec(wine_t, wine_exec_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
manage_dirs_pattern(wine_t, wine_tmp_t, wine_tmp_t)
Chris PeBenito 9401ae1
manage_files_pattern(wine_t, wine_tmp_t, wine_tmp_t)
Chris PeBenito 9401ae1
files_tmp_filetrans(wine_t, wine_tmp_t, { file dir })
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
domain_mmap_low(wine_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
files_execmod_all_files(wine_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
userdom_use_user_terminals(wine_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
tunable_policy(`wine_mmap_zero_ignore',`
Chris PeBenito 9401ae1
	dontaudit wine_t self:memprotect mmap_zero;
Chris PeBenito 9401ae1
')
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
optional_policy(`
Chris PeBenito 9401ae1
	hal_dbus_chat(wine_t)
Chris PeBenito 9401ae1
')
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
optional_policy(`
Chris PeBenito 9401ae1
	policykit_dbus_chat(wine_t)
Chris PeBenito 9401ae1
')
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
optional_policy(`
Chris PeBenito 9401ae1
	unconfined_domain(wine_t)
Chris PeBenito 9401ae1
')
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
optional_policy(`
Chris PeBenito 9401ae1
	xserver_read_xdm_pid(wine_t)
Chris PeBenito 9401ae1
	xserver_rw_shm(wine_t)
Chris PeBenito 9401ae1
')