| 1 |
CHANGES - changes for swtpm |
| 2 |
|
| 3 |
version 0.10.1: |
| 4 |
- swtpm: |
| 5 |
- Fix build error on 32bit systems due to inconsistent _FILE_OFFSET_BITS |
| 6 |
- swtpm_setup: |
| 7 |
- Use DISTRO_PROFILES_DIR when listing profiles (fix path issue) |
| 8 |
- Do not pass a TPM 2 profile to swtpm when reconfiguring |
| 9 |
- selinux: |
| 10 |
- Add rule for swtpm to be able to read password from pipe |
| 11 |
- allow to map state file |
| 12 |
- add NFS permissions for swtpm_t |
| 13 |
- Add rule to allow swtpm_t opening of virt_log_t files (BZ 2278123) |
| 14 |
- swtpm.spec: |
| 15 |
- Fix issues related to uninstallation of swtpm-related SELinux modules |
| 16 |
- ci: |
| 17 |
- Replace Travis with Github actions |
| 18 |
|
| 19 |
version 0.10.0: |
| 20 |
- swtpm: |
| 21 |
- Requires libtpms v0.10.0 |
| 22 |
- Display tpmstate-opt-lock as a new capability |
| 23 |
- Add support for lock option parameter to tpmstate option |
| 24 |
- nvstore_linear: Add support for file-backend locking |
| 25 |
- Remove broken logic to check for neither dir nor file backend |
| 26 |
- Use ptm_cap_n to build PTM_GET_CAPABILITY response |
| 27 |
- Define a structure to return PTM_GET_CAPABILITY result |
| 28 |
- Implement --print-info to run TPMLIB_GetInfo with flags |
| 29 |
- Support --profile fd=<fd> to read profile from file descriptor |
| 30 |
- Support --profile file=<filename> to read profile from file |
| 31 |
- Ignore remove-disabled parameter on non-'custom' profile |
| 32 |
- Check for good entropy source in chroot environment |
| 33 |
- Implement a check for HMAC+sha1 for testing future restriction |
| 34 |
- Implement function to check whether a crypto algorithm is disabled |
| 35 |
- Print cmdarg-print-profiles as part of capabilities |
| 36 |
- Check whether SHA1 signature support is disabled in profile |
| 37 |
- Use TPMLIB_WasManufactured to check whether profile was applied |
| 38 |
- Determine whether OpenSSL needs to be configured (FIPs, SHA1 signature) |
| 39 |
- Add support for --print-profiles option |
| 40 |
- Print profile names as part of capabilities JSON |
| 41 |
- Display new capability to allow setting a profile |
| 42 |
- Add support for --profile option to set a profile on TPM 2 |
| 43 |
- swtpm_setup: |
| 44 |
- Comment flags for storage primary key and deprecate --create-spk |
| 45 |
- Implement --print-profiles to display all profile |
| 46 |
- Add profile entries to swtpm_setup.conf written by swtpm_setup |
| 47 |
- Add support for --profile-name option |
| 48 |
- Accept profiles with name starting with 'custom:' |
| 49 |
- Support default profile from file in swtpm_setup.conf |
| 50 |
- Support --profile-file-fd to read profile from file descriptor |
| 51 |
- Support --profile-file <file> to read profile from file |
| 52 |
- Always log the active profile |
| 53 |
- Implement --profile-remove-fips-disabled option |
| 54 |
- Read default profile from swtpm_setup.conf |
| 55 |
- Print profile names as part of capabilities JSON |
| 56 |
- Add support for --profile parameter |
| 57 |
- Get default rsa keysize from setup_setup.conf if not given |
| 58 |
- swtpm_ioctl: |
| 59 |
- Use ptm_cap_n for non-CUSE PTM_GET_CAPABILITY response |
| 60 |
- selinux: |
| 61 |
- Change write to append for appending to log |
| 62 |
- Add rule for logging to svirt_image_t labeled files from swtpm_t |
| 63 |
- tests: |
| 64 |
- Update IBMTSS2 test suite to v2.4.0 |
| 65 |
- Test activation of PCR banks when not all are available |
| 66 |
- Enable SWTPM_TEST_PROFILE for running test_tpm2_ibmtss2 with profile |
| 67 |
- Add a check for OPENSSL_ENABLE_SHA1_SIGNATURES in log file |
| 68 |
- Consolidate custom profile test cases and check for StateFormatLevel |
| 69 |
- Convert test_samples_create_tpmca to run installed |
| 70 |
- Mention test_tpm2_libtpms_versions_profiles requiring env. variables |
| 71 |
- allow running ibmtss2 tests against installed version |
| 72 |
- Derive support for CUSE from SWTPM_EXE help screen |
| 73 |
- Set OPENSSL_ENABLE_SHA1_SIGNATURES=1 for IBMTSS2 test |
| 74 |
- Extend test case testing across libtpms versions |
| 75 |
- Add test case for testing profiles across libtpms versions |
| 76 |
- Test the --profile option of swtpm_setup and swtpm |
| 77 |
- teach them to run installed |
| 78 |
- add installed-runner.sh |
| 79 |
- install tests on the system |
| 80 |
- lookup system binaries if INSTALLED is set |
| 81 |
- build-sys: |
| 82 |
- enable 64-bit file API on 32-bit systems |
| 83 |
- Add -Wshadow to the CFLAGS |
| 84 |
- Require that libtpms v0.10 is available for TPMLIB_SetProfile |
| 85 |
- debian: |
| 86 |
- Add rule to allow usage of /var/tmp directory (QEMU) |
| 87 |
- Add rules for reading profiles from distro and local dirs |
| 88 |
- Allow non-owner file write access in /var/lib/libvirt/swtpm/ |
| 89 |
- Add sys_admin capability to apparmor profile |
| 90 |
|
| 91 |
version 0.9.0: |
| 92 |
Note: The SElinux policy for swtpm was completely redone. For systems |
| 93 |
with an SELinux policy the same policy (>= 40.17) as used in |
| 94 |
Fedora >= 40 is required due to changes in labels related to libvirt |
| 95 |
that made the re-development of the SELinux policy necessary. |
| 96 |
- swtpm: |
| 97 |
- Use umask() to create/truncated state file rather than fchmod() |
| 98 |
- Use fchmod to set mode bits provided by user |
| 99 |
- Replace mkstemp with g_mkstemp_full (Coverity) |
| 100 |
- fix typo in help message |
| 101 |
- cuse: Fix Coverity complaints regarding locks |
| 102 |
- Fix double free in error path |
| 103 |
- Close fd after main loop |
| 104 |
- Restore logging to stderr on log open failure |
| 105 |
- swtpm_setup: |
| 106 |
- Fail --pcr-banks without --tpm2 |
| 107 |
- Fail --decryption or --allow-signing without --tpm2 |
| 108 |
- Initialized @argv in get_swtpm_capabilities() |
| 109 |
- Flush spk after persisting to create room for another key |
| 110 |
- Refactor duplicate code into swtpm_tpm2_write_cert_nvram |
| 111 |
- Move persisting of certificate into tpm2_persist_certificate |
| 112 |
- Pass key_type to function creating filename for key |
| 113 |
- Add scheme parameter before curveid to createprimary_ecc |
| 114 |
- Rename is_ek to preserve for future extension |
| 115 |
- Mask-out EK and plaform certificate flags and set cert_flags |
| 116 |
- Move common code into new function read_certificate_file() |
| 117 |
- Exit with '0' upon --version rather than '1' |
| 118 |
- Close file descriptors passed to swtpm process on parent side |
| 119 |
- Make stdout unbuffered |
| 120 |
- Use medium duration on TSC_PhysicalPresence to avoid timeouts |
| 121 |
- Add poll() after write() and before read() to detect errors |
| 122 |
- swtpm_localca: |
| 123 |
- Add support for up to 20 bytes serial numbers |
| 124 |
- Introduce --key as more generic alias for --ek |
| 125 |
- Add missing NULL option to end of array |
| 126 |
- Make stdout unbuffered |
| 127 |
- swtpm_cert: |
| 128 |
- Add support for serial numbers up to 20 bytes long |
| 129 |
- swtpm_ioctl: |
| 130 |
- Separate return code from flags |
| 131 |
- Repeatedly call PTM_GET_INFO for long responses |
| 132 |
- selinux: |
| 133 |
- Re-add rule for svirt_tcg_t and user_tmp_t:sock_file (virt-install) |
| 134 |
- New SELinux policy that requires Fedora 40 or later |
| 135 |
- tests: |
| 136 |
- Fixed occurrences of stray '\' before '-' |
| 137 |
- Rearrange order of test cases to run some also as 'root' |
| 138 |
- Add tests for command line options and combinations of options |
| 139 |
- Add softhsm_setup to shellcheck'ed files and fix issues |
| 140 |
- Add missing 'exit 1' on unexpected file size on --reconfigure |
| 141 |
- Add test cases for swtpm_cert with max serial number |
| 142 |
- Fix spelling mistakes |
| 143 |
- reformat regexs for easier readability and extension |
| 144 |
- ibmtss2: Add patch to disable x509 test with older libtpms |
| 145 |
- Upgrade to ibmtss2 v2.0.1 |
| 146 |
- Fixed several issues detected by shellcheck |
| 147 |
- build-sys: |
| 148 |
- Add support for --disable-tests to disable tests |
| 149 |
- Display GMP_LIBS and GMP_CFLAGS |
| 150 |
- Only display warning if pkg-config for gmp fails |
| 151 |
- Add gmp library and devel package as dependency |
| 152 |
- use PKG_CHECK_MODULES to check libtpms version |
| 153 |
- rpm: |
| 154 |
- Add gmp library and devel package as dependency |
| 155 |
- Split off SELinux files to build an selinux package |
| 156 |
- debian: |
| 157 |
- Sync AppArmor profile with what is used by Ubuntu |
| 158 |
- Add gmp library and devel package as dependency |
| 159 |
- Allow apparmor access to qemu session bus swtpm files |
| 160 |
|
| 161 |
version 0.8.0: |
| 162 |
- swtpm: |
| 163 |
- Implement release-lock-outgoing parameter for --migration option |
| 164 |
- Introduce --migration option and 'incoming' parameter |
| 165 |
- Implement terminate parameter for ctrl channel loss |
| 166 |
- Add a chroot option |
| 167 |
- Introduce disable-auto-shutdown flag for --flags option |
| 168 |
- If necessary send TPM2_Shutdown() before TPMLIB_Terminate() |
| 169 |
- Add some more recent syscalls to seccomp profile |
| 170 |
- Disable OpenSSL FIPS mode to avoid libtpms failures |
| 171 |
- Avoid locking directory multiple times |
| 172 |
- Remove support for pre-v0.1 state files without header |
| 173 |
- Use uint64_t in tlv_data_append() to avoid integer overflows |
| 174 |
- Use uint64_t to avoid integer wrap-around when adding a uint32_t |
| 175 |
- Do not chdir(/) when using --daemon |
| 176 |
- Check header size indicator against expected size (CVE-2022-23645) |
| 177 |
- Fixes for gcc 12.2.1 -fanalyzer |
| 178 |
- build-sys: |
| 179 |
- Fix configure script to support _FORTIFY_SOURCE=3 |
| 180 |
- Define __USE_LINUX_IOCTL_DEFS in header file (Cygwin) |
| 181 |
- swtpm-localca: |
| 182 |
- Re-implement variable resolution for swtpm-localca.conf |
| 183 |
- Test for available issuercert before creating CA |
| 184 |
- swtpm_setup: |
| 185 |
- Configure swtpm to log to stdout/err if needed (glib >=2.74) |
| 186 |
- tests: |
| 187 |
- Use ${WORKDIR} in config files to test env. var replacement |
| 188 |
- Patch IBM TSS2 test suite for OpenSSL 3.x |
| 189 |
- build-sys: |
| 190 |
- Add probing for -fstack-protector |
| 191 |
|
| 192 |
version 0.7.0: |
| 193 |
- swtpm: |
| 194 |
- Support for linear file storage backend (file://) |
| 195 |
- Report 'tpm-1.2' & 'tpm-2.0' in --print-capabilities depending what |
| 196 |
libtpms supports |
| 197 |
- Add implementation of SWTPM_HMAC using OpenSSL 3.0 APIs |
| 198 |
- Wipe keys from stack and heap |
| 199 |
- Many other small changes |
| 200 |
- Make --daemon not racy |
| 201 |
- swtpm_setup: |
| 202 |
- Only activate SHA256 PCR bank, not SHA1 bank anymore by default |
| 203 |
- Support for linear file storage backend (file://) |
| 204 |
- Implement option --create-config-files to create config files |
| 205 |
- Use non-deprecated APIs to contruct RSA key (OSSL 3) |
| 206 |
- Report stderr as returned by external tool (swtpm-localcal) |
| 207 |
- Replace '+' and ',' characters in VMId's to make work with |
| 208 |
common name in X509 subject |
| 209 |
- Add support for --reconfigure flag to change active PCR banks |
| 210 |
- swtpm_localca: |
| 211 |
- Created certificates for CAs and TPM that do not expire |
| 212 |
- swtpm_cert: |
| 213 |
- Allow passing -1 for days to get a non-expiring certificate |
| 214 |
- test: |
| 215 |
- ASAN-related test changes and skipping of tests if ASAN is used |
| 216 |
- Fix tests using tpm2-abrmd by preventing concurrency |
| 217 |
- Skip chardev related tests after checking for chardev support |
| 218 |
- exit with error code if mktemp fails |
| 219 |
- OSSL 3: Make TPM 1.2 test compile; skip IBM TSS 2 test |
| 220 |
- build-sys: |
| 221 |
- Introduce --enable-sanitizers to configure |
| 222 |
- Remove check for pip3 that was used by python swtpm_setup |
| 223 |
- Allow passing of aditional CFLAGS during build |
| 224 |
|
| 225 |
version 0.6.0: |
| 226 |
- swtpm: |
| 227 |
- Fix --print-capabilities for 'swtpm chardev' |
| 228 |
- Various cleanups and fixes (coverity) |
| 229 |
- Addressed potential symlink attack issue (CVE-2020-28407) |
| 230 |
- swtpm_setup: |
| 231 |
- Rewritten in 'C'; needs json-glib |
| 232 |
- Addressed potential symlink attack issue (CVE-2020-28407) |
| 233 |
- swtpm_ioctl: |
| 234 |
- Use timeouts for communicating with swtpm (Unix socket) |
| 235 |
- swtpm-localca: |
| 236 |
- Rewritten in 'C' |
| 237 |
- tests: |
| 238 |
- Use the IBM TSS2 v1.6.0's test suite |
| 239 |
- Store and also restore the volatile state at every step when running |
| 240 |
IBM TSS2 test suite |
| 241 |
- Various cleanup |
| 242 |
- build-sys: |
| 243 |
- Add HARDENING_CFLAGS and _LDFLAGS to all C programs |
| 244 |
|
| 245 |
version 0.5.0: |
| 246 |
- swtpm: |
| 247 |
- Write files atomically using a temp file and then renaming |
| 248 |
- swtpm_setup: |
| 249 |
- Removed remaining 'c' wrapper program |
| 250 |
- Do not truncate logfile when testing write-access (regression) |
| 251 |
- Remove TPM state file in case error occurred |
| 252 |
- swtpm-localca: |
| 253 |
- Rewrite in python |
| 254 |
- Allow passing pkcs11 PIN using signingkey_password |
| 255 |
- Allow passing environment variables needed for pkcs11 modules using |
| 256 |
swtpm-localca.conf and format 'env:VARNAME=VALUE'. |
| 257 |
- build-sys: |
| 258 |
- Add python-install and python-uninstall targets |
| 259 |
- Add configure option to disable installation of Python module |
| 260 |
- Use -Wl,-z,relro and -Wl,-z,now only when linking (clang) |
| 261 |
- Use AC_LINK_IFELSE to check whether support for hardening flags |
| 262 |
|
| 263 |
version 0.4.0: |
| 264 |
- swtpm: |
| 265 |
- Invoke print capabilities after choosing TPM version |
| 266 |
- Add some recent syscalls to seccomp blacklist |
| 267 |
- swtpm_cert: |
| 268 |
- Support --ecc-curveid option to pass curve id |
| 269 |
- swtpm_setup & related scripts: |
| 270 |
- Rewrite swtpm_setup.sh in python with TPM 1.2 not requiring tcsd |
| 271 |
and TPM tools anymore; new dependencies: |
| 272 |
- python3: pip, cryptography, setuptools |
| 273 |
dropped dependencies for swtpm_setup: |
| 274 |
- tcsd, expect, tpm-tools (some still needed for pkcs11 tests) |
| 275 |
- Added support for RSA 3072 keys (for libtpms-0.8.0) and moved to |
| 276 |
ECC NIST P384 curve; default RSA key size is still 2048 |
| 277 |
- Added support for --rsa-keysize option |
| 278 |
- Extend script to create a CA using a TPM 2 for signing |
| 279 |
- tests: |
| 280 |
- Use the IBM TSS2 v1.5.0's test suite |
| 281 |
- Add test case for loading of an NVRAM completely full with keys |
| 282 |
- Have softhsm_setup use temporary directory for softhsm config & state |
| 283 |
- various other improvements |
| 284 |
- man pages: |
| 285 |
- Improvements |
| 286 |
- build-sys: |
| 287 |
- clang: properly test for linker flag 'now' and 'relro' |
| 288 |
- Gentoo: explicitly link libswtpm_libtpms with -lcrypto |
| 289 |
- Ownership of /var/lib/swtpm-localca is now tss:root and |
| 290 |
mode flags 0750. |
| 291 |
|
| 292 |
version 0.3.0: |
| 293 |
- swtpm: |
| 294 |
- Support for applying 'TPM Startup' command during initialization |
| 295 |
- Use writev_full rather than writev; fixes --vtpm-proxy EIO error |
| 296 |
- Only accept() new client ctrl connection if we have none (bugfix) |
| 297 |
- swtpm_setup & related scripts: |
| 298 |
- Support whitespaces in filenames and paths |
| 299 |
- Do not fail on future PCR banks' hashes |
| 300 |
- swtpm_cert: |
| 301 |
- Fix OIDs for TPM 2 platforms data |
| 302 |
- Option parsing cleanup |
| 303 |
- Support for passing password in various forms |
| 304 |
- Use gnutls_x509_crt_get_subject_key_id API call for subj keyId |
| 305 |
- Support 64bit serial numbers read from command line |
| 306 |
- swtpm_ioctl: |
| 307 |
- Block SIGPIPE so we can get EPIPE on write() |
| 308 |
- swtpm_bios: |
| 309 |
- Block SIGPIPE so we can get EPIPE on write() |
| 310 |
- tests: |
| 311 |
- Increased timeouts and better support for running tests with |
| 312 |
executables run by valgrind |
| 313 |
- Allow running tests with choice of seccomp profile option |
| 314 |
(SWTPM_TEST_SECCOMP_OPT) to enable building for Ubuntu |
| 315 |
- Various cleanups & fixes |
| 316 |
- SELinux: |
| 317 |
- More rules added for support on F30 |
| 318 |
|
| 319 |
version 0.2.0: |
| 320 |
- Linux: swtpm now runs with a seccomp profile (blacklist) if compiled with |
| 321 |
libseccomp support |
| 322 |
- Added subpport for passing key and passphrase via file descriptor |
| 323 |
- TPM 2 commands can now be prefixed by 'the TCG header' and responses will |
| 324 |
have a 4-byte prefix and 4-byte suffix. |
| 325 |
- Added --print-capabilities command line option |
| 326 |
- Proper handling on EINTR on read, poll, and write |
| 327 |
|
| 328 |
version 0.1.0: |
| 329 |
first public release |