Libtpms-based TPM emulator with socket, character device, and Linux CUSE interface.
Go to file
Stefan Berger 41c8da12ce swtpm_setup.sh: First send SIGTERM to processes then (later) SIGKILL
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>
2018-11-23 10:08:26 -05:00
debian debian: we need python3-twisted for a test case 2018-10-29 21:21:22 +00:00
dist swtpm_setup: Leave swtpm_setup.sh ownership to root 2018-11-06 15:28:53 -05:00
etc treewide: remove executable bit from config files and c-code 2018-01-17 10:45:25 -05:00
include header: Add support for DragonFly BSD 2018-09-10 16:13:09 +00:00
man swtpm_setup: Implement option to backup TCSD's system_ps_file 2018-11-05 15:15:48 -05:00
samples samples: Enable support for well known SRK password (TPM 1.2) 2018-11-09 15:07:54 -05:00
src swtpm_setup.sh: First send SIGTERM to processes then (later) SIGKILL 2018-11-23 10:08:26 -05:00
tests tests: Use bash's built-in echo rather than /bin/echo 2018-11-19 18:50:42 -05:00
.gitignore build-sys: Create compressed policy package files 2018-09-24 17:48:41 -04:00
.travis.yml travis: Add a build using asan for leak and address sanitization 2018-11-18 21:30:57 -05:00
autogen.sh build-sys: replace bootstrap with autogen 2018-08-07 12:19:47 -04:00
CHANGES initial check-in 2014-12-05 11:16:03 -05:00
configure.ac build-sys: Set action-if-found in AC_CHECK_LIB where missing 2018-11-17 16:37:03 -05:00
COPYING initial check-in 2014-12-05 11:16:03 -05:00
DCO1.1.txt Replace the CLA with the DCO, simply requiring a Signed-off-by: 2016-12-21 11:11:48 -05:00
INSTALL tests: Use python3 rather than python for the test programs 2018-09-25 08:35:45 -04:00
LICENSE swtpm: Replace the CUSE TPM with the new implementation 2015-12-07 15:01:57 -05:00
Makefile.am buils-sys: Include autogen.sh in tarball and use for RPM build 2018-08-08 10:29:19 -04:00
README docu: Cut down the README to its minimum 2018-09-24 17:48:41 -04:00
run_tests test: Add PKG_CONFIG_PATH in front of configure for i386 2018-06-04 16:11:24 -04:00
TODO Adding RHEL/Centos status info 2016-06-26 20:03:43 -04:00

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