Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 553629

Summary: when using passwd_file together with salt option mount of ecryptfs fails
Product: Red Hat Enterprise Linux 5 Reporter: Jan Tluka <jtluka>
Component: ecryptfs-utilsAssignee: Michal Hlavinka <mhlavink>
Status: CLOSED ERRATA QA Contact: Lukáš Zachar <lzachar>
Severity: medium Docs Contact:
Priority: low    
Version: 5.5CC: ovasik, psplicha, rvokal
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: ecryptfs-utils-75-8.el5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 580861 (view as bug list) Environment:
Last Closed: 2011-11-29 16:20:51 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
unsuccessful-log
none
successful-log
none
patch to fix this none

Description Jan Tluka 2010-01-08 13:45:11 UTC
Description of problem:

# cat ecryptfs-passwd 
passphrase_passwd=xxx
# /sbin/mount.ecryptfs .crypt/ .crypt/ -o "key=passphrase:passphrase_passwd_file=/root/ecryptfs-passwd:passphrase_salt=1234567890abcdef,ecryptfs_key_bytes=16,ecryptfs_cipher=aes,no_sig_cache,verbosity=0,verbose"
Error attempting to evaluate mount options: [-14] Bad address
Check your system logs for details on why this happened.
Try updating your ecryptfs-utils package, and/or
submit a bug report on https://launchpad.net/ecryptfs

See unsuccessful-log attachment that contains mount.ecryptfs messages in /var/log/messages

Version-Release number of selected component (if applicable):
RHEL5.5-Server-20091227.0 x86_64
kernel-2.6.18-183.el5
ecryptfs-utils-75-5.el5

How reproducible:
100%

Steps to Reproduce:
1. mount filesystem with passphrase_passwd_file and passhprase_salt options together
2.
3.
  
Actual results:
mount fails

Expected results:
mount succeeds

Additional info:

Ommiting passphrase_salt from options allows filesystem to be mounted.

# /sbin/mount.ecryptfs .crypt/ .crypt/ -o "key=passphrase:passphrase_passwd_file=/root/ecryptfs-passwd,ecryptfs_key_bytes=16,ecryptfs_cipher=aes,no_sig_cache,verbosity=0,verbose"
Attempting to mount with the following options:
  ecryptfs_unlink_sigs
  ecryptfs_key_bytes=16
  ecryptfs_cipher=aes
  ecryptfs_sig=1b77138d91206e66
Mounted eCryptfs
# mount | grep ecryptfs
/root/.crypt on /root/.crypt type ecryptfs (rw,ecryptfs_sig=1b77138d91206e66,ecryptfs_unlink_sigs,ecryptfs_key_bytes=16,ecryptfs_cipher=aes)

See successful-log attachment that contains mount.ecryptfs messages in /var/log/messages.

Comment 1 Jan Tluka 2010-01-08 13:45:43 UTC
Created attachment 382466 [details]
unsuccessful-log

Comment 2 Jan Tluka 2010-01-08 13:46:11 UTC
Created attachment 382467 [details]
successful-log

Comment 4 Michal Hlavinka 2010-04-16 10:59:05 UTC
Created attachment 407063 [details]
patch to fix this

Comment 13 errata-xmlrpc 2011-11-29 16:20:51 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-1503.html