Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1879071 - tss user not created if trousers package not installed
Summary: tss user not created if trousers package not installed
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: tpm2-tss
Version: 8.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.0
Assignee: Jerry Snitselaar
QA Contact: Vilém Maršík
URL:
Whiteboard:
Depends On:
Blocks: 1898189
TreeView+ depends on / blocked
 
Reported: 2020-09-15 11:48 UTC by Peter Robinson
Modified: 2021-05-18 15:03 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of: 1879065
Environment:
Last Closed: 2021-05-18 15:03:31 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2021:1662 0 None None None 2021-05-18 15:03:48 UTC

Description Peter Robinson 2020-09-15 11:48:56 UTC
+++ This bug was initially created as a clone of Bug #1879065 +++

The TPM2 gets put into the tss user/group via udev rules in /usr/lib/udev/rules.d/60-tpm-udev.rules but the tss user/group isn't created unless the trousers package is installed.

This causes userspace issues with access to the TPM2, like if clevis is unlocking user partitions post root switch (AKA not in the initrd where everything is run as root).

In most cases now the trousers package  isn't installed because TPM2 has been the standard for a long time and TPM1 units are generally considered insecure so the tpm2-tss package should check if the user/group exists and if not create them per packaging policy.

This affects userspace TPM2 access, it doesn't affect unlocking an encrypted root filesystem as this is done as the root user in the initrd, but it affects clevis unlocking non root filesystems on a different LUKS partition such as /home or /opt as well as other TPM2 access from userspace.

--- Additional comment from Fedora Blocker Bugs Application on 2020-09-15 11:44:18 UTC ---

Proposed as a Freeze Exception for 33-beta by Fedora user pbrobinson using the blocker tracking app because:

 Causing issues on Fedora IoT and other TPM2 related bits. Not sure if it's considered a blocker or a FE as it works on clevis if it's a single LUKS partition with LVM for root and other filesystems, but if there's any LUKS that would get unlocked post switch root it's causing issues.

--- Additional comment from Peter Robinson on 2020-09-15 11:45:34 UTC ---

The tpm2-tss package is currently failing to build due to some change in doxygen, but the fix has been pushed.

Comment 10 Vilém Maršík 2021-01-30 02:38:58 UTC
Neither fixed-in-version nor version with the problem specified - did not attempt to reproduce.
Current RHEL8.4 seems to install trousers as part of the base installation, creating the tss group by default.
Verified that latest tpm2-tss recreates the tss group in RHEL-8.4.0-20210129.d.2 BaseOS x86_64:
# rpm -e trousers
# rpm -e --nodeps tpm2-tss
(removed tss group)
# grep tss /etc/group
# dnf install tpm2-tss
(...)
Installed:
  tpm2-tss-2.3.2-3.el8.x86_64

Complete!
# grep tss /etc/group
tss:x:59:
#

Comment 12 errata-xmlrpc 2021-05-18 15:03:31 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (tpm2-tss bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:1662


Note You need to log in before you can comment on or make changes to this bug.