Comment 6 for bug 1052038

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Thanks for the report. Unfortunately, I have not been able to reproduce this.

From what you've written above, you're suggesting that there's a race condition between the pam session close and the ecryptfs pam session. To try and reproduce, I did the following:

 - I created a user with an encrypted home directory and encrypted filenames. The user is 'test' and the password is 'foobar'
 - I created a cron job in /etc/cron.d/ecryptfs-test that runs every minute, sleeping for 30 seconds:
* * * * * test sleep 30
 - I created an expect script that ssh's into the test@localhost account using password authentication:
#!/usr/bin/expect
spawn ssh test@localhost ls -alF
expect -exact "test@localhost's password: "
send -- "foobar\r"
send -- "\r"
expect eof
 - I ran this inside of a while loop for 30 minutes:
while true; do ./test; done

I was not able to reproduce this bug in this way. Each time this script ran (approximately 1800 times), it was able to log in and list the home directory, correctly decrypting filenames.