Bug 530558

Summary: glibc should close all open file descriptors before exec()-ing pt_chown
Product: [Fedora] Fedora Reporter: Mark McLoughlin <markmc>
Component: glibcAssignee: Andreas Schwab <schwab>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: high    
Version: 12CC: armbru, drepper, dwalsh, jakub, kwolf, schwab, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 2.11.1-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-01-12 23:43:10 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:

Description Mark McLoughlin 2009-10-23 13:05:33 UTC
The basic argument is that, while applications should mark most of its file descriptors with O_CLOEXEC, it may legitimately not want to set that flag when it wants to pass the fd to child processes.

The application cannot reliably predict when glibc will exec programs like pt_chown, so it cannot know when it needs to set O_CLOEXEC

See bug #528134 for more background

Comment 1 Bug Zapper 2009-11-16 14:07:04 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 12 development cycle.
Changing version to '12'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 2 Ulrich Drepper 2009-11-25 02:53:43 UTC
I have changed the upstream code.  But grantpt is really a special case because it is transparent that pt_chown is used at all.  If there are other fork problems the arguments here don't apply.

The patch can be backported.

Comment 3 Fedora Update System 2009-11-30 16:35:46 UTC
glibc-2.11-4 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/glibc-2.11-4

Comment 4 Fedora Update System 2009-12-02 04:26:01 UTC
glibc-2.11-4 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update glibc'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2009-12470

Comment 6 Fedora Update System 2010-01-05 22:45:24 UTC
glibc-2.11.1-1 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update glibc'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2009-12470

Comment 7 Fedora Update System 2010-01-12 23:42:48 UTC
glibc-2.11.1-1 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.