[PATCH v7] getrandom system call wrapper [BZ #17252]

Florian Weimer fweimer@redhat.com
Wed Nov 30 06:09:00 GMT 2016


On 11/29/2016 08:37 PM, Paul Eggert wrote:
> On 11/29/2016 10:11 AM, Florian Weimer wrote:
>> How are you going to avoid interposing the implementation in glibc?
>
> That will depend on how glibc is implemented. Simplest might be to use
> compile-time interposition, which is common in Gnulib. E.g., Gnulib
> would supply its own getentropy.h which does "#define getentropy
> rpl_getentropy", so that Gnulib-using applications always call
> rpl_getentropy from the linker's point of view. This sort of thing is OK
> for Gnulib, as it's not intended to be a separate library.

This sounds reasonable, thanks.

Florian



More information about the Libc-alpha mailing list