freebsd-nq/tests/sys
Conrad Meyer e9ac27430c Implement getrandom(2) and getentropy(3)
The general idea here is to provide userspace programs with well-defined
sources of entropy, in a fashion that doesn't require opening a new file
descriptor (ulimits) or accessing paths (/dev/urandom may be restricted
by chroot or capsicum).

getrandom(2) is the more general API, and comes from the Linux world.
Since our urandom and random devices are identical, the GRND_RANDOM flag
is ignored.

getentropy(3) is added as a compatibility shim for the OpenBSD API.

truss(1) support is included.

Tests for both system calls are provided.  Coverage is believed to be at
least as comprehensive as LTP getrandom(2) test coverage.  Additionally,
instructions for running the LTP tests directly against FreeBSD are provided
in the "Test Plan" section of the Differential revision linked below.  (They
pass, of course.)

PR:		194204
Reported by:	David CARLIER <david.carlier AT hardenedbsd.org>
Discussed with:	cperciva, delphij, jhb, markj
Relnotes:	maybe
Differential Revision:	https://reviews.freebsd.org/D14500
2018-03-21 01:15:45 +00:00
..
acl Make test scripts under tests/... non-executable 2017-08-08 04:59:16 +00:00
aio Revert r318180 and re-enable AIO tests on md(4) by default. 2018-03-19 19:09:15 +00:00
cddl zfs test suite: move definition of DISK to the cfg file in zpool_get 2018-03-15 14:47:53 +00:00
fifo other: Fix several typos and minor errors 2017-12-27 03:23:58 +00:00
file DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
fs DIRDEPS_BUILD: Connect new directories. 2017-10-31 00:04:07 +00:00
geom gpart: append partition name to the underlying provider's physical path 2018-02-14 20:26:09 +00:00
kern Implement getrandom(2) and getentropy(3) 2018-03-21 01:15:45 +00:00
kqueue DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
mac DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
mqueue DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
net Add tests for lagg(4) and other cloned network interfaces 2018-02-23 18:18:42 +00:00
netinet DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
netipsec tests: ipsec: Don't load/unload aesni.ko in the test header 2017-12-03 18:35:07 +00:00
netpfil pf tests: Fix pft_ping.py to work with scapy 2.3.3 2018-01-09 19:02:42 +00:00
opencrypto Add ccp(4): experimental driver for AMD Crypto Co-Processor 2018-01-18 22:01:30 +00:00
pjdfstest DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
posixshm DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
sys DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
vfs vfs_lookup: Allow PATH_MAX-1 symlinks 2017-11-17 19:25:39 +00:00
vm DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
Makefile Add the ZFS test suite 2018-02-23 16:31:00 +00:00
Makefile.depend
Makefile.inc Use MK_CHECK_USE_SANDBOX in tests/..., to deal with the fact that 2017-08-02 22:24:08 +00:00