Executing systemd ctl commands by vmware-tools (open-vm-tools) fails with USER_AVC denied message
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.