Skip to Content [alt-c]

Comment

In reply to LibreSSL's PRNG is Unsafe on Linux [Update: LibreSSL fork fix]

Reader Daurnimator on 2015-06-01 at 04:38:

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

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.

(Optional; will be published)

(Optional; will not be published)

(Optional; will be published)

  • Blank lines separate paragraphs.
  • Lines starting with > are indented as block quotes.
  • Lines starting with two spaces are reproduced verbatim (good for code).
  • Text surrounded by *asterisks* is italicized.
  • Text surrounded by `back ticks` is monospaced.
  • URLs are turned into links.
  • Use the Preview button to check your formatting.