Libtpms-based TPM emulator with socket, character device, and Linux CUSE interface.
Go to file
JMarcosHP 102c252eac 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-28 10:54:40 -04:00
.github ci: Update from ubuntu-20.04 to ubuntu-24.04 due to EOL 2025-04-16 17:03:00 -04:00
debian debian/rpm: Adjust changelog for 0.10.1 release 2025-04-30 08:32:33 -04:00
include swtpm: Define a structure to return PTM_GET_CAPABILITY result 2024-10-11 17:34:36 -04:00
man man: Add some clarification to the nameing of profiles in files 2024-11-08 11:57:26 -05:00
samples swtpm_setup: Add support for --profile-name option 2024-10-02 09:35:17 -04:00
src selinux: Add SELinux policy for virtqemud_t swtpm_t setsched process and unix socket interactions. 2026-05-28 10:54:40 -04:00
tests tests: Retry NVWrite command after 0x922 return code and inc lockout counter 2025-05-13 08:51:22 -04:00
.gitignore selinux: Redevelop SELinux policy for Fedora 40 (ditch old rules) 2024-05-27 20:06:17 -04:00
.travis.yml Travis: Downgrade to setuptools 59.6.0 to avoid error in 71.x 2024-12-02 16:42:06 -05: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.1 2025-04-30 08:32:33 -04:00
configure.ac build-sys: Build swtpm-0.10.2 2025-05-07 12:32:23 -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 Dockerfile: Fix casing of 'as' 2024-09-25 07:20:37 -04:00
INSTALL docs: Update INSTALL document 2021-07-21 09:04:24 -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 tests: Run all tests again in run_test 2020-04-07 17:14:10 -04:00
swtpm.spec build-sys: Build swtpm-0.10.2 2025-05-07 12:32:23 -04:00
swtpm.spec.in debian/rpm: Adjust changelog for 0.10.1 release 2025-04-30 08:32:33 -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