using a C library within a VFS plugin

Stefan Thöni stefan.thoeni at gapfruit.com
Thu Aug 18 10:59:12 CEST 2022


Dear Genodians

I would like to use a C library (wolftpm) from within a VFS plugin.

I have tried the following:
- using with_libc which segfaulted
- creating a pthread which didn't start (result EINVAL). I came to the 
conclusion that some prerequisite was missing from the environment.
- calling with_libc from within a Genode::Thread, which yielded "Error: 
pthread_self() called from alien thread named 'tpm'"

So what is the proper way to do this?

Bests
Stefan


-- 
Freundliche Grüsse

Stefan Thöni
Senior Security Architect
+41 79 824 11 90

gapfruit AG
Baarerstrasse 135
6300 Zug
https://gapfruit.com



More information about the users mailing list