seccomp ratsnets: crypto using threads

Kurt Roeckx kurt at
Sat Nov 25 13:27:57 UTC 2017

On Sat, Nov 25, 2017 at 05:09:02AM -0800, Hal Murray wrote:
> kurt at said:
> > This means that when we initialize a global variable we use the
> > pthread_once() function, which internally uses the futex to do that. It's
> > not using threads itself, it's just making sure that if you use threads
> > things work properly. 
> Thanks.
> Do we have to link with pthread, or is there a dummy/backup pthread_once() 
> available for things like this if we are not using threads?

OpenSSL itself now linked to pthread, there is no need for you to
also link to it unless you use threads. The only way to avoid it
is to build OpenSSL without thread support.


More information about the devel mailing list