mirror of
https://github.com/stefanberger/swtpm.git
synced 2026-08-13 03:09:43 +00:00
Libtpms-based TPM emulator with socket, character device, and Linux CUSE interface.
Implement terminate_proc, which first tries to gracefully terminate a process and then, if synchronization is requested, waits for 1 second for it to disappear and then kills it with SIGKILL if it didn't go away. Use this function for stop_tpm and stop_tcsd, which will first try to send a SIGTERM to a process assuming it will terminate while we do something else and then, in case the process needs to be restarted, make sure that it's gone before it is restarted. This addresses an issue where previously SIGTERM was sent to a process before it was restarted but the restarting failed due to the previous process still holding a lock on the file because it wasn't able to react to the SIGTERM fast enough. Signed-off-by: Stefan Berger <stefanb@linux.ibm.com> |
||
|---|---|---|
| debian | ||
| dist | ||
| etc | ||
| include | ||
| man | ||
| samples | ||
| src | ||
| tests | ||
| .gitignore | ||
| .travis.yml | ||
| autogen.sh | ||
| CHANGES | ||
| configure.ac | ||
| COPYING | ||
| DCO1.1.txt | ||
| INSTALL | ||
| LICENSE | ||
| Makefile.am | ||
| README | ||
| run_tests | ||
| TODO | ||
SWTPM - Software TPM Emulator
David Safford safford@us.ibm.com
Stefan Berger stefanb@us.ibm.com
The SWTPM package provides TPM emulators with different front-end interfaces
to libtpms. TPM emulators provide socket interfaces (TCP/IP and Unix) and
the Linux CUSE interface for the creation of multiple native /dev/vtpm* devices.
The SWTPM package also provides several tools for using the TPM emulator,
creating certificates for a TPM, and simulating the manufacturing of
a TPM by creating a TPM's EK and platform certificates etc. Please read
the READMEs in the individual tool's directory under src/.
Please consult the Wiki for information about swtpm:
https://github.com/stefanberger/swtpm/wiki