[Bug 214540] pam_exec isn't multithreading save

[email protected]
Newsgroups gmane.os.freebsd.devel.threading
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=214540

--- Comment #2 from Jan Bramkamp <[email protected]> ---
I found one case where the same issue in the Linux PAM pam_exec module broke
vsftpd and vsftpd had to workaround the problem because afaik Linux lacks the
required API to avoid this problem completely. I know that pam_exec is a hack
and should only be used for testing or after very careful analysis on the other
hand the documentation doesn't warn users about the problem and it's a nasty
layering violation that blow up into the system administrators face and I don't
want to be the poor bastard how has to debug this under time pressure. The PAM
policy isn't supposed to inject race conditions into otherwise "working"
applications.

Pointing to a "non-normative recommendation" won't help users bitten by this
problem. My problem with this is that it's a accident waiting to happen and
FreeBSD has the APIs to avoid this whole bug class. To make it worse the ones
who will run into the problem (system admins) are often incapable of debugging
and patching applications complex enough to use pthreads and PAM.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-threads
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.