Chris PeBenito 785ee7
policy_module(vbetool, 1.5.2)
Chris PeBenito 9cca1c
Chris PeBenito 9cca1c
########################################
Chris PeBenito 9cca1c
#
Chris PeBenito 9cca1c
# Declarations
Chris PeBenito 9cca1c
#
Chris PeBenito 9cca1c
Dominick Grift 623e4f
## <desc>
Dominick Grift 623e4f
## 

Dominick Grift 623e4f
##	Ignore vbetool mmap_zero errors.
Dominick Grift 623e4f
## 

Dominick Grift 623e4f
## </desc>
Dominick Grift 623e4f
gen_tunable(vbetool_mmap_zero_ignore, false)
Dominick Grift 623e4f
Chris PeBenito 9cca1c
type vbetool_t;
Chris PeBenito 9cca1c
type vbetool_exec_t;
Chris PeBenito 0bfccd
init_system_domain(vbetool_t, vbetool_exec_t)
Chris PeBenito 9cca1c
Chris PeBenito 9cca1c
########################################
Chris PeBenito 9cca1c
#
Chris PeBenito 9cca1c
# Local policy
Chris PeBenito 9cca1c
#
Chris PeBenito 9cca1c
Chris PeBenito 6ae29c
allow vbetool_t self:capability { dac_override sys_tty_config sys_admin };
Chris PeBenito 9cca1c
allow vbetool_t self:process execmem;
Chris PeBenito 9cca1c
Chris PeBenito 9cca1c
dev_wx_raw_memory(vbetool_t)
Chris PeBenito 9cca1c
dev_read_raw_memory(vbetool_t)
Chris PeBenito 207c47
dev_rwx_zero(vbetool_t)
Chris PeBenito 6ae29c
dev_rw_sysfs(vbetool_t)
Chris PeBenito 6ae29c
dev_rw_xserver_misc(vbetool_t)
Chris PeBenito 6ae29c
dev_rw_mtrr(vbetool_t)
Chris PeBenito 9cca1c
Dan Walsh 3a2e88
domain_mmap_low(vbetool_t)
Chris PeBenito da0423
Chris PeBenito e08ac5
mls_file_read_all_levels(vbetool_t)
Chris PeBenito e08ac5
mls_file_write_all_levels(vbetool_t)
Chris PeBenito e08ac5
Chris PeBenito a3cf80
term_use_unallocated_ttys(vbetool_t)
Chris PeBenito a3cf80
Chris PeBenito a3cf80
miscfiles_read_localization(vbetool_t)
Chris PeBenito a3cf80
Dominick Grift 623e4f
tunable_policy(`vbetool_mmap_zero_ignore',`
Dominick Grift 623e4f
	dontaudit vbetool_t self:memprotect mmap_zero;
Dominick Grift 623e4f
')
Dominick Grift 623e4f
Chris PeBenito bb7170
optional_policy(`
Chris PeBenito a3cf80
	hal_rw_pid_files(vbetool_t)
Chris PeBenito 016e5c
	hal_write_log(vbetool_t)
Chris PeBenito 6c9118
	hal_dontaudit_append_lib_files(vbetool_t)
Chris PeBenito a3cf80
')