ecryptfs warns about undefined salt in ecryptfsrc - bug + solution
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
eCryptfs |
Fix Released
|
High
|
Dustin Kirkland |
Bug Description
ecryptfs puts the following warning in a variety of logfiles and on the command line e.g. when using ecryptfs-
Warning: Using default salt value (undefined in ~/.ecryptfsrc)
I started investigating and found that pretty much whatever I put in the rc file the same message came out. So I grabbed the source and started poking around. After a while I found that in the file key_management.c there is a problem (on lines 718/9 in version 68 that I'm using):
if (valsize != ECRYPTFS_
goto next_iteration;
That semi-colon at the end of the if statement means that the goto is always called, and any salt value placed in ~/.ecryptfsrc will always be ignored, and the warning will always be shown. This bug is still present in the latest version of the source file.
Related branches
Changed in ecryptfs: | |
status: | Fix Committed → Fix Released |
David-
Thanks so much for the bug report and analysis. That's a nasty one. I have committed the fix. It will be in the -76 release.
:-Dustin