Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-23803

User Parameter item checking status of getenforce returns error from Zabbix Agent

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 6.0.23, 6.0.24
    • Agent (G), Packages (C)
    • RHEL 8.9 (kernel-4.18.0-513.9.1.el8_9.x86_64)
      zabbix-server-mysql.6.0.24-release1.el8.x86_64
      zabbix-agent.6.0.24-release1.el8.x86_64
      zabbix-selinux-policy.6.0.24-release1.el8.x86_64

      Standard configuration for zabbix_agentd.conf with changes only to endpoint hostname and server hostname/IP address.

      Additional configuration calling /etc/zabbix/zabbix_agentd.d/userparameter_selinux.conf containing the following

      UserParameter=selinux.status,getenforce
      
      Return value  = getenforce:  getenforce() failed
      Expected correct return value = Enforcing
      

      Setting zabbix_agent_t to permissive (as a workaround) in SELinux resolves the issue. No messages related to rejected getenforce issued commands or permission issues for zabbix_agent_t exist in /var/log/audit/audit.log, therefore no policy to create and issue through audit2allow.

      Issuing the getenforce command as the zabbix user returns the expected correct value (Enforcing).

      It appears that SELinux rejects attempts by zabbix_agent_t to access bin_t type files, but seeking confirmation and any suggestions for resolution.

            zabbix.dev Zabbix Development Team
            mkovach_umich Michael Kovach
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: