Skip to content

Commit

Permalink
chroot comment
Browse files Browse the repository at this point in the history
  • Loading branch information
goatgoose committed Jan 12, 2024
1 parent a7091ad commit b96c036
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions utils/s2n_random.c
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,10 @@ RAND_METHOD s2n_openssl_rand_method = {

int s2n_rand_init_impl(void)
{
/* Currently, s2n-tls may mix in entropy from urandom into every generation of random data. The
* file descriptor is opened on initialization for better performance reading from urandom, and
* to ensure that urandom is accessible from within a chroot tree.
*/
POSIX_GUARD_RESULT(s2n_rand_device_open(&s2n_dev_urandom));

if (s2n_cpu_supports_rdrand()) {
Expand Down

0 comments on commit b96c036

Please sign in to comment.