ChocolateLoverRaj/pam-any

Investigate and document thread safety requirements

Open

#3 opened on Mar 18, 2024

View on GitHub
 (3 comments) (1 reaction) (1 assignee)Rust (4 forks)auto 404
help wanted

Repository metrics

Stars
 (34 stars)
PR merge metrics
 (PR metrics pending)

Description

According to pam(3)

The libpam interfaces are only thread-safe if each thread within the multithreaded application uses its own PAM handle.

Looks to me like the current implementation either is unsound due to violating libpam thread-safety requirements or relies on some internal libpam implementation details for soundness.

Contributor guide