Ecryptfs Mounting Error Needs More Details: mount.ecryptfs: Failed to perform eCryptfs mount: [-32]
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
eCryptfs |
Opinion
|
Undecided
|
Unassigned |
Bug Description
Ecryptfs does not provide a helpful error when it fails to find a passphrase in the user's kernel keyring when mounting an encrypted directory.
The solution is to show an error that says, "Failed to perform eCryptfs mount, stored passphrase not found: [-32]"
The error reported by ecryptfs is the following, in system log:
mount.ecryptfs: Failed to perform eCryptfs mount: [-32]
in console output:
mount: mount(2) failed: No such file or directory
Error mounting eCryptfs: [-1] Operation not permitted
Below is the console output:
eric@skylab:~$ sudo ./mount.sh
Unable to find a list of options to parse, defaulting to interactive mount
Passphrase:
Select cipher:
1) aes: blocksize = 16; min keysize = 16; max keysize = 32
2) blowfish: blocksize = 8; min keysize = 16; max keysize = 56
3) des3_ede: blocksize = 8; min keysize = 24; max keysize = 24
4) twofish: blocksize = 16; min keysize = 16; max keysize = 32
5) cast6: blocksize = 16; min keysize = 16; max keysize = 32
6) cast5: blocksize = 8; min keysize = 5; max keysize = 16
Selection [aes]:
Select key bytes:
1) 16
2) 32
3) 24
Selection [16]:
Enable plaintext passthrough (y/n) [n]:
Enable filename encryption (y/n) [n]: y
Filename Encryption Key (FNEK) Signature [655d7d308b95b589]: e43d8413a70fc94e
Unable to find a list of options to parse, defaulting to interactive mount
Attempting to mount with the following options:
ecryptfs_
ecryptfs_
ecryptfs_
ecryptfs_
ecryptfs_
mount: mount(2) failed: No such file or directory
Error mounting eCryptfs: [-1] Operation not permitted
Check your system logs; visit <http://
Propose Bug title change to "New Ecryptfs Mounting Error Detail" for better clarity