Bug 701702

Summary: sssd client libraries use select() but should use poll() instead
Product: Red Hat Enterprise Linux 5 Reporter: Stephen Gallagher <sgallagh>
Component: sssdAssignee: Stephen Gallagher <sgallagh>
Status: CLOSED ERRATA QA Contact: Chandrasekar Kannan <ckannan>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.7CC: benl, dpal, grajaiya, jgalipea, kbanerje, prc, sbose
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: sssd-1.5.1-34.el5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 701700 Environment:
Last Closed: 2011-07-21 08:10:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 701700    
Bug Blocks:    

Description Stephen Gallagher 2011-05-03 15:50:42 UTC
+++ This bug was initially created as a clone of Bug #701700 +++

Description of problem:
The select() call can only handle files descriptors lesser than 1024 safely. If the sssd nss or pam client is called from an application with many open files it may happen that the file descriptor used by the sssd client is large that 1024 which may case undefined and unexpected behaviour.

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

Additional info: 
Upstream ticket https://fedorahosted.org/sssd/ticket/861

Comment 2 Kaushik Banerjee 2011-05-25 15:59:41 UTC
No issues seen in regression tests on x86_64 using sssd-1.5.1-34.el5.

# nm -D /lib64/libnss_sss.so.2 | grep -i select
#
# nm -D /lib64/libnss_sss.so.2 | grep -i poll
                 U poll
# 


Verified in version:
# rpm -qi sssd | head
Name        : sssd                         Relocations: (not relocatable)
Version     : 1.5.1                             Vendor: Red Hat, Inc.
Release     : 34.el5                        Build Date: Tue 03 May 2011 10:46:07 PM IST
Install Date: Tue 10 May 2011 01:20:13 AM IST      Build Host: x86-003.build.bos.redhat.com
Group       : Applications/System           Source RPM: sssd-1.5.1-34.el5.src.rpm
Size        : 3486753                          License: GPLv3+
Signature   : (none)
Packager    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
URL         : http://fedorahosted.org/sssd/
Summary     : System Security Services Daemon

Comment 3 errata-xmlrpc 2011-07-21 08:10:27 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 therefore 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-2011-0975.html