Libtpms-based TPM emulator with socket, character device, and Linux CUSE interface.
Go to file
JMarcosHP 52bbff4c7e selinux: Add SELinux policy for virtqemud_t swtpm_t setsched process and unix socket interactions.
Allows virtqemud_t to:
- Signal and control swtpm_t processes (noatsecure, rlimitinh, siginh, signull, setsched)
- Create and listen on Unix stream sockets with swtpm_t processes

This enables libvirt to properly control swtpm instances,
including sending signals and managing process scheduling attributes,
when the system is using cockpit-machines interface to manage and start VMs.

Fixes: https://github.com/stefanberger/swtpm/issues/1131
Signed-off-by: JMarcosHP <jehuherrerap@hotmail.com>
2026-05-27 19:55:14 -06:00
.github ci: Install IBMTSS2 tools from the sources 2026-05-21 10:46:34 -04:00
debian debian/rpm: Add openssl as dependent package 2026-05-06 10:22:22 -04:00
include swtpm: Add compiler attribute for printf to logging functions 2026-04-14 17:41:51 -04:00
man samples: Remove usage of certtool from swtpm-create-tpmca 2026-05-06 08:09:04 -04:00
samples tests+samples: Check for --help support to determine stat/sed tools flavor 2026-05-19 19:14:37 -04:00
src selinux: Add SELinux policy for virtqemud_t swtpm_t setsched process and unix socket interactions. 2026-05-27 19:55:14 -06:00
tests tests: Use IBMTSS2 test v2.5.0 2026-05-21 10:46:34 -04:00
.gitignore debian: drop postinst, no longer needed 2025-09-23 09:32:29 -04:00
.travis.yml CI: Do not install expect package anymore 2026-05-05 17:19:48 -04:00
autogen.sh build-sys: Create m4 directory on older systems 2018-12-15 10:06:03 -05:00
CHANGES CHANGES: Add documentation for changes in 0.10.0 2024-11-15 14:19:43 -05:00
configure.ac build-sys: Add dependency on libtpms v0.11 2026-05-07 08:40:28 -04: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
docker-compose.yml ci: add testing via docker compose 2024-07-18 16:48:21 -04:00
Dockerfile docs: Remove expect and trousers as packages to install 2026-05-05 17:19:48 -04:00
INSTALL docs: Remove expect and trousers as packages to install 2026-05-05 17:19:48 -04:00
LICENSE swtpm: Replace the CUSE TPM with the new implementation 2015-12-07 15:01:57 -05:00
Makefile.am samples: swtpm-create-tpmca: Fix shellcheck issues and add to syntax-check target 2023-02-22 17:27:05 -05:00
README docu: Cut down the README to its minimum 2018-09-24 17:48:41 -04:00
run_tests build-sys: Remove checking for GnuTLS and certtool 2026-05-06 08:09:04 -04:00
swtpm.spec debian/rpm: Add openssl as dependent package 2026-05-06 10:22:22 -04:00
swtpm.spec.in debian/rpm: Add openssl as dependent package 2026-05-06 10:22:22 -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