mirror of
https://github.com/stefanberger/swtpm.git
synced 2026-08-07 17:45:53 +00:00
Libtpms-based TPM emulator with socket, character device, and Linux CUSE interface.
The mode bits that the user provided were only applied with open() and were subject to masking with the value of current umask. When umask was set to 0027 the test case test_commandline was failing because the mode bits on the create TPM state file were not the expected ones (masked by umask). Therefore, set the mode bits using fchmod if the user provided them, otherwise do not set them. This way the mode bits will be set to the values the user requested. Currently the directory storage backend was setting the mode bits to the default value (0640) *after* opening the TPM state file. Now, if the user did not provide any mode bits then the mode bits will be set so that the file can be written to as owner. This ensures that at least mode bits 0600 are set by default. However, if the user provided mode bit flags then these will be used without modification. Signed-off-by: Stefan Berger <stefanb@linux.ibm.com> |
||
|---|---|---|
| .github/ISSUE_TEMPLATE | ||
| debian | ||
| include | ||
| man | ||
| samples | ||
| src | ||
| tests | ||
| .gitignore | ||
| .travis.yml | ||
| autogen.sh | ||
| CHANGES | ||
| configure.ac | ||
| COPYING | ||
| DCO1.1.txt | ||
| 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