1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-01 12:19:28 +00:00
freebsd/lib/libc/tests/gen
Conrad Meyer 08a7e74c7c getentropy(3): Fallback to kern.arandom sysctl on older kernels
On older kernels, when userspace program disables SIGSYS, catch ENOSYS and
emulate getrandom(2) syscall with the kern.arandom sysctl (via existing
arc4_sysctl wrapper).

Special care is taken to faithfully emulate EFAULT on NULL pointers, because
sysctl(3) as used by kern.arandom ignores NULL oldp.  (This was caught by
getentropy(3) ATF tests.)

Reported by:	kib
Reviewed by:	kib
Discussed with:	delphij
Sponsored by:	Dell EMC Isilon
Differential Revision:	https://reviews.freebsd.org/D14785
2018-03-21 23:52:37 +00:00
..
execve DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
posix_spawn DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
arc4random_test.c Fix some TAP -> ATF conversion errors 2015-11-09 06:16:38 +00:00
dir2_test.c Optimize telldir(3) 2017-12-06 22:06:48 +00:00
dlopen_empty_test.c This seems like a very trivial bug that should have been squashed a long 2016-01-30 04:16:05 +00:00
fmtcheck_test.c Integrate tools/regression/lib/libc/gen into the FreeBSD test suite 2015-11-09 06:24:11 +00:00
fmtmsg_test.c Integrate tools/regression/lib/libc/gen into the FreeBSD test suite 2015-11-09 06:24:11 +00:00
fnmatch_test.c Integrate tools/regression/lib/libc/gen into the FreeBSD test suite 2015-11-09 06:24:11 +00:00
fnmatch_testcases.h fnmatch(3): Update testcase for r322368. 2017-08-10 17:03:46 +00:00
fpclassify2_test.c Convert tools/regression/lib/libc/stdio/test-fpclassify into an ATF testcase and 2014-11-16 20:29:57 +00:00
ftw_test.c Fix -Wunused warnings 2015-11-15 05:02:41 +00:00
getentropy_test.c getentropy(3): Fallback to kern.arandom sysctl on older kernels 2018-03-21 23:52:37 +00:00
getmntinfo_test.c getmntinfo(3): Scale faster, and return sooner 2017-08-25 16:38:21 +00:00
glob2_test.c libc glob: Avoid pathological exponential behavior 2017-05-03 15:55:29 +00:00
makecontext_test.c Add a new set of simple tests for makecontext(). 2018-01-31 18:02:02 +00:00
Makefile Implement getrandom(2) and getentropy(3) 2018-03-21 01:15:45 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
popen_test.c Fix -Wunused warnings 2015-11-15 05:02:41 +00:00
posix_spawn_test.c Integrate tools/regression/lib/libc/gen into the FreeBSD test suite 2015-11-09 06:24:11 +00:00
realpath2_test.c Add tests for some cases in r318298. 2017-05-18 13:49:53 +00:00
test-fnmatch.c Add missing licensing boilerplate to test-fnmatch.c 2015-11-10 11:28:02 +00:00
wordexp_test.c Integrate tools/regression/lib/libc/gen into the FreeBSD test suite 2015-11-09 06:24:11 +00:00