|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
cfcf50 |
policy_module(vmware, 1.6.0)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Declarations
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# VMWare user program
|
|
Chris PeBenito |
17de1b |
type vmware_exec_t;
|
|
Chris PeBenito |
17de1b |
corecmd_executable_file(vmware_exec_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# VMWare host programs
|
|
Chris PeBenito |
17de1b |
type vmware_host_t;
|
|
Chris PeBenito |
17de1b |
type vmware_host_exec_t;
|
|
Chris PeBenito |
0bfccd |
init_daemon_domain(vmware_host_t, vmware_host_exec_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
a713ad |
type vmware_log_t;
|
|
Chris PeBenito |
a713ad |
logging_log_file(vmware_log_t)
|
|
Chris PeBenito |
a713ad |
|
|
Chris PeBenito |
17de1b |
# Systemwide configuration files
|
|
Chris PeBenito |
17de1b |
type vmware_sys_conf_t;
|
|
Chris PeBenito |
17de1b |
files_type(vmware_sys_conf_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type vmware_var_run_t;
|
|
Chris PeBenito |
17de1b |
files_pid_file(vmware_var_run_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# VMWare host local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
a713ad |
allow vmware_host_t self:capability { setgid setuid net_raw };
|
|
Chris PeBenito |
17de1b |
dontaudit vmware_host_t self:capability sys_tty_config;
|
|
Chris PeBenito |
17de1b |
allow vmware_host_t self:process signal_perms;
|
|
Chris PeBenito |
c0868a |
allow vmware_host_t self:fifo_file rw_fifo_file_perms;
|
|
Chris PeBenito |
17de1b |
allow vmware_host_t self:unix_stream_socket create_stream_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow vmware_host_t self:rawip_socket create_socket_perms;
|
|
Chris PeBenito |
a713ad |
allow vmware_host_t self:tcp_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# cjp: the ro and rw files should be split up
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(vmware_host_t, vmware_sys_conf_t, vmware_sys_conf_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(vmware_host_t, vmware_var_run_t, vmware_var_run_t)
|
|
Chris PeBenito |
0bfccd |
manage_sock_files_pattern(vmware_host_t, vmware_var_run_t, vmware_var_run_t)
|
|
Chris PeBenito |
0bfccd |
files_pid_filetrans(vmware_host_t, vmware_var_run_t, { file sock_file })
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
a713ad |
manage_files_pattern(vmware_host_t, vmware_log_t, vmware_log_t)
|
|
Chris PeBenito |
a713ad |
logging_log_filetrans(vmware_host_t, vmware_log_t, { file dir })
|
|
Chris PeBenito |
a713ad |
|
|
Chris PeBenito |
17de1b |
kernel_read_kernel_sysctls(vmware_host_t)
|
|
Chris PeBenito |
17de1b |
kernel_list_proc(vmware_host_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_proc_symlinks(vmware_host_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_unlabeled(vmware_host_t)
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_netlabel(vmware_host_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_generic_if(vmware_host_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_generic_if(vmware_host_t)
|
|
Chris PeBenito |
17de1b |
corenet_raw_sendrecv_generic_if(vmware_host_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_all_nodes(vmware_host_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_nodes(vmware_host_t)
|
|
Chris PeBenito |
17de1b |
corenet_raw_sendrecv_all_nodes(vmware_host_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_all_ports(vmware_host_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_ports(vmware_host_t)
|
|
Chris PeBenito |
17de1b |
corenet_raw_bind_all_nodes(vmware_host_t)
|
|
Chris PeBenito |
8d2c34 |
corenet_tcp_bind_all_nodes(vmware_host_t)
|
|
Chris PeBenito |
8d2c34 |
corenet_udp_bind_all_nodes(vmware_host_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_connect_all_ports(vmware_host_t)
|
|
Chris PeBenito |
17de1b |
corenet_sendrecv_all_client_packets(vmware_host_t)
|
|
Chris PeBenito |
17de1b |
corenet_sendrecv_all_server_packets(vmware_host_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
dev_read_sysfs(vmware_host_t)
|
|
Chris PeBenito |
a713ad |
dev_read_urand(vmware_host_t)
|
|
Chris PeBenito |
17de1b |
dev_rw_vmware(vmware_host_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
domain_use_interactive_fds(vmware_host_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_read_etc_files(vmware_host_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
fs_getattr_all_fs(vmware_host_t)
|
|
Chris PeBenito |
17de1b |
fs_search_auto_mountpoints(vmware_host_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
term_dontaudit_use_console(vmware_host_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
init_use_fds(vmware_host_t)
|
|
Chris PeBenito |
17de1b |
init_use_script_ptys(vmware_host_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
logging_send_syslog_msg(vmware_host_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
miscfiles_read_localization(vmware_host_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
sysnet_dns_name_resolve(vmware_host_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
userdom_dontaudit_use_unpriv_user_fds(vmware_host_t)
|
|
Chris PeBenito |
e9c6cd |
|
|
Chris PeBenito |
e9c6cd |
sysadm_dontaudit_search_home_dirs(vmware_host_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
a713ad |
netutils_domtrans_ping(vmware_host_t)
|
|
Chris PeBenito |
a713ad |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
seutil_sigchld_newrole(vmware_host_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
udev_read_db(vmware_host_t)
|
|
Chris PeBenito |
17de1b |
')
|