Skip to Content [alt-c]
In reply to LibreSSL's PRNG is Unsafe on Linux [Update: LibreSSL fork fix]
http://daurnimator.com/post/120415954844/linux-fork-detection-using-thread-specific
I was reading Linux’s keys.txt and realised that this provided a place to store process or even thread local data that didn’t depend on libc.
I wrote up an example to show how you might accomplish pid detection on Linux utilising the kernel’s thead specific keyring.
https://gist.github.com/daurnimator/dfdbaef3c255bdc11531
Reply
Your comment will be public. To contact me privately, email me. Please keep your comment polite, on-topic, and comprehensible. Your comment may be held for moderation before being published.
Your Name: (Optional; will be published)
Your Email Address: (Optional; will not be published)
Your Website: (Optional; will be published)
>
monospaced
Post a Reply
Your comment will be public. To contact me privately, email me. Please keep your comment polite, on-topic, and comprehensible. Your comment may be held for moderation before being published.