Bug 1210340 - omniORB loses SSL peer information
Summary: omniORB loses SSL peer information
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: omniORB
Version: 21
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Haïkel Guémar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-04-09 13:33 UTC by Alexey Kosilin
Modified: 2015-04-21 19:12 UTC (History)
3 users (show)

Fixed In Version: omniORB-4.2.0-4.fc22
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-04-21 19:03:01 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Corrects a bug that leads to loss of SSL peer details (2.69 KB, patch)
2015-04-09 13:33 UTC, Alexey Kosilin
no flags Details | Diff

Description Alexey Kosilin 2015-04-09 13:33:03 UTC
Created attachment 1012694 [details]
Corrects a bug that leads to loss of SSL peer details

Description of problem:

Fedora 21 omniORB package contains a bug that leads to an empty SSL peer details in all cases. The bug was corrected in the omniORB trunk branch, but still exists in Fedora 21 repo package.

Version-Release number of selected component (if applicable): 4.2.0-3


How reproducible: always


Steps to Reproduce:
1. Setup omniORB for using SSL connections with self-signed RSA certificates
2. Try to acquire peer identity in the server receive request interceptor

Actual results: an empty the connection peer identity
Expected results: non-empty the connection peer identity

Additional info: the bug was introduced by sslConnection class refactoring and corrected much later in commit r6273 (omniORB SVN tree).

I have made the appropriate modifications in the sslConnection.cc and sslConnection.h of the current stable Fedora 21 package. So, it would be nice to apply this patch into stable Fedora 21 (and probably rawhide) package.

The patch I've attached to the ticket.

Thanks in advance,
Alexey Kosilin

Comment 1 Sandro Mani 2015-04-10 21:17:42 UTC
Not at all familiar with the omniORB code, but looking at r6273 and comparing with the patch you posted, this hunk caught my eye:

@@ -414,8 +415,42 @@
   tcpSocket::setCloseOnExec(sock);
 
   belong_to->addSocket(this);
+  setPeerDetails();
+}

It is part of the upstream patch but not the one you posted. So just to make sure before applying, is this intentional?

Thanks

Comment 2 Alexey Kosilin 2015-04-11 07:33:12 UTC
(In reply to Sandro Mani from comment #1)
> Not at all familiar with the omniORB code, but looking at r6273 and
> comparing with the patch you posted, this hunk caught my eye:
> 
> @@ -414,8 +415,42 @@
>    tcpSocket::setCloseOnExec(sock);
>  
>    belong_to->addSocket(this);
> +  setPeerDetails();
> +}
> 
> It is part of the upstream patch but not the one you posted. So just to make
> sure before applying, is this intentional?
> 
> Thanks

Year, it's definitely intentional. The socket 'sock' is always in listening state while constructing sslConnection, so connection peer details is always empty at this point. May be the upstream code writers intended the code for some future usage, but in 4.2.0 branch it's absolutely useless.

Comment 3 Fedora Update System 2015-04-11 21:55:57 UTC
omniORB-4.2.0-4.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/omniORB-4.2.0-4.fc22

Comment 4 Fedora Update System 2015-04-11 21:56:25 UTC
omniORB-4.2.0-4.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/omniORB-4.2.0-4.fc21

Comment 5 Fedora Update System 2015-04-12 18:00:21 UTC
Package omniORB-4.2.0-4.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing omniORB-4.2.0-4.fc22'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-6044/omniORB-4.2.0-4.fc22
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2015-04-21 19:03:01 UTC
omniORB-4.2.0-4.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2015-04-21 19:12:05 UTC
omniORB-4.2.0-4.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.


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