After installing or upgrading to Workload Automation Agent 24.x on Red Hat Enterprise Linux (RHEL) 9, the agent service fails to start.
Checking the service status via journalctl -u waae_agent-####.service or systemctl status reveals the following errors:
Manual verification shows that the file permissions are correct (e.g., -rwxr-xr-x) and the file is owned by the autosys user, yet the service still fails with 'Permission denied'.
This issue is caused by SELinux (Security-Enhanced Linux) policies. On newer RHEL versions, SELinux may block the systemd service from executing the agent binary even if standard Linux file permissions are correctly configured. This often happens if the binary lacks the appropriate SELinux security context or if a policy transition is missing for the service.
Important: To avoid conflicting with system security policies, consult your System Administrator before performing these steps. These adjustments may involve OS-level modifications such as SELinux to allow service execution.
Temporarily set SELinux to permissive mode and attempt to start the agent:
If the agent starts successfully in permissive mode, SELinux is confirmed as the blocker. Re-enable SELinux afterwards: setenforce 1.
audit2allow tool to generate a custom policy module if necessary, or ensure the agent directory has the correct context:EXEC operation.If SELinux is not the cause, ensure the partition containing /opt/CA is not mounted with the noexec flag: