RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1425309 - Unable to start zabbix-proxy after upgrade to RHEL 7.3 due to selinux
Summary: Unable to start zabbix-proxy after upgrade to RHEL 7.3 due to selinux
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: selinux-policy
Version: 7.3
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Lukas Vrabec
QA Contact: Milos Malik
URL:
Whiteboard:
Depends On:
Blocks: 1420851
TreeView+ depends on / blocked
 
Reported: 2017-02-21 07:33 UTC by Robin
Modified: 2017-10-31 13:34 UTC (History)
17 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1393332
Environment:
Last Closed: 2017-10-12 12:18:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 2758511 0 None None None 2017-02-21 07:33:23 UTC

Description Robin 2017-02-21 07:33:24 UTC
+++ This bug was initially created as a clone of Bug #1393332 +++

Description of problem:
After update to RHEL 7.3, zabbix-proxy stopped working. Zabbix-proxy is not able to run setrlimit syscall as it is denied by selinux policy.

Version-Release number of selected component (if applicable):
selinux-policy-3.13.1-102.el7.noarch
zabbix-proxy-sqlite3-3.2.3-1.el7.x86_64

How reproducible:
always

Steps to Reproduce:
1. Update to RHEL 7.3
2. Start the zabbix-proxy service

Actual results:
Service start failed.

Expected results:
<no avc found>

Comment 1 Milos Malik 2017-02-21 08:09:31 UTC
We would like to see SELinux denials in raw form. Please, attach the output of following command:

# ausearch -m avc -m user_avc -m selinux_err -m user_selinux_err -i -ts today

Comment 3 Robin 2017-03-13 15:46:58 UTC
Sorry about the delay.

$ sudo ausearch -m avc -m user_avc -m selinux_err -m user_selinux_err -i -ts today
----
type=USER_AVC msg=audit(03/13/2017 14:15:00.933:882) : pid=1 uid=root auid=unset ses=unset subj=system_u:system_r:init_t:s0 msg='avc:  received policyload notice (seqno=2)  exe=/usr/lib/systemd/systemd sauid=root hostname=? addr=? terminal=?'
----
type=SYSCALL msg=audit(03/13/2017 15:45:33.157:1063) : arch=x86_64 syscall=setrlimit success=yes exit=0 a0=RLIMIT_CORE a1=0x7ffe127272b0 a2=0x0 a3=0x8 items=0 ppid=1 pid=15769 auid=unset uid=zabbix gid=zabbix euid=zabbix suid=zabbix fsuid=zabbix egid=zabbix sgid=zabbix fsgid=zabbix tty=(none) ses=unset comm=zabbix_proxy exe=/usr/sbin/zabbix_proxy_mysql subj=system_u:system_r:zabbix_t:s0 key=(null)
type=AVC msg=audit(03/13/2017 15:45:33.157:1063) : avc:  denied  { setrlimit } for  pid=15769 comm=zabbix_proxy scontext=system_u:system_r:zabbix_t:s0 tcontext=system_u:system_r:zabbix_t:s0 tclass=process
----
type=USER_AVC msg=audit(03/13/2017 15:45:56.816:1087) : pid=1 uid=root auid=unset ses=unset subj=system_u:system_r:init_t:s0 msg='avc:  received setenforce notice (enforcing=1)  exe=/usr/lib/systemd/systemd sauid=root hostname=? addr=? terminal=?'
----
type=SYSCALL msg=audit(03/13/2017 15:45:56.829:1088) : arch=x86_64 syscall=setrlimit success=no exit=EACCES(Permission denied) a0=RLIMIT_CORE a1=0x7ffe58d07d70 a2=0x0 a3=0x8 items=0 ppid=1 pid=15797 auid=unset uid=zabbix gid=zabbix euid=zabbix suid=zabbix fsuid=zabbix egid=zabbix sgid=zabbix fsgid=zabbix tty=(none) ses=unset comm=zabbix_proxy exe=/usr/sbin/zabbix_proxy_mysql subj=system_u:system_r:zabbix_t:s0 key=(null)
type=AVC msg=audit(03/13/2017 15:45:56.829:1088) : avc:  denied  { setrlimit } for  pid=15797 comm=zabbix_proxy scontext=system_u:system_r:zabbix_t:s0 tcontext=system_u:system_r:zabbix_t:s0 tclass=process
----
type=SYSCALL msg=audit(03/13/2017 15:46:07.094:1094) : arch=x86_64 syscall=setrlimit success=no exit=EACCES(Permission denied) a0=RLIMIT_CORE a1=0x7ffc26a42cc0 a2=0x0 a3=0x8 items=0 ppid=1 pid=15801 auid=unset uid=zabbix gid=zabbix euid=zabbix suid=zabbix fsuid=zabbix egid=zabbix sgid=zabbix fsgid=zabbix tty=(none) ses=unset comm=zabbix_proxy exe=/usr/sbin/zabbix_proxy_mysql subj=system_u:system_r:zabbix_t:s0 key=(null)
type=AVC msg=audit(03/13/2017 15:46:07.094:1094) : avc:  denied  { setrlimit } for  pid=15801 comm=zabbix_proxy scontext=system_u:system_r:zabbix_t:s0 tcontext=system_u:system_r:zabbix_t:s0 tclass=process
----
type=SYSCALL msg=audit(03/13/2017 15:46:17.342:1099) : arch=x86_64 syscall=setrlimit success=no exit=EACCES(Permission denied) a0=RLIMIT_CORE a1=0x7ffc65ac12d0 a2=0x0 a3=0x8 items=0 ppid=1 pid=15806 auid=unset uid=zabbix gid=zabbix euid=zabbix suid=zabbix fsuid=zabbix egid=zabbix sgid=zabbix fsgid=zabbix tty=(none) ses=unset comm=zabbix_proxy exe=/usr/sbin/zabbix_proxy_mysql subj=system_u:system_r:zabbix_t:s0 key=(null)
type=AVC msg=audit(03/13/2017 15:46:17.342:1099) : avc:  denied  { setrlimit } for  pid=15806 comm=zabbix_proxy scontext=system_u:system_r:zabbix_t:s0 tcontext=system_u:system_r:zabbix_t:s0 tclass=process
----
type=SYSCALL msg=audit(03/13/2017 15:46:27.593:1109) : arch=x86_64 syscall=setrlimit success=no exit=EACCES(Permission denied) a0=RLIMIT_CORE a1=0x7ffc3dc2ed10 a2=0x0 a3=0x8 items=0 ppid=1 pid=15875 auid=unset uid=zabbix gid=zabbix euid=zabbix suid=zabbix fsuid=zabbix egid=zabbix sgid=zabbix fsgid=zabbix tty=(none) ses=unset comm=zabbix_proxy exe=/usr/sbin/zabbix_proxy_mysql subj=system_u:system_r:zabbix_t:s0 key=(null)
type=AVC msg=audit(03/13/2017 15:46:27.593:1109) : avc:  denied  { setrlimit } for  pid=15875 comm=zabbix_proxy scontext=system_u:system_r:zabbix_t:s0 tcontext=system_u:system_r:zabbix_t:s0 tclass=process

Comment 5 Lukas Vrabec 2017-10-12 12:18:03 UTC
We're going to close this bug as WONTFIX because

 * of limited capacity of selinux-policy developers
 * the bug is related to EPEL component or 3rd party SW only
 * the bug appears in unsupported configuration 

We believe this bug can be fixed via a local policy module.
For more information please see: 

 * https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/selinux_users_and_administrators_guide/sect-security-enhanced_linux-troubleshooting-fixing_problems#sect-Security-Enhanced_Linux-Fixing_Problems-Allowing_Access_audit2allow

If you disagree, please re-open the bug.

Comment 6 Lukas Vrabec 2017-10-12 12:21:16 UTC
We're going to close this bug as WONTFIX because

 * of limited capacity of selinux-policy developers
 * the bug is related to EPEL component or 3rd party SW only
 * the bug appears in unsupported configuration 

We believe this bug can be fixed via a local policy module.
For more information please see: 

 * https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/selinux_users_and_administrators_guide/sect-security-enhanced_linux-troubleshooting-fixing_problems#sect-Security-Enhanced_Linux-Fixing_Problems-Allowing_Access_audit2allow

If you disagree, please re-open the bug.


Note You need to log in before you can comment on or make changes to this bug.