Bug 436564 - socket.getsockopt() on ppc generates exception
Summary: socket.getsockopt() on ppc generates exception
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: setroubleshoot
Version: 5.2
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: John Dennis
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: RHEL5u2_relnotes
TreeView+ depends on / blocked
 
Reported: 2008-03-07 22:21 UTC by John Dennis
Modified: 2008-05-21 14:26 UTC (History)
1 user (show)

Fixed In Version: RHSA-2008-0061
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-05-21 14:26:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
patch to set SO_PEERCRED based on arch (2.94 KB, patch)
2008-03-07 22:46 UTC, John Dennis
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2008:0061 0 normal SHIPPED_LIVE Moderate: setroubleshoot security and bug fix update 2008-05-21 14:25:59 UTC

Description John Dennis 2008-03-07 22:21:55 UTC
The get_credentials() function in access_control.py will generate an exception
when it calls socket.getsockopt() on powerpc (ppc). This was occurring because
the SO_PEERCRED constant was not exported by the python socket module and had
been hardcoded to 17 to work around the problem. But the value of SO_PEERCRED is
not always 17 on all architectures, in particular on ppc it's 21.

A discussion of the issue can be found in bug #436560.

Comment 1 John Dennis 2008-03-07 22:24:47 UTC
A patch has been prepared which takes account of the architecture and wraps the
logic in a try/except block to further assure no exception will be generated.

Comment 2 John Dennis 2008-03-07 22:46:14 UTC
Created attachment 297260 [details]
patch to set SO_PEERCRED based on arch

Comment 3 Don Domingo 2008-03-10 01:09:17 UTC
John,
re: release notes for this item, is this issue specific to PPC? also, could you
clarify the user impact of the bug that was fixed (e.g. causes a crash when user
does X)?

thanks! 

Comment 5 John Dennis 2008-03-10 15:20:59 UTC
re comment #3

The issue is specific to PPC *only*.

The setroubleshootd daemon will exit with a fault the first time the desktop
program sealert connects to the daemon. The sealert will display the error
"cannot connect" because the daemon it's trying to connect to has aborted.

Comment 8 Don Domingo 2008-03-26 03:49:46 UTC
sorry for the late reply, added to RHEL5.2 release notes under "Known Issues"
(ppc only):

<quote>
(ppc) The setroubleshootd daemon will exit with a fault the first time sealert
attempts to connect to the daemon. As such, sealert will display a Cannot
connect error when it is run.

Note that when this error occurs, the following sealert features will be disabled:

    * Real-time notification of SELinux AVC denials
    * The ability to browse diagnostic information associated with SELinux AVC
denials

</quote>

please advise if any further revisions are required. thanks!

Comment 12 Don Domingo 2008-03-31 00:09:01 UTC
John, should we mark this as resolved in the release notes? please advise. thanks!

Comment 13 John Dennis 2008-03-31 00:19:17 UTC
re comment #12, from my perspective it's resolved, however officially it's not
resolved until QE marks it as so.

Comment 14 Don Domingo 2008-04-02 02:13:35 UTC
Hi,
the RHEL5.2 release notes will be dropped to translation on April 15, 2008, at
which point no further additions or revisions will be entertained.

a mockup of the RHEL5.2 release notes can be viewed at the following link:
http://intranet.corp.redhat.com/ic/intranet/RHEL5u2relnotesmockup.html

please use the aforementioned link to verify if your bugzilla is already in the
release notes (if it needs to be). each item in the release notes contains a
link to its original bug; as such, you can search through the release notes by
bug number.

Cheers,
Don

Comment 16 Don Domingo 2008-04-29 23:58:54 UTC
looks like it's already resolved. can we now document this as "Resolved" in the
RHEL5.2 release notes updates?

please advise. thanks!

Comment 17 John Dennis 2008-04-30 03:30:23 UTC
I don't think this needs to be in the release notes, this particular issue only
arose in the initial 5.2 update submission, not a previous version, thus it is
only known as an issue to our internal testing group. 

Comment 18 Don Domingo 2008-04-30 05:03:14 UTC
thanks John. removing entirely from release notes. 

Comment 19 errata-xmlrpc 2008-05-21 14:26:03 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2008-0061.html



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