Comment 9 for bug 1036421

Revision history for this message
c (lsching17) wrote :

i test it at Xubuntu x64 12.04, ecryptfs-utils (96-0ubuntu3), kernel 3.2.0-29

it seems passphrase_passwd_file=FILE option do not support binary keyfile

Test case:

1. create testing directory "/test/test_all"
2. create binary key file

     dd if=/dev/urandom of=/test/test.keyfile count=1 bs=32

3. mount the ecrypt folder

     sudo mount -t ecryptfs -o key=passphrase:passphrase_passwd_file=/test/test.keyfile,ecryptfs_cipher=aes,ecryptfs_key_bytes=32,no_sig_cache,verbosity=0 /test/test_all /test/test_all

Result:

Error attempting to evaluate mount options: [-22] Invalid argument
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

Repeat the plan text keyfile "passwd=testing", the directory mount ok