Hi Lukas, On 05/24/2018 11:27 AM, Lukas Tribus wrote: > Hi Emeric, > > > On 24 May 2018 at 11:19, Emeric Brun <[email protected]> wrote: >> in pre6 there is a news wrapping function on getrandom which have different >> fallback way to use the syscall. >> >> Perhaps the openssl -r output depends of that (if getrandom was found from >> glibc or if a syscall loaded from a different way and considered >> os-specific). > > No, openssl version -r output is a verbatim copy of what was passed to > --with-rand-seed at configure time: > https://github.com/openssl/openssl/pull/5910#issuecomment-391514494 > > >> @Lukas Which build-workarround did you use? > > No workaround at all, getrandom works for me out of the box in -pre6 > (with libc2.23) and the output of "openssl version -r" is > "os-specific", which also is expected behavior as per the github > discussion above. The raw syscall as implemented in-pre6 works for me.
Ok, i've initialy patched the pre3, and port my patch on pre6 in a different way but i didn't check if it work of the box in pre6 :) In my case i'm using cross-compilation and there is not access to kernel includes, only those of the builded libc of the sysroot. This way i don't now how openssl building will be able to retrieve the SYS_getrandom not the syscall def because the are not present in my sysroot. Anyway, it seems that there was two issues in that thread, do still have one Lukas? R, Emeric

