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 1085379 - rsyslog gssapi functionality gets broken with InputGSSServerPermitPlainTCP
Summary: rsyslog gssapi functionality gets broken with InputGSSServerPermitPlainTCP
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: rsyslog
Version: 7.0
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: rc
: ---
Assignee: Radovan Sroka
QA Contact: Stefan Dordevic
URL:
Whiteboard:
Depends On:
Blocks: 1295396 1296594 1313485
TreeView+ depends on / blocked
 
Reported: 2014-04-08 13:24 UTC by Karel Srot
Modified: 2017-08-24 14:08 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 867016
: 1481116 (view as bug list)
Environment:
Last Closed: 2017-08-24 14:08:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Karel Srot 2014-04-08 13:24:22 UTC
Test results for rhel-7, rsyslog-7.4.7-6.el7.x86_64:

1) server accepts gssapi only && client sends gssapi only:
works fine

2) server accepts gssapi only && client sends tcp/plain only:
works as expected

3) server accepts gssapi only && clients sends both gssapi and tcp/plain:
works as expected

4) server accepts both gssapi and tcp/plain, client sends gssapi messages:
gssapi messages are not delivered!!!

5) server accepts both gssapi and tcp/plain, client sends plain messages only:
plaintext only messages can be delivered with $InputGSSServerPermitPlainTCP on, but the log is flooded with netstream session errors

6)  server accepts both gssapi and tcp/plain, client sends both gssapi and plain messages
gssapi messages are not delivered because of issues in client-server
communication. But tcp/plain messages sent by netcat were delivered.


+++ This bug was initially created as a clone of Bug #867016 +++

Description of problem:

rsyslogd crashes or hangs or looses log messages in various configurations.
This is a bit complex problem.

rsyslogd can be configured using InputGSSServerPermitPlainTCP on to accept both gssapi and tcp/plain messages. I have tested following 6 scenarios:

1) server accepts gssapi only && client sends gssapi only:
works fine except AVC denials reported as bug 867001

2) server accepts gssapi only && client sends tcp/plain only:
rsyslog crashes, this is reported as bug 862517.

3) server accepts gssapi only && clients sends both gssapi and tcp/plain:
again, rsyslog crashes 

4) server accepts both gssapi and tcp/plain, client sends gssapi messages:
gssapi messages are not delivered

5) server accepts both gssapi and tcp/plain, client sends plain messages only:
plaintext only messages can be delivered with $InputGSSServerPermitPlainTCP on, but the log is flooded with netstream session errors

6)  server accepts both gssapi and tcp/plain, client sends both gssapi and plain messages
nor tcp nor gssapi messages are delivered because of issues in client-server
communication. But tcp/plain messages sent by netcat were delivered.


Version-Release number of selected component (if applicable):
rsyslog-5.8.10-2.el6

How reproducible:
always

Steps to Reproduce:
It is pretty complicated. I started with http://www.rsyslog.com/doc/gssapi.html
but I would recommend to contact me.

Comment 2 Karel Srot 2014-04-08 13:29:46 UTC
Small update:

3) server accepts gssapi only && clients sends both gssapi and tcp/plain:
gssapi messages delivered, plain messages are causing following log messages to appear:
  GSS-API error reading token data
  TCP session 0x7fe148120c90 will be closed, error ignored


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