RHEL7.6: Executing "sudo" using VMWare tools facility ("vmrun") takes 25 seconds to complete

Solution In Progress - Updated -

Issue

  • When executing a shell script running sudo using vmrun on the hypervisor, sudo takes 25 seconds to complete and a SELinux USER_AVC is seen

    • Hypervisor command (example)

      $ vmrun -T player -gu root -gp PASSWD runProgramInGuest "/path/to/VM/disk.vmx" /bin/sudo ls
      
    • AVC

      # ausearch -m USER_AVC -ts recent
      ----
      time->SOME_DATE
      type=USER_AVC msg=audit(TIMESTAMP:ID): pid=XXX uid=81 auid=4294967295 ses=4294967295 subj=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 msg='avc:  denied  { send_msg } for msgtype=method_return dest=:1.27 spid=YYY tpid=ZZZ scontext=system_u:system_r:systemd_logind_t:s0 tcontext=system_u:system_r:vmtools_t:s0 tclass=dbus  exe="/usr/bin/dbus-daemon" sauid=81 hostname=? addr=? terminal=?'
      

Environment

  • Red Hat Enterprise Linux 7.6
    • open-vm-tools
    • selinux-policy-3.13.1-229.el7 or later

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content