Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 553629 - when using passwd_file together with salt option mount of ecryptfs fails
when using passwd_file together with salt option mount of ecryptfs fails
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: ecryptfs-utils (Show other bugs)
5.5
All Linux
low Severity medium
: rc
: ---
Assigned To: Michal Hlavinka
Lukas Zachar
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2010-01-08 08:45 EST by Jan Tluka
Modified: 2013-04-12 16:34 EDT (History)
3 users (show)

See Also:
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 11:20:51 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
unsuccessful-log (8.40 KB, text/plain)
2010-01-08 08:45 EST, Jan Tluka
no flags Details
successful-log (15.28 KB, text/plain)
2010-01-08 08:46 EST, Jan Tluka
no flags Details
patch to fix this (572 bytes, patch)
2010-04-16 06:59 EDT, Michal Hlavinka
no flags Details | Diff


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:1503 normal SHIPPED_LIVE ecryptfs-utils bug fix update 2011-11-29 16:19:56 EST

  None (edit)
Description Jan Tluka 2010-01-08 08:45:11 EST
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 08:45:43 EST
Created attachment 382466 [details]
unsuccessful-log
Comment 2 Jan Tluka 2010-01-08 08:46:11 EST
Created attachment 382467 [details]
successful-log
Comment 4 Michal Hlavinka 2010-04-16 06:59:05 EDT
Created attachment 407063 [details]
patch to fix this
Comment 13 errata-xmlrpc 2011-11-29 11:20:51 EST
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

Note You need to log in before you can comment on or make changes to this bug.