random: Add hook to override device reads and getrandom(2)
Upstream Status: RHEL only
Restore the changes to /dev/random which were reverted after 5.18.
This reverts commit 900f11e0 and 297bcb88.
This also brings the code up-to-date with respect to centos-stream commit 9de3a7339793d3c516b9305a8854267156f90c53 so that changes that were made after the kernel-ark revert have been brought in.
Signed-off-by: Herbert Xu herbert.xu@redhat.com