Bug 1323518
| Summary: | Zabbix agent fails to start due to being unable to disable coredumps | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Michael Hampton <error> |
| Component: | selinux-policy | Assignee: | Lukas Vrabec <lvrabec> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 24 | CC: | brett.lentz, dan, dominick.grift, dwalsh, lvrabec, mgrepl, nelsonab, orion, pasik, plautrba, pmoore, robin.bjorklin, ssekidde, volker27 |
| Target Milestone: | --- | Keywords: | Reopened |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | selinux-policy-3.13.1-225.6.fc25 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-01-11 07:25:14 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Michael Hampton
2016-04-03 21:29:31 UTC
Hmm, I'm still seeing this with zabbix-3.0.5-1.fc25.x86_64 Can we get selinux to allow this?
/var/log/audit/audit.log:type=AVC msg=audit(1481094156.042:159): avc: denied { setrlimit } for pid=19928 comm="zabbix_agentd" scontext=system_u:system_r:zabbix_agent_t:s0 tcontext=system_u:system_r:zabbix_agent_t:s0 tclass=process permissive=0
This issue is still present on Fedora 25 with zabbix-agent-3.0.7-1.fc25.x86_64.
To trigger this just restart the zabbix-agent and then have a look at the denial, like this:
# systemctl restart zabbix-agent
# ausearch -m avc,user_avc,selinux_err -ts recent | audit2allow -w
type=AVC msg=audit(1483437841.806:230): avc: denied { setrlimit } for pid=1971 comm="zabbix_agentd" scontext=system_u:system_r:zabbix_agent_t:s0 tcontext=system_u:system_r:zabbix_agent_t:s0 tclass=process permissive=0
Was caused by:
Missing type enforcement (TE) allow rule.
You can use audit2allow to generate a loadable module to allow this access.
You can workaround this by allowing zabbix-agent the `setrlimit` selinux permission http://selinuxproject.org/page/ObjectClassesPerms#process.
This series of commands should resolve it:
# systemctl restart zabbix-agent
# ausearch -m avc,user_avc,selinux_err -ts recent | audit2allow -v -M local-zabbix-agent
# semodule -i local-zabbix-agent.pp
$ sesearch -A -s zabbix_agent_t -c process -p setrlimit
Found 1 semantic av rules:
allow zabbix_agent_t zabbix_agent_t : process { fork sigchld sigkill sigstop signull signal getsched setsched setpgid getcap setrlimit } ;
Issue fixed in the latest selinux-policy build.
selinux-policy-3.13.1-225.6.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-66d634473a selinux-policy-3.13.1-225.6.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-66d634473a selinux-policy-3.13.1-225.6.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report. |