Project

General

Profile

Actions

Bug #3909

open

osmo_get_rand_id() fails in containerised environment

Added by earwin about 5 years ago. Updated about 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
libosmocore
Target version:
-
Start date:
04/07/2019
Due date:
% Done:

0%

Spec Reference:

Description

In some cases, when running newer libc over an older kernel, the getrandom() call returns ENOSYS
https://github.com/osmocom/libosmocore/blob/master/src/gsm/gsm_utils.c#L456

Given that ENOSYS is a valid retval, there's a multitude of fallback schemes for getting randomness.
E.g.: https://github.com/vapor-community/clibressl/blob/master/Sources/CLibreSSL/getentropy_linux.c


Related issues

Related to libosmocore - Feature #2610: optimize GnuTLS fallbackNew11/02/2017

Actions
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)