[OpenAFS-devel] afs_pam2 - A simplier approach to AFS integration during login

Derrick J Brashear shadow@dementia.org
Fri, 15 Apr 2005 09:11:26 -0400 (EDT)


On Thu, 14 Apr 2005, Russ Allbery wrote:

>> pthreads-aware can be harmful in pam modules.
>
> Details?  Using PAM modules built with the non-pthread versions of the AFS
> libraries causes Debian sarge sshd to segfault.

Well, I guess it boils down to "do you care that you effectively leak a 
thread to use rx". You can avoid leaking the thread (by shutting down rx), 
but it gets messier when the pam caller is long-running and calls pam a 
lot (like an authentication daemon)