## VMware Tools daemon ######################################## ## ## Execute vmtools in the vmtools domin. ## ## ## ## Domain allowed to transition. ## ## # interface(`vmtools_domtrans',` gen_require(` type vmtools_t, vmtools_exec_t; ') corecmd_search_bin($1) domtrans_pattern($1, vmtools_exec_t, vmtools_t) ') ######################################## ## ## Execute vmtools in the vmtools domin. ## ## ## ## Domain allowed to transition. ## ## # interface(`vmtools_domtrans_helper',` gen_require(` type vmtools_helper_t, vmtools_helper_exec_t; ') corecmd_search_bin($1) domtrans_pattern($1, vmtools_helper_exec_t, vmtools_helper_t) ') ######################################## ## ## Execute vmtools helpers in the vmtools_heler domain. ## ## ## ## Domain allowed access ## ## ## ## ## The role to be allowed the mozilla_plugin domain. ## ## # interface(`vmtools_run_helper',` gen_require(` attribute_role vmtools_helper_roles; ') vmtools_domtrans_helper($1) roleattribute $2 vmtools_helper_roles; ') ######################################## ## ## Execute vmtools server in the vmtools domain. ## ## ## ## Domain allowed to transition. ## ## # interface(`vmtools_systemctl',` gen_require(` type vmtools_t; type vmtools_unit_file_t; ') systemd_exec_systemctl($1) init_reload_services($1) systemd_read_fifo_file_passwd_run($1) allow $1 vmtools_unit_file_t:file read_file_perms; allow $1 vmtools_unit_file_t:service manage_service_perms; ps_process_pattern($1, vmtools_t) ') ######################################## ## ## All of the rules required to administrate ## an vmtools environment ## ## ## ## Domain allowed access. ## ## ## # interface(`vmtools_admin',` gen_require(` type vmtools_t; type vmtools_unit_file_t; ') allow $1 vmtools_t:process { signal_perms }; ps_process_pattern($1, vmtools_t) tunable_policy(`deny_ptrace',`',` allow $1 vmtools_t:process ptrace; ') vmtools_systemctl($1) admin_pattern($1, vmtools_unit_file_t) allow $1 vmtools_unit_file_t:service all_service_perms; optional_policy(` systemd_passwd_agent_exec($1) systemd_read_fifo_file_passwd_run($1) ') ') ######################################## ## ## Send and receive messages from ## vmtools_unconfined over dbus. ## ## ## ## Domain allowed access. ## ## # interface(`vmtools_unconfined_dbus_chat',` gen_require(` type vmtools_unconfined_t; class dbus send_msg; ') allow $1 vmtools_unconfined_t:dbus send_msg; ')