[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [XEN PATCH v1] libxl: use getrandom() syscall for random data extraction
- To: Julien Grall <julien@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Sergiy Kibrik <Sergiy_Kibrik@xxxxxxxx>
- Date: Wed, 26 May 2021 09:31:23 +0000
- Accept-language: en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/z7ZfJGX+yXehS429o8PNtFTKLSmkLooC46JXApD3TQ=; b=SS++DUzFY/fnZbw8AqHfHykSKNpaYxjK1UedmkgjH3Oy9xz+RQiHzAErc7A8w1GFlZnMEHlgzJZFwwCdWj9WZojH7yIcPhGJ874OWJxAPWZWJnE+oL8ivK4a+4TQcNLmTeNX6MQM6ebVyyg68nriy70QhBFmQ70GYW8iWCLAU1mvemaM86rXL7vDYv0f0zGnNiOOBQ+DPrTbJhivjdM8PgJmGnzEQJow7RsEHyjH78YD9gDVqIAlOWFRgbBvIxO0IVozr/rjwwTUwfa9O5M/D09nPdUEFHlinqh9l9e98KxoB6b6I6MddL0wgs0ewfqzPYwe9zjDD3XJvDEUEqYIXA==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=K9RDp1kRPCq97Bwz7V00GwkfKbZFrmHvoooVSTwi+xE+GDFmxmif2tkVL5rvao5Wo1zDsSTaiSqWT8axnWjttLs0TfVPjRgpI9j7sNo0hSJ+1hKnExciIHvWquc3vnNgaaCE//RKAzWn3G81S96Im52ZSPceROabFfzM6DO3HlJvE9sXB2xUYTovmaVr18YxkBv2im+znABia36mzKLtIkzMvBvTWz4ut0/yF/IuXVOmA5IRaUwpowOPIDJazRI2UbHHODsYWR7IUJEqbRjbYladPclEoGbGOSv5DMLn0dZiKK3xfNoeNGymXDbbW8qDiVkKEmLrc0ol89np+eOsyQ==
- Authentication-results: xen.org; dkim=none (message not signed) header.d=none;xen.org; dmarc=none action=none header.from=epam.com;
- Cc: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
- Delivery-date: Wed, 26 May 2021 09:31:33 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHXUJviVlkCcTT7D0WghZSRk2JxUar1gejg
- Thread-topic: [XEN PATCH v1] libxl: use getrandom() syscall for random data extraction
Hi Julien,
>
> From the man:
>
> VERSIONS
> getrandom() was introduced in version 3.17 of the Linux kernel.
> Support was added to glibc in version 2.25.
>
> If I am not mistaken glibc 2.25 was released in 2017. Also, the call was only
> introduced in FreeBSD 12.
>
> So I think we want to check if getrandom() can be used. We may also want to
> consider to fallback to read /dev/urandom if the call return ENOSYS.
>
You mean its availability should be checked both at build and runtime?
--
regards,
Sergiy
|