]> git.michaelhowe.org Git - packages/o/openafs.git/commit
hcrypto: Avoid arc4random in kernel
authorAndrew Deason <adeason@sinenomine.net>
Wed, 7 Mar 2018 21:57:56 +0000 (15:57 -0600)
committerBenjamin Kaduk <kaduk@mit.edu>
Sun, 3 Jun 2018 14:08:55 +0000 (10:08 -0400)
commit04ed8a2f4fb33c22b1e6c0a56f137666e412a64d
tree4e22ad2208393e944fcf5218059db52c38aff6f7
parente6198969d4b556c3e39085c01dc2e761731fbdb7
hcrypto: Avoid arc4random in kernel

Our HAVE_ARC4RANDOM symbol represents the availability of arc4random()
in userspace, not in the kernel. On Solaris, we'll define
HAVE_ARC4RANDOM, but the built kernel module will be unusable, since
we cannot resolve the arc4random symbol.

To to avoid this, undef HAVE_ARC4RANDOM when building hcrypto for the
kernel, just like we do with HAVE_GETUID.

Reviewed-on: https://gerrit.openafs.org/12946
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
(cherry picked from commit 6082243e42525c738239fe429bcb64e0e4f22207)

Change-Id: I41c4c6f65581aee3d53a7c4b8f6c108f88631e3f
Reviewed-on: https://gerrit.openafs.org/13101
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
src/crypto/hcrypto/kernel/config.h