Executing systemd ctl commands by vmware-tools (open-vm-tools) fails with USER_AVC denied message

Solution Unverified - Updated -

Issue

  • When selinux is in enforcing mode on guest VM the following systemd ctl commands are failing if they are triggered by vmware-tools (open-vm-tools):
    /usr/bin/hostnamectl
    /usr/bin/machinectl
    /usr/bin/localectl
    /usr/bin/timedatectl
    /usr/bin/loginctl

Environment

  • Red Hat Enterprise Linux (RHEL) 7.4 and 7.5
    • running as VMware virtual guest
    • open-vm-tools package installed
    • selinux-policy-3.13.1-166.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