Chris PeBenito a6a638
## <summary>VMWare Workstation virtual machines</summary>
Chris PeBenito a6a638
Chris PeBenito 296273
########################################
Chris PeBenito 677de4
## <summary>
Chris PeBenito 296273
##	Role access for vmware
Chris PeBenito 677de4
## </summary>
Chris PeBenito 296273
## <param name="role">
Chris PeBenito 677de4
##	<summary>
Chris PeBenito 296273
##	Role allowed access
Chris PeBenito 677de4
##	</summary>
Chris PeBenito 677de4
## </param>
Chris PeBenito 296273
## <param name="domain">
Chris PeBenito 677de4
##	<summary>
Chris PeBenito 296273
##	User domain for the role
Chris PeBenito 677de4
##	</summary>
Chris PeBenito 677de4
## </param>
Chris PeBenito 677de4
#
Chris PeBenito 296273
interface(`vmware_role',`
Chris PeBenito 6b19be
	gen_require(`
Chris PeBenito 296273
		type vmware_t, vmware_exec_t;
Chris PeBenito 6b19be
	')
Chris PeBenito a6a638
Chris PeBenito 296273
	role $1 types vmware_t;
Chris PeBenito a6a638
Chris PeBenito 296273
	# Transition from the user domain to the derived domain.
Chris PeBenito 296273
	domtrans_pattern($2, vmware_exec_t, vmware_t)
Chris PeBenito 03d797
Chris PeBenito 296273
	# allow ps to show vmware and allow the user to kill it 
Chris PeBenito 296273
	ps_process_pattern($2, vmware_t)
Chris PeBenito 296273
	allow $2 vmware_t:process signal;
Chris PeBenito a6a638
')
Chris PeBenito a6a638
Chris PeBenito a6a638
########################################
Chris PeBenito a6a638
## <summary>
Chris PeBenito a6a638
##	Read VMWare system configuration files.
Chris PeBenito a6a638
## </summary>
Chris PeBenito a6a638
## <param name="domain">
Chris PeBenito a6a638
##	<summary>
Chris PeBenito a6a638
##	Domain allowed access.
Chris PeBenito a6a638
##	</summary>
Chris PeBenito a6a638
## </param>
Chris PeBenito a6a638
#
Chris PeBenito a6a638
interface(`vmware_read_system_config',`
Chris PeBenito a6a638
	gen_require(`
Chris PeBenito a6a638
		type vmware_sys_conf_t;
Chris PeBenito a6a638
	')
Chris PeBenito a6a638
Chris PeBenito 296273
	allow $1 vmware_sys_conf_t:file { getattr read };
Chris PeBenito a6a638
')
Chris PeBenito a6a638
Chris PeBenito a6a638
########################################
Chris PeBenito a6a638
## <summary>
Chris PeBenito a6a638
##	Append to VMWare system configuration files.
Chris PeBenito a6a638
## </summary>
Chris PeBenito a6a638
## <param name="domain">
Chris PeBenito a6a638
##	<summary>
Chris PeBenito a6a638
##	Domain allowed access.
Chris PeBenito a6a638
##	</summary>
Chris PeBenito a6a638
## </param>
Chris PeBenito a6a638
#
Chris PeBenito a6a638
interface(`vmware_append_system_config',`
Chris PeBenito a6a638
	gen_require(`
Chris PeBenito a6a638
		type vmware_sys_conf_t;
Chris PeBenito a6a638
	')
Chris PeBenito a6a638
Chris PeBenito a6a638
	allow $1 vmware_sys_conf_t:file append;
Chris PeBenito a6a638
')
Chris PeBenito a713ad
Chris PeBenito a713ad
########################################
Chris PeBenito a713ad
## <summary>
Chris PeBenito a713ad
##	Append to VMWare log files.
Chris PeBenito a713ad
## </summary>
Chris PeBenito a713ad
## <param name="domain">
Chris PeBenito a713ad
##	<summary>
Chris PeBenito a713ad
##	Domain allowed access.
Chris PeBenito a713ad
##	</summary>
Chris PeBenito a713ad
## </param>
Chris PeBenito a713ad
#
Chris PeBenito a713ad
interface(`vmware_append_log',`
Chris PeBenito a713ad
	gen_require(`
Chris PeBenito a713ad
		type vmware_log_t;
Chris PeBenito a713ad
	')
Chris PeBenito a713ad
Chris PeBenito a713ad
	logging_search_logs($1)
Chris PeBenito a713ad
	append_files_pattern($1, vmware_log_t, vmware_log_t)
Chris PeBenito a713ad
')