Open tanriol opened 5 months ago
Is it even possible to have each thread use its own PAM handle?
If unsafe_send.rs
was deleted and the solution in https://github.com/ChocolateLoverRaj/pam-any/pull/6#issuecomment-2008157250 was implemented would it meet PAM's thread safety requirements?
Also PAM should've been written in Rust so we wouldn't have to read documentation and could just confidently write safe code as long as we didn't use the word unsafe
in this code.
According to
pam(3)
Looks to me like the current implementation either is unsound due to violating
libpam
thread-safety requirements or relies on some internallibpam
implementation details for soundness.