mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 17:22:46 -04:00
Workaround ECAPMODE for kernels between revision [331280, 337999)
where getrandom(2) is not available in capability mode.
This commit is contained in:
parent
ed1fa01ac4
commit
52809cc35b
1 changed files with 1 additions and 1 deletions
|
|
@ -85,7 +85,7 @@ getentropy(void *buf, size_t buflen)
|
|||
if (rd == -1) {
|
||||
if (errno == EINTR)
|
||||
continue;
|
||||
else if (errno == ENOSYS)
|
||||
else if (errno == ENOSYS || errno == ECAPMODE)
|
||||
return (getentropy_fallback(buf, buflen));
|
||||
else
|
||||
return (-1);
|
||||
|
|
|
|||
Loading…
Reference in a new issue