Bug 693732

Summary: imount.c: in mountCommandWrapper() we close the pipe descriptors too soon
Product: Red Hat Enterprise Linux 6 Reporter: Ales Kozumplik <akozumpl>
Component: anacondaAssignee: Ales Kozumplik <akozumpl>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.1CC: atodorov, jzeleny, mganisin
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: patch
Fixed In Version: anaconda-13.21.118-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-06 10:31:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Ales Kozumplik 2011-04-05 13:11:17 UTC
this code: 
    close(pipefd[0]);
    waitpid(child, &status, 0);

should read the other way round, else mount can get signalled with a SIGPIPE. 

Also see:
https://bugzilla.redhat.com/show_bug.cgi?id=558256#c62

There is a similar problem on the rawhide anaconda.

Comment 1 RHEL Program Management 2011-05-13 23:09:21 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux maintenance release. Product Management has 
requested further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed 
products. This request is not yet committed for inclusion in an Update release.

Comment 2 Ales Kozumplik 2011-05-26 09:42:23 UTC
A patch for master is awaiting review: 

https://www.redhat.com/archives/anaconda-devel-list/2011-May/msg00240.html

Comment 3 Ales Kozumplik 2011-06-01 07:50:02 UTC
Fixed on master: 1e3840bd0cb83a2c62cf13bc34dbbaadc89a755a

Comment 4 Ales Kozumplik 2011-06-10 08:24:15 UTC
Fixed by bb481ce05a3e91bbbc448eb57c1c034b5488b6a2.

Comment 7 Alexander Todorov 2011-08-09 12:05:50 UTC
Patch from comment #4 is present in anaconda-13.21.126

Comment 8 errata-xmlrpc 2011-12-06 10:31:16 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2011-1565.html