From 34c71acbc9ae19575aa11a1b0f79b39ba02ba784 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Thu, 30 Dec 2021 21:03:55 +0100 Subject: random: Add a trivfs_server_name glibc uses /dev/urandom for getrandom(), and from version 2.34 malloc initialization uses it. We need to be able to know whether we are running the random translator itself, in which case we can't read ourself. --- libtrivfs/trivfs.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libtrivfs/trivfs.h') diff --git a/libtrivfs/trivfs.h b/libtrivfs/trivfs.h index c920b678..1295fe17 100644 --- a/libtrivfs/trivfs.h +++ b/libtrivfs/trivfs.h @@ -74,6 +74,13 @@ struct trivfs_control void *hook; /* for user use */ }; +/* The user may define this variable. Set this to the name of the + filesystem server. */ +extern char *trivfs_server_name __attribute__((weak)); + +/* The user may define this variables. Set this to be the server + version number. */ +extern char *trivfs_server_version __attribute__((weak)); /* The user must define these variables. */ extern int trivfs_fstype; -- cgit v1.2.3