swtpm/src
Stefan Berger bdf7e3d6df swtpm: Daemonize before starting TPM to hold locks
Since the CUSE TPM starts TPM in one process but then daemonizes and
effectively runs in a child process, the lock records on the storage
that the parent may have set up are lost due to them not being inherited
by the child. Fix the issue by daemonizing before the TPM is started so
that the child grabs the lock on the storage. Prevent CUSE from forking
so that not another child is created.

As a side-effect, this now moves any error reporting, that may previously
have occurred in the main process and where messages were show on stderr,
into the child process. A log is now required for these messages to become
visible.

Resolves: https://github.com/stefanberger/swtpm/issues/1050
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
2025-08-21 12:13:05 -04:00
..
selinux selinux: Add rule to allow swtpm_t opening of virt_log_t files (BZ 2278123) 2025-02-24 09:21:18 -05:00
swtpm swtpm: Daemonize before starting TPM to hold locks 2025-08-21 12:13:05 -04:00
swtpm_bios swtpm_bios: Rename parameter from optarg to opt_arg (OS X,Wshadow) 2024-10-13 19:46:15 -04:00
swtpm_cert swtpm_cert: Move error message about importing signing key into else branch 2024-11-13 13:52:07 -05:00
swtpm_ioctl swtpm_ioctl: Rename parameter from optarg to opt_arg (OS X,Wshadow) 2024-10-13 19:46:15 -04:00
swtpm_localca swtpm: Implement concat_varrays and fix casts in concat_array calls 2024-09-23 09:20:08 -04:00
swtpm_setup swtpm_setup: Also check respbuffer_len for possible NULL pointer (CID 466756) 2025-05-22 17:21:53 -04:00
utils swtpm_setup: Handle case when returned profile Name is null 2024-11-13 16:47:17 -05:00
Makefile.am Move swtpm_localca sources from samples/ to src/ 2021-07-25 08:52:13 -04:00