mirror of
https://github.com/stefanberger/swtpm.git
synced 2026-01-14 12:26:02 +00:00
Libtpms-based TPM emulator with socket, character device, and Linux CUSE interface.
Add support for locking the storage file using fcntl(fd, F_SETLK, ...). Since fcntl needs a file descriptor of the actual storage file, call SWTPM_NVRAM_LinearFile_DoOpenURI() to open the file in case it has not been opened, yet. In case of error close the file again but be careful about the fact that it may not have been mmap'ed, yet. Since now all backends have .lock and .unlock nvram_backend_ops, they can be called without checking for a NULL pointer. Extend an existing test case with a file-backend storage lock test. Signed-off-by: Stefan Berger <stefanb@linux.ibm.com> |
||
|---|---|---|
| .github | ||
| debian | ||
| include | ||
| man | ||
| samples | ||
| src | ||
| tests | ||
| .gitignore | ||
| .travis.yml | ||
| autogen.sh | ||
| CHANGES | ||
| configure.ac | ||
| COPYING | ||
| DCO1.1.txt | ||
| docker-compose.yml | ||
| Dockerfile | ||
| INSTALL | ||
| LICENSE | ||
| Makefile.am | ||
| README | ||
| run_tests | ||
| swtpm.spec | ||
| swtpm.spec.in | ||
| 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