Okay, I think I've found the source of this problem. Looks like 'keyctl show' is broken, which causes the ecryptfs-setup-private internal testing to fail:
foo@x200:~$ ecryptfs-setup-private
Enter your login passphrase:
ERROR: Your login passphrase is incorrect
Enter your login passphrase:
Enter your mount passphrase [leave blank to generate one]:
************************************************************************
YOU SHOULD RECORD THIS MOUNT PASSPHRASE AND STORE IT IN A SAFE LOCATION:
THIS WILL BE REQUIRED IF YOU NEED TO RECOVER YOUR DATA AT A LATER TIME.
************************************************************************
Done configuring.
Testing mount/write/umount/read...
keyctl_unlink: Invalid argument
ERROR: Could not unmount private ecryptfs directory (2)
foo@x200:~$ keyctl show
Session Keyring
-3 --alswrv 1001 1001 keyring: _ses
foo@x200:~$ keyctl list @u
2 keys in keyring:
873330432: --alswrv 1001 1001 user: 0da32a6c73733d7d
189980458: --alswrv 1001 1001 user: b6d731657a532554
Okay, I think I've found the source of this problem. Looks like 'keyctl show' is broken, which causes the ecryptfs- setup-private internal testing to fail:
foo@x200:~$ ecryptfs- setup-private
Enter your login passphrase:
ERROR: Your login passphrase is incorrect
Enter your login passphrase:
Enter your mount passphrase [leave blank to generate one]:
******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ** ******* ******* ******* ******* ******* ******* ******* ******* ******* **
YOU SHOULD RECORD THIS MOUNT PASSPHRASE AND STORE IT IN A SAFE LOCATION:
THIS WILL BE REQUIRED IF YOU NEED TO RECOVER YOUR DATA AT A LATER TIME.
*******
Done configuring.
Testing mount/write/ umount/ read...
keyctl_unlink: Invalid argument
ERROR: Could not unmount private ecryptfs directory (2)
foo@x200:~$ keyctl show
Session Keyring
-3 --alswrv 1001 1001 keyring: _ses
foo@x200:~$ keyctl list @u
2 keys in keyring:
873330432: --alswrv 1001 1001 user: 0da32a6c73733d7d
189980458: --alswrv 1001 1001 user: b6d731657a532554