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 1484572 - SELinux denies name_connect to mssql_port_t for tomcat_t
Summary: SELinux denies name_connect to mssql_port_t for tomcat_t
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: selinux-policy
Version: 7.4
Hardware: All
OS: Linux
high
unspecified
Target Milestone: rc
: ---
Assignee: Lukas Vrabec
QA Contact: Milos Malik
Mirek Jahoda
URL:
Whiteboard:
Depends On:
Blocks: 1500697
TreeView+ depends on / blocked
 
Reported: 2017-08-23 21:51 UTC by David Mulford
Modified: 2021-03-11 15:38 UTC (History)
16 users (show)

Fixed In Version: selinux-policy-3.13.1-174.el7
Doc Type: Bug Fix
Doc Text:
Previously, an SELinux allow rule for the Apache Tomcat servlet container was missing, and SELinux prevented Tomcat from connecting to Microsoft SQL Server on port 1433. This rule has been added to the selinux-policy packages, and Tomcat is now able to connect to Microsoft SQL Server.
Clone Of:
: 1500697 (view as bug list)
Environment:
Last Closed: 2018-04-10 12:38:21 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 3193612 0 None None None 2017-09-23 13:33:53 UTC
Red Hat Product Errata RHBA-2018:0763 0 None None None 2018-04-10 12:40:51 UTC

Description David Mulford 2017-08-23 21:51:20 UTC
SELinux is denying tomcat from connecting to Microsoft SQL Server on port 1433, with the following AVC denial in /var/log/audit.log

type=AVC msg=audit(1503434074.102:50305): avc:  denied  { name_connect } for  pid=4488 comm="java" dest=1433 scontext=system_u:system_r:tomcat_t:s0 tcontext=system_u:object_r:mssql_port_t:s0 tclass=tcp_socket

This worked without issue in previous versions of the targeted policy.


Version-Release number of selected component (if applicable):
  - selinux-policy-targeted-3.13.1-166.el7.noarch
  - RHEL 7.4

How reproducible:
Always

Steps to Reproduce:
1. Create a new RHEL 7.4 machine
2. yum install tomcat; systemctl start tomcat.service
3. Install a tomcat application that will connect to an existing MS SQL server.

Actual results:
AVC denial

Expected results:
A successful connection, like previous versions of the policy.

Comment 10 Petaris 2017-10-10 15:25:00 UTC
Hello,

This bug report indicates that this issue is resolved in version 3.13.1-174.el7 but the latest version I see available is 3.13.1-166.el7_4.4.

Is there an ETA on the release of the fixed version?

Thank you,

Justin

Comment 11 Milos Malik 2017-10-10 15:41:02 UTC
This bug will be fixed as soon as RHEL-7.5 becomes generally available. If you need the fix sooner, please provide a business justification or propose this bug for z-stream.

Comment 22 errata-xmlrpc 2018-04-10 12:38:21 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, 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-2018:0763


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