2010-09-01 14:08:09 +00:00
|
|
|
policy_module(vbetool, 1.5.2)
|
2005-12-13 20:38:19 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
2010-09-01 13:32:55 +00:00
|
|
|
## <desc>
|
|
|
|
## <p>
|
|
|
|
## Ignore vbetool mmap_zero errors.
|
|
|
|
## </p>
|
|
|
|
## </desc>
|
|
|
|
gen_tunable(vbetool_mmap_zero_ignore, false)
|
|
|
|
|
2005-12-13 20:38:19 +00:00
|
|
|
type vbetool_t;
|
|
|
|
type vbetool_exec_t;
|
2008-07-23 21:38:39 +00:00
|
|
|
init_system_domain(vbetool_t, vbetool_exec_t)
|
2005-12-13 20:38:19 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local policy
|
|
|
|
#
|
|
|
|
|
2010-02-19 16:34:28 +00:00
|
|
|
allow vbetool_t self:capability { dac_override sys_tty_config sys_admin };
|
2005-12-13 20:38:19 +00:00
|
|
|
allow vbetool_t self:process execmem;
|
|
|
|
|
|
|
|
dev_wx_raw_memory(vbetool_t)
|
|
|
|
dev_read_raw_memory(vbetool_t)
|
2006-01-31 16:08:56 +00:00
|
|
|
dev_rwx_zero(vbetool_t)
|
2010-02-19 16:34:28 +00:00
|
|
|
dev_rw_sysfs(vbetool_t)
|
|
|
|
dev_rw_xserver_misc(vbetool_t)
|
|
|
|
dev_rw_mtrr(vbetool_t)
|
2005-12-13 20:38:19 +00:00
|
|
|
|
2010-09-01 18:55:04 +00:00
|
|
|
domain_mmap_low(vbetool_t)
|
2009-03-10 19:32:04 +00:00
|
|
|
|
2010-06-18 18:56:27 +00:00
|
|
|
mls_file_read_all_levels(vbetool_t)
|
|
|
|
mls_file_write_all_levels(vbetool_t)
|
|
|
|
|
2006-03-23 19:19:38 +00:00
|
|
|
term_use_unallocated_ttys(vbetool_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(vbetool_t)
|
|
|
|
|
2010-09-01 13:32:55 +00:00
|
|
|
tunable_policy(`vbetool_mmap_zero_ignore',`
|
|
|
|
dontaudit vbetool_t self:memprotect mmap_zero;
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2006-03-23 19:19:38 +00:00
|
|
|
hal_rw_pid_files(vbetool_t)
|
2007-09-05 14:48:21 +00:00
|
|
|
hal_write_log(vbetool_t)
|
2007-11-15 16:54:18 +00:00
|
|
|
hal_dontaudit_append_lib_files(vbetool_t)
|
2006-03-23 19:19:38 +00:00
|
|
|
')
|