From: Szabolcs Nagy <nsz@port70.net>
To: musl@lists.openwall.com
Subject: Re: [PATCH] Add getrandom syscall wrapper function
Date: Tue, 2 Jan 2018 16:27:59 +0100 [thread overview]
Message-ID: <20180102152758.GB4871@port70.net> (raw)
In-Reply-To: <20180102021403.GK1627@brightrain.aerifal.cx>
* Rich Felker <dalias@libc.org> [2018-01-01 21:14:03 -0500]:
> > > glibc does not have a fallback for this syscall there was a long
> > > discussion about this, see here: https://lwn.net/Articles/711013/
> > > As they never found a good solution for their fallback. I think musl
> > > should also not provide a fallback.
>
> Interesting that the biggest issue seems to have been about using file
> descriptors as the fallback. That's something I never considered using
> in musl since we have AT_RANDOM and sysctl on ancient kernels that
> lack it. There are a small number of kernels between when sysctl
> started spamming syslog with deprecation warnings and when AT_RANDOM
> was added but I don't really care about those; it still works anyway.
note that getrandom gives new entropy after fork
but AT_RANDOM is the same.
next prev parent reply other threads:[~2018-01-02 15:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-01 20:31 Hauke Mehrtens
2018-01-01 20:47 ` Rich Felker
2018-01-01 21:51 ` Hauke Mehrtens
2018-01-01 22:03 ` Rich Felker
2018-01-02 2:14 ` Rich Felker
2018-01-02 15:27 ` Szabolcs Nagy [this message]
2018-01-02 18:09 ` Rich Felker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180102152758.GB4871@port70.net \
--to=nsz@port70.net \
--cc=musl@lists.openwall.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).