Bug 499367

Summary: mount.ecrytfs hangs when used with wrong/missing stdin
Product: Red Hat Enterprise Linux 5 Reporter: Michal Hlavinka <mhlavink>
Component: ecryptfs-utilsAssignee: Michal Hlavinka <mhlavink>
Status: CLOSED ERRATA QA Contact: BaseOS QE <qe-baseos-auto>
Severity: medium Docs Contact:
Priority: low    
Version: 5.4CC: mnowak, rvokal
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-09-02 09:57:15 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:
Attachments:
Description Flags
use default values with verbosity=0, repeat question 5 times at most (without verbosity=0)
none
fix eof handling none

Description Michal Hlavinka 2009-05-06 11:43:41 UTC
Description of problem:
when mount is performed in cron or other way, where stdin is missing (or can't interact with stdout), mount hangs in endless loop.

When verbosity=0 is used (preventing mount helper's questions), it errors out where default values should be used.

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


How reproducible:
allways

Steps to Reproduce:
1.mount -t ecryptfs  ~/testecfs/ ~/testecfs/ -o key=passphrase:passphrase_passwd=1234,ecryptfs_cipher=aes,ecryptfs_key_bytes=16,verbosity=0 </dev/null
2.
3.
  
Actual results:
a)with verbosity=0 : errors out: 'invalid value'
b)without verbosity=0: hangs

Expected results:
a)with verbosity=0 : default values are used (no questions)
b)without verbosity=0 : errors out with 'invalid value' (/dev/null is permanently giving wrong answers)

Additional info:

Comment 1 Michal Hlavinka 2009-05-06 11:45:36 UTC
Created attachment 342634 [details]
use default values with verbosity=0, repeat question 5 times at most (without verbosity=0)

Comment 7 Michal Hlavinka 2009-05-29 09:28:57 UTC
Created attachment 345874 [details]
fix eof handling

both patches are required

Comment 11 errata-xmlrpc 2009-09-02 09:57:15 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-2009-1307.html