Chris PeBenito ab58ad
#
Chris PeBenito ab58ad
# File contexts for VMWare.
Chris PeBenito ab58ad
# Contributed by Mark Westerman (mark.westerman@westcam.com)
Chris PeBenito ab58ad
# Changes made by NAI Labs.
Chris PeBenito ab58ad
# Tested with VMWare 3.1
Chris PeBenito ab58ad
#
Chris PeBenito ab58ad
/usr/bin/vmnet-bridge	--	system_u:object_r:vmware_exec_t
Chris PeBenito ab58ad
/usr/bin/vmnet-dhcpd	--	system_u:object_r:vmware_exec_t
Chris PeBenito ab58ad
/usr/bin/vmnet-natd	--	system_u:object_r:vmware_exec_t
Chris PeBenito ab58ad
/usr/bin/vmnet-netifup	--	system_u:object_r:vmware_exec_t
Chris PeBenito ab58ad
/usr/bin/vmnet-sniffer	--	system_u:object_r:vmware_exec_t
Chris PeBenito ab58ad
/usr/bin/vmware-nmbd	--	system_u:object_r:vmware_exec_t
Chris PeBenito ab58ad
/usr/bin/vmware-ping	--	system_u:object_r:vmware_exec_t
Chris PeBenito ab58ad
/usr/bin/vmware-smbd	--	system_u:object_r:vmware_exec_t
Chris PeBenito ab58ad
/usr/bin/vmware-smbpasswd --	system_u:object_r:vmware_exec_t
Chris PeBenito ab58ad
/usr/bin/vmware-smbpasswd\.bin -- system_u:object_r:vmware_exec_t
Chris PeBenito ab58ad
/usr/bin/vmware-wizard	--	system_u:object_r:vmware_user_exec_t
Chris PeBenito ab58ad
/usr/bin/vmware		--	system_u:object_r:vmware_user_exec_t
Chris PeBenito ab58ad
Chris PeBenito ab58ad
/dev/vmmon		-c	system_u:object_r:vmware_device_t
Chris PeBenito ab58ad
/dev/vmnet.*		-c	system_u:object_r:vmware_device_t
Chris PeBenito ab58ad
/dev/plex86		-c	system_u:object_r:vmware_device_t
Chris PeBenito ab58ad
Chris PeBenito ab58ad
/etc/vmware.*(/.*)?		system_u:object_r:vmware_sys_conf_t
Chris PeBenito ab58ad
/usr/lib(64)?/vmware/config	--	system_u:object_r:vmware_sys_conf_t
Chris PeBenito ab58ad
Chris PeBenito ab58ad
/usr/lib(64)?/vmware/bin/vmware-mks -- system_u:object_r:vmware_user_exec_t
Chris PeBenito ab58ad
/usr/lib(64)?/vmware/bin/vmware-ui -- system_u:object_r:vmware_user_exec_t
Chris PeBenito ab58ad
Chris PeBenito ab58ad
#
Chris PeBenito ab58ad
# This is only an example of how to protect vmware session configuration
Chris PeBenito ab58ad
# files.  A general user can execute vmware and start a vmware session
Chris PeBenito ab58ad
# but the user can not modify the session configuration information
Chris PeBenito ab58ad
#/usr/local/vmware(/.*)?	system_u:object_r:vmware_user_file_t
Chris PeBenito ab58ad
#/usr/local/vmware/[^/]*/.*\.cfg -- system_u:object_r:vmware_user_conf_t
Chris PeBenito ab58ad
Chris PeBenito ab58ad
# The rules below assume that the user VMWare virtual disks are in the
Chris PeBenito ab58ad
# ~/vmware, and the preferences and license files are in ~/.vmware.
Chris PeBenito ab58ad
#
Chris PeBenito ab58ad
HOME_DIR/\.vmware(/.*)?	system_u:object_r:ROLE_vmware_file_t
Chris PeBenito ab58ad
HOME_DIR/vmware(/.*)?	system_u:object_r:ROLE_vmware_file_t
Chris PeBenito ab58ad
HOME_DIR/\.vmware[^/]*/.*\.cfg	--	system_u:object_r:ROLE_vmware_conf_t