Is fork() hook ever possible?

Andrey Chernov ache at
Wed Sep 17 09:07:45 UTC 2008

On Wed, Sep 17, 2008 at 01:01:01PM +0400, Andrey Chernov wrote:
> > The solution however, is simple: Just have these hidden library calls 
> > to arc4random call a wrapper function that does the pid check.
> We can control our own arc4random() internal calls inside our own libs in 
> such way but can't control 3rd party libs or programs arc4random() calls 
> (consider ports). There is no special mentions of pid check needed in 
> arc4random() general API, so 3rd party code will tends to not come to that 
> matter.

Moreover, in the light of OpenBSD move checking pid, 3rd party code 
oriented on OpenBSD will not do so definitely.


More information about the freebsd-current mailing list