Summary: | sys-fs/ecryptfs-utils-30 is broken | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Paul Hewlett <paul> |
Component: | New packages | Assignee: | Charlie Shepherd (RETIRED) <masterdriverz> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | crypto+disabled |
Priority: | High | ||
Version: | 2007.0 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Paul Hewlett
2007-11-26 10:47:52 UTC
How do you currently use ecryptfs? (In reply to comment #1) > How do you currently use ecryptfs? > I am trying out backing up to an external disk - I set up a key with a passphrase and mount the disk using: EDIR=/root/.ecryptfs/pki/openssl KEY="key=openssl:keyfile=${EDIR}/key.pem" PASS="passfile=${EDIR}/pass" CIPHER="cipher=aes" EBYTES="ecryptfs_key_bytes=32" THRU="passthrough=no" ARGS="${KEY},${CIPHER},${EBYTES},${THRU},${PASS}" mount -t ecryptfs -o "${ARGS}" /${USBDISK} /${USBDISK} if [ $? -ne 0 ] then log "Unable to mount encrypted ${USBDISK} ..." exit 1 fi [I will eventually move the keys to another external USB key.] I then run an rsync to copy the backups to the external drive. We have 3 external drives which are rotated every day - at least one is mandated to be offsite. Incidentally, I tried downloading the source tarball from ecryptfs.sourceforge.net - the ecryptfs-30 package also failed - the -18 worked so it appears to be a problem with the original source... This is not passphrase method but openssl. Please unset gpg USE flag and set openssl USE flag. Then see if you get these two modules when you use ecryptfs-manager. Please also attach the log of /var/log/messages with you fail to mount. (In reply to comment #3) > This is not passphrase method but openssl. > Please unset gpg USE flag and set openssl USE flag. > Then see if you get these two modules when you use ecryptfs-manager. > > Please also attach the log of /var/log/messages with you fail to mount. > Yes I know that is not passphrase method. ecryptfs-manager is broken - I have just subscribed to the ecryptfs mailing list and someone else has also described a similar problem - to re-iterate in V18 selecting option 3 then gives you 2 further options 1-passphrase and 2 openssl. V30 only gives you one option 1 -openssl. If you select openssl in either V18 or V30 you get a prompt for the passphrase. In V18 you subsequently get a prompt to confirm the passphrase - in V30 no such prompt appears and you return to the main menu of ecryptfs-manager. In V30 if you select option 3 again you get 2 options both of which are openssl. If you repeat this cycle the next iteration gives you three options all opensssl and so on ad nauseam. Also V30 does not create any keyfiles in the requested directory. (usually /root/.ecryptfs/pki/openssl/key.pem). So ecryptfs-manager in V30 is seriously non-functional - V18 works like a charm. I already disabled gpg. openssl is already set (it does not have to be set globally). I did not even attempt to mount because there seemed no point if the key.pem file did not exist. I have subsequently downgraded to V18 via the source tarball and everything works as expected. (In reply to comment #4) > (In reply to comment #3) Additional info when using ecryptfs-18 from source. Syslog when loading ecryptfs-manager: Nov 26 14:27:01 phantom ecryptfs-manager: Preferring [/usr/lib/ecryptfs/libecryptfs_pki_passphrase.so] file over built-in module for key module with name [passphrase] Syslog when loading ecryptfsd: Nov 26 14:28:21 phantom ecryptfsd: Starting eCryptfs userspace netlink daemon [6337] Nov 26 14:28:21 phantom ecryptfsd: eCryptfs netlink socket was successfully initialized Nov 26 14:28:21 phantom Received request from user [0] to register daemon [6337]; unregistering daemon [26632] Nov 26 14:28:21 phantom ecryptfsd: Preferring [/usr/lib/ecryptfs/libecryptfs_pki_passphrase.so] file over built-in module for key module with name [passphrase] Nov 26 14:28:21 phantom ecryptfsd: Received eCryptfs netlink QUIT message from the kernel Nov 26 14:28:21 phantom ecryptfs_process_quit: Received request from user [0] with pid [26632] to unregister daemon [6337] Nov 26 14:28:21 phantom Error processing QUIT message; rc = [-22] Nov 26 14:28:21 phantom ecryptfs_receive_nl_message: Failed to fulfill QUIT request Nov 26 14:28:21 phantom ecryptfsd: eCryptfs netlink socket was successfully released Nov 26 14:28:21 phantom ecryptfsd: ecryptfsd_exit: Closing eCryptfs userspace netlink daemon [26632] Syslog when mounting external drive: Nov 26 14:32:46 phantom mount.ecryptfs: Preferring [/usr/lib/ecryptfs/libecryptfs_pki_passphrase.so] file over built-in module for key module with name [passphrase] Nov 26 14:32:46 phantom mount.ecryptfs: add_public_key_key_to_keyring: Deprecated; use ecryptfs_add_key_module_key_to_keyring() instead Nov 26 14:32:46 phantom ivman: Device /dev/sdc1 appears to be mountable Nov 26 14:32:46 phantom ecryptfs_parse_options: eCryptfs: unrecognized option 'passfile=/root/.ecryptfs/pki/openssl/pass' This mount is successful despite the warning about unrecognized option OK. I added a patch for this at version 33, please try again and see if it works for you. Thanks! Please reopen if you have comments. |