All notable changes to this project are documented in this file.
The format is based on Keep a CHANGELOG
- Unit tests accessing dbus have been fixed to use mock functions. Unit tests no longer depend on dbus.
- Race condition between client connections and dbus proxy object creation by registering bus name after instantiation of the proxy object.
- Race condition between client connections and dbus proxy object creation by registering bus name after instantiation of the proxy object.
-Wstrict-overflow=5
now used in default CFLAGS.- Handling of
TPM2_RC_CONTEXT_GAP
on behalf of users. - Convert
TPM2_PT_CONTEXT_GAP_MAX
response from lower layer toUINT32_MAX
- travis-ci now uses 'xenial' builder
- Significant refactoring of TCTI handling code.
--install
added to ACLOCAL_AMFLAGS to install aclocal required macros instead of using the default symlinks- Launch
dbus-run-session
in the automake test environment to automagically set up a dbus session bus instance when one isn't present.
- Bug caused by unloading of
libtss2-tcti-tabrmd.so
on dlclose. GLib does not support reloading a second time. - Bug causing
-fstack-protector-all
to be used on systems with core libraries (i.e. libc) that do not support it. This caused failures at link-time. - Unnecessary symbols from libtest utility library no longer included in TCTI library.
- Update build to account for upstream change to glib '.pc' files described in: https://gitlab.gnome.org/GNOME/glib/issues/1521
- Merge fixes from 1.3.2
- --enable-integration option to configure script now works as documented.
- Format specifier with wrong size in util module.
- Initialize TCTI context to 0 before setting values. This will cause all members that aren't explicitly initialized by be 0.
- Default shared object name for dynamic TCTI loading now includes major version number suffix.
- Race condition in between session mgmt and connection teardown logic.
- Leaked references to Connection objects in SessionList when calculating the number of sessions belonging to a Connection.
- Replace old '01org' URLs in configure script.
- Integration test script and build support to execute integration tests against a physical TPM2 device on the build platform.
- Implementation of dynamic TCTI initialization mechanism.
- configure option
--enable-integration
to enable integration tests. The simulator executable must be on PATH. - Support for version 2.0 of tpm2-tss libraries.
- 'max-transient-objects' command line option renamted to 'max-transients'.
- Added -Wextra for more strict checks at compile time.
- Install location of headers to $(includedir)/tss2.
- Added missing checks for NULL parameters identified by the check-build.
- Bug in session continuation logic.
- Off by one error in HandleMap.
- Memory leak and uninitialized variable issues in unit tests.
- Command line option --fail-on-loaded-trans.
- udev rules for TPM device node. This now lives in the tpm2-tss repo.
- Remove legacy TCTI initialization functions.
- configure option
--with-simulatorbin
.
- Distribute systemd preset template instead of the generated file.
- New configure option (--test-hwtpm) to run integration tests against a physical TPM2 device on the build platform.
- Install systemd service file to allow on-demand systemd unit activation.
- Converted some inappropriate uses of g_error to critical / warning instead.
- Removed use of gen_require from SELinux policy, use dbus_stub instead.
- udev rules now give tss group read / write access to the TPM device node.
- udev rules now give tss user and group read / write access to kernel RM node.
- Memory leak on an error path in the AccessBroker.
- Check SAPI library is < 2.0.0 (API change upstream).
- Abstract class for IPC frontend implementation. Port dbus code from main module to class inheriting from the IpcFrontend.
- SELinux policy module to work around policy in Fedora.
- Limit maximum number of active sessions per connection with '--max-sessions'.
- Flush all transient objects and sessions on daemon start with '--flush-all'.
- Allow passing of sessions across connections with ContextSave / Load.
- Set valgrind leak-check flag to 'full'.
- Client / server communication uses PF_LOCAL sockets instead of pipes.
- bootstrap script now creates VERSION file from 'git describe'. Autoconf gets version string from it, automake distributes it in 'distcheck'.
- Test harness upgraded to simulator version 974.
- Unit tests upgraded to the 1.x cmocka API.
- Replace use of thread in CommandSource with GMainLoop.
- Replace use of file descriptors with GIO streams.
- Separate 'dispose' and 'finalize' functions in each object.
- Move creation of FDs from connection_new to calling context (dependency inversion).
- Unref the GUnixFDList returned by GIO / dbus in the TCTI init function. This fixes a memory leak in the TCTI library.
- Systemd 'preset' file and corresponding options to the configure script.
- Option to configure script to allow the addition of a string prefix to the udev rules file name.
- Replace use of sigaction with g_unix_signal_* stuff from glib.
- Rewrite of INSTALL.md including info on custom configure script options.
- Default value for --with-simulatorbin configure option has been removed. New default behavior is to disable integration tests.
- CommandSource will no longer reject commands without parameters.
- Unit tests updated to use cmocka v1.0.0 API.
- Integration tests now run daemon under valgrind memcheck and fail when errors are found.
- CommandSource now tracks max FD in set of client FDs to prevent unnecessary iterations over FD_SETSIZE fds.
- Release tarballs now include essential files missing from 1.1.0 release.
- Robustness fixes in CommandSource.
- Stability fixes in Tpm2Command handling that could result in crashes.
- int-log-compiler.sh now fails if required binaries not found.
- check-valgrind target now depends on check_PROGRAMS to ensure daemon is built before tests are run.
- NULL deref bug in TCTI.
- Mishandling of short reads in util module.
- Race condition on daemon shutdown that could cause deadlock.
- Several logic errors & data initialization for more strict compiler versions.
- Integration test harness supporting parallel execution using automake
- Environment variables TABRMD_TEST_BUS_TYPE and TABRMD_TEST_BUS_NAME to control D-Bus type and name selection respectively in the integration test harness.
- tss2_tcti_tabrmd_init_full function to libtcti-tabrmd to allow for selection of D-Bus bus type and name used by tpm2-abrmd instance.
- Command line option --dbus-name to control the name claimed by the daemon on the D-Bus.
- Command line option --prng-seed-file to allow configuration of seed source. The default is /dev/urandom. The only use of the PRNG in the daemon is to differentiate between the connections held by a single client. infrastructure.
- Lots of new unit and integration tests.
- Automated coverity static analysis scans.
- New configuration option to specify location of simulator binary (required for integration tests).
- Lots of documentation updates (README.md / INSTALL.md)
- Travis-CI now executes all tests under valgrind / memcheck.
- Deconflict command line options: -t for TCTI selection, -a to fail if transient objects are already loaded in the TPM.
- Clients can hold multiple TCTI connections again (fixed regression).
- Syslog log handler now only shows info & debug messages when G_MESSAGES_DEBUG is set to 'all'.
- Free memory in error path in integration test harness.
- distcheck make target now works.
- Everything - initial release.