1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-05 12:56:08 +00:00
freebsd/lib/libc
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
..
aarch64
amd64 libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
arm Move softfloat symbol map entries to softfloat/Symbol.map. 2018-03-05 20:51:23 +00:00
capability
compat-43 General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
db libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
gdtoa libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
gen getentropy(3): Fallback to kern.arandom sysctl on older kernels 2018-03-21 23:52:37 +00:00
gmon General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
i386 Remove bogus checks against NCARGS. 2018-01-31 17:57:59 +00:00
iconv libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
include getentropy(3): Fallback to kern.arandom sysctl on older kernels 2018-03-21 23:52:37 +00:00
inet SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
isc SPDX: more ISC-related files. 2017-12-08 17:52:53 +00:00
locale libc/locale: fix an off-by-one in newlocale 2017-12-29 14:56:46 +00:00
md
mips Move softfloat symbol map entries to softfloat/Symbol.map. 2018-03-05 20:51:23 +00:00
nameser SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
net Make getnameinfo(3) salen requirement less strict and 2018-03-15 13:46:28 +00:00
nls
posix1e libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
powerpc Remove bogus checks against NCARGS. 2018-01-31 17:57:59 +00:00
powerpc64 Remove bogus checks against NCARGS. 2018-01-31 17:57:59 +00:00
powerpcspe
quad General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
regex Add missing patch from r328240 2018-01-22 02:58:33 +00:00
resolv SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
riscv Move softfloat symbol map entries to softfloat/Symbol.map. 2018-03-05 20:51:23 +00:00
rpc des_crypt.3: Fix typo. 2018-03-07 09:31:27 +00:00
secure
softfloat Move softfloat symbol map entries to softfloat/Symbol.map. 2018-03-05 20:51:23 +00:00
sparc64 o Let rtld(1) set up psABI user trap handlers prior to executing the 2018-02-03 23:14:11 +00:00
stdio __printf_render_int(): small type change to match use. 2018-02-23 01:11:57 +00:00
stdlib Use standard 2-clause license where copyright is held by the FreeBSD Foundation 2018-02-02 16:47:32 +00:00
stdtime libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
string Document memset_s(3). memset_s(3) is defined in 2018-02-16 05:48:45 +00:00
sys getentropy(3): Fallback to kern.arandom sysctl on older kernels 2018-03-21 23:52:37 +00:00
tests getentropy(3): Fallback to kern.arandom sysctl on older kernels 2018-03-21 23:52:37 +00:00
uuid libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
x86/sys
xdr General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
yp libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
libc_nossp.ldscript
libc.ldscript
Makefile
Makefile.depend
Versions.def