<feed xmlns='http://www.w3.org/2005/Atom'>
<title>skalibs/src/librandom/random_buf_early.c, branch v2.12.0.1</title>
<subtitle>The skarnet.org C programming library</subtitle>
<id>https://git.skarnet.org/cgit/skalibs/atom/src/librandom/random_buf_early.c?h=v2.12.0.1</id>
<link rel='self' href='https://git.skarnet.org/cgit/skalibs/atom/src/librandom/random_buf_early.c?h=v2.12.0.1'/>
<link rel='alternate' type='text/html' href='https://git.skarnet.org/cgit/skalibs/'/>
<updated>2022-06-23T08:46:40Z</updated>
<entry>
<title> Add runtime fallback for GRND_INSECURE</title>
<updated>2022-06-23T08:46:40Z</updated>
<author>
<name>Laurent Bercot</name>
<email>ska-skaware@skarnet.org</email>
</author>
<published>2022-06-23T08:46:40Z</published>
<link rel='alternate' type='text/html' href='https://git.skarnet.org/cgit/skalibs/commit/?id=664f0f3af7eb8aef89e6b1adee2d83b4c4f4cf9f'/>
<id>urn:sha1:664f0f3af7eb8aef89e6b1adee2d83b4c4f4cf9f</id>
<content type='text'>
The grndinsecure sysdep is only build-time tested and returns yes
if the kernel headers declare GRND_INSECURE. That is a problem
because the kernel headers are most likely provided by the toolchain
and do not reflect the exact capabilities of the run-time kernel.

If the run-time kernel doesn't support that option, getrandom()
fails. That made random_buf_early() busyloop.

To avoid that, we now fallback to random_devurandom() as an
implementation of random_buf_early() if getrandom() fails when
used with GRND_INSECURE. This adds a slight amount of overhead
to random_buf_early(), so it's probably better to just disable
the sysdep at build time if you're making binaries that will run
on older kernels.

Signed-off-by: Laurent Bercot &lt;ska@appnovation.com&gt;
</content>
</entry>
<entry>
<title> Export random_devurandom, fix APIs</title>
<updated>2022-06-08T17:33:25Z</updated>
<author>
<name>Laurent Bercot</name>
<email>ska-skaware@skarnet.org</email>
</author>
<published>2022-06-08T17:33:25Z</published>
<link rel='alternate' type='text/html' href='https://git.skarnet.org/cgit/skalibs/commit/?id=8ed4778c0eb0515d2b45a5add017bb96106ee543'/>
<id>urn:sha1:8ed4778c0eb0515d2b45a5add017bb96106ee543</id>
<content type='text'>
Signed-off-by: Laurent Bercot &lt;ska@appnovation.com&gt;
</content>
</entry>
<entry>
<title> Prepare for 2.12.0.0. librandom revamp.</title>
<updated>2022-04-09T02:28:05Z</updated>
<author>
<name>Laurent Bercot</name>
<email>ska-skaware@skarnet.org</email>
</author>
<published>2022-04-09T02:28:05Z</published>
<link rel='alternate' type='text/html' href='https://git.skarnet.org/cgit/skalibs/commit/?id=4e75b40d8a96c5d51490ddea43566fe8e6d4168c'/>
<id>urn:sha1:4e75b40d8a96c5d51490ddea43566fe8e6d4168c</id>
<content type='text'>
Signed-off-by: Laurent Bercot &lt;ska@appnovation.com&gt;
</content>
</entry>
</feed>
