Bug 1879071

Summary: tss user not created if trousers package not installed
Product: Red Hat Enterprise Linux 8 Reporter: Peter Robinson <pbrobinson>
Component: tpm2-tssAssignee: Jerry Snitselaar <jsnitsel>
Status: CLOSED ERRATA QA Contact: Vilém Maršík <vmarsik>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.3CC: bhu, core-kernel-mgr, extras-qa, fmartine, jsmith.fedora, jsnitsel, pbrobinson, perobins, rvr, yunying.sun
Target Milestone: rcKeywords: Triaged
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: 1879065 Environment:
Last Closed: 2021-05-18 15:03:31 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1898189    

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