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

Paul Eggert eggert@cs.ucla.edu
Tue Nov 29 19:37:00 GMT 2016


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.



More information about the Libc-alpha mailing list