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 2151378 - Selinux prevents squid from binding snmp ports
Summary: Selinux prevents squid from binding snmp ports
Keywords:
Status: CLOSED ERRATA
Alias: None
Deadline: 2023-05-16
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: selinux-policy
Version: 9.2
Hardware: Unspecified
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Nobody
QA Contact: Milos Malik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-12-06 22:03 UTC by icesalov
Modified: 2023-11-07 11:21 UTC (History)
4 users (show)

Fixed In Version: selinux-policy-38.1.13-1.el9
Doc Type: Bug Fix
Doc Text:
Cause: Missing rule in the SELinux policy denies squid to provide statistics through snmp protocol. Consequence: Squid is not able to provide statistics through snmp protocol. Fix: Add tunable to allow squid bind snmp port. This change allows squid to bind standard snmp ports. Result: Squid is able to provide statistics through snmp protocol
Clone Of:
Environment:
Last Closed: 2023-11-07 08:52:17 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-141502 0 None None None 2022-12-06 22:07:26 UTC
Red Hat Product Errata RHBA-2023:6617 0 None None None 2023-11-07 08:52:36 UTC

Description icesalov 2022-12-06 22:03:49 UTC
Description of problem:

/CoreOS/squid/Regression/bz1198778-snmp-fd-leaks is failing on RHEL-9.2

Version-Release number of selected component (if applicable):
squid-5.5-5.el9.x86_64

How reproducible:
always

Steps to Reproduce:
1.run test /CoreOS/squid/Regression/bz1198778-snmp-fd-leaks

2.
3.

Actual results:
:: [ 17:23:08 ] :: [  BEGIN   ] :: Running 'snmpwalk -v2c -c public localhost:10161 .1.3.6.1.4.1.3495.1.1.1.0'
Timeout: No Response from localhost:10161
:: [ 17:23:14 ] :: [   FAIL   ] :: Command 'snmpwalk -v2c -c public localhost:10161 .1.3.6.1.4.1.3495.1.1.1.0' (Expected 0, got 1)


Expected results:
test pass

Additional info:

Comment 5 Milos Malik 2023-04-26 13:05:32 UTC
Caught in enforcing mode:
----
type=PROCTITLE msg=audit(04/26/2023 09:03:49.760:508) : proctitle=(squid-coord-9) --kid squid-coord-9 --foreground -f /etc/squid/squid.conf 
type=SOCKADDR msg=audit(04/26/2023 09:03:49.760:508) : saddr={ saddr_fam=inet6 laddr=:: lport=10161 } 
type=SYSCALL msg=audit(04/26/2023 09:03:49.760:508) : arch=x86_64 syscall=bind success=no exit=EACCES(Permission denied) a0=0xd a1=0x558e67dacdd0 a2=0x1c a3=0x7ffcac656494 items=0 ppid=27615 pid=27617 auid=unset uid=squid gid=squid euid=root suid=root fsuid=root egid=squid sgid=squid fsgid=squid tty=(none) ses=unset comm=squid exe=/usr/sbin/squid subj=system_u:system_r:squid_t:s0 key=(null) 
type=AVC msg=audit(04/26/2023 09:03:49.760:508) : avc:  denied  { name_bind } for  pid=27617 comm=squid src=10161 scontext=system_u:system_r:squid_t:s0 tcontext=system_u:object_r:snmp_port_t:s0 tclass=udp_socket permissive=0 
----

# rpm -qa selinux\* squid\* net-snmp\* | sort
net-snmp-5.9.1-9.el9.x86_64
net-snmp-agent-libs-5.9.1-9.el9.x86_64
net-snmp-libs-5.9.1-9.el9.x86_64
net-snmp-utils-5.9.1-9.el9.x86_64
selinux-policy-38.1.12-1.el9.noarch
selinux-policy-devel-38.1.12-1.el9.noarch
selinux-policy-targeted-38.1.12-1.el9.noarch
squid-5.5-5.el9.x86_64
#

Comment 18 errata-xmlrpc 2023-11-07 08:52:17 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (selinux-policy bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:6617


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