vmware_selinux(8) - Linux man page

Name

vmware_selinux - Security Enhanced Linux Policy for the vmware processes

Description

Security-Enhanced Linux secures the vmware processes via flexible mandatory access control.

The vmware processes execute with the vmware_t SELinux type. You can check if you have these processes running by executing the ps command with the -Z qualifier.

For example:

ps -eZ | grep vmware_t

Entrypoints

The vmware_t SELinux type can be entered via the "vmware_exec_t" file type. The default entrypoint paths for the vmware_t domain are the following:"

/usr/bin/vmware, /usr/bin/vmware-wizard, /usr/sbin/vmware-serverd, /usr/lib/vmware/bin/vmplayer, /usr/lib/vmware/bin/vmware-ui, /usr/lib/vmware/bin/vmware-mks, /usr/lib64/vmware/bin/vmplayer, /usr/lib64/vmware/bin/vmware-ui, /usr/lib64/vmware/bin/vmware-mks

Process Types

SELinux defines process types (domains) for each process running on the system

You can see the context of a process using the -Z option to ps

Policy governs the access confined processes have to files. SELinux vmware policy is very flexible allowing users to setup their vmware processes in as secure a method as possible.

The following process types are defined for vmware:

vmware_t, vmware_host_t

Note: semanage permissive -a vmware_t

can be used to make the process type vmware_t permissive. Permissive process types are not denied access by SELinux. AVC messages will still be generated.

File Contexts

SELinux requires files to have an extended attribute to define the file type.

You can see the context of a file using the -Z option to ls

Policy governs the access confined processes have to these files. SELinux vmware policy is very flexible allowing users to setup their vmware processes in as secure a method as possible.

The following file types are defined for vmware:

vmware_conf_t

- Set files with the vmware_conf_t type, if you want to treat the files as vmware configuration data, usually stored under the /etc directory.

vmware_exec_t

- Set files with the vmware_exec_t type, if you want to transition an executable to the vmware_t domain.

vmware_file_t

- Set files with the vmware_file_t type, if you want to treat the files as vmware content.

vmware_host_exec_t

- Set files with the vmware_host_exec_t type, if you want to transition an executable to the vmware_host_t domain.

vmware_host_pid_t

- Set files with the vmware_host_pid_t type, if you want to store the vmware host files under the /run directory.

vmware_host_tmp_t

- Set files with the vmware_host_tmp_t type, if you want to store vmware host temporary files in the /tmp directories.

vmware_log_t

- Set files with the vmware_log_t type, if you want to treat the data as vmware log data, usually stored under the /var/log directory.

vmware_pid_t

- Set files with the vmware_pid_t type, if you want to store the vmware files under the /run directory.

vmware_sys_conf_t

- Set files with the vmware_sys_conf_t type, if you want to treat the files as vmware sys configuration data, usually stored under the /etc directory.

vmware_tmp_t

- Set files with the vmware_tmp_t type, if you want to store vmware temporary files in the /tmp directories.

vmware_tmpfs_t

- Set files with the vmware_tmpfs_t type, if you want to store vmware files on a tmpfs file system.

Note: File context can be temporarily modified with the chcon command. If you want to permanently change the file context you need to use the semanage fcontext command. This will modify the SELinux labeling database. You will need to use restorecon to apply the labels.

Managed Files

The SELinux process type vmware_t can manage files labeled with the following file types. The paths listed are the default paths for these file types. Note the processes UID still need to have DAC permissions.

initrc_tmp_t

mnt_t

/mnt(/[^/]*)

/mnt(/[^/]*)?

/rhev(/[^/]*)?

/media(/[^/]*)

/media(/[^/]*)?

/etc/rhgb(/.*)?

/media/.hal-.*

/net

/afs

/misc

/rhev

tmp_t

/tmp

/usr/tmp

/var/tmp

/var/tmp/vi.recover

usbfs_t

user_fonts_cache_t

/home/[^/]*/.fonts/auto(/.*)?

/home/[^/]*/.fontconfig(/.*)?

/home/[^/]*/.fonts.cache-.*

vmware_conf_t

/home/[^/]*/.vmware[^/]*/.*.cfg

vmware_file_t

/home/[^/]*/vmware(/.*)?

/home/[^/]*/.vmware(/.*)?

vmware_pid_t

vmware_tmp_t

vmware_tmpfs_t

Commands

semanage fcontext can also be used to manipulate default file context mappings.

semanage permissive can also be used to manipulate whether or not a process type is permissive.

semanage module can also be used to enable/disable/install/remove policy modules.

system-config-selinux is a GUI tool available to customize SELinux policy settings.

Author

This manual page was auto-generated using sepolicy manpage by mgrepl.

See Also

selinux(8), vmware(8), semanage(8), restorecon(8), chcon(1), sepolicy(8) , vmware_host_selinux(8)