Bug 2103683 - tpm2-tss: sysusers entry does not match specfile setup
Summary: tpm2-tss: sysusers entry does not match specfile setup
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: tpm2-tss
Version: 36
Hardware: Unspecified
OS: All
unspecified
medium
Target Milestone: ---
Assignee: Peter Robinson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-07-04 13:48 UTC by Luca BRUNO
Modified: 2022-07-30 01:52 UTC (History)
4 users (show)

Fixed In Version: tpm2-tss-3.2.0-3.fc37 tpm2-tss-3.2.0-3.fc36
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-07-27 16:08:24 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Luca BRUNO 2022-07-04 13:48:45 UTC
The tpm2-tss specfile creates a `tss` user and group with `59` as static IDs:
https://src.fedoraproject.org/rpms/tpm2-tss/blob/f36/f/tpm2-tss.spec#_67

However the `tpm2-tss` package ships a sysusers.d fragment under `/usr/lib/sysusers.d/tpm2-tss.conf` which creates a user/group with dynamic ID allocation:
```
#Type Name ID GECOS               Home directory Shell
u     tss  -  "tss user for tpm2"
```

To fix misalignment, it would be good to update the sysusers fragment to use `59` as the UID/GID too.
That would match the actual Fedora UID/GID allocation: https://pagure.io/setup/blob/master/f/uidgid#_69

Comment 1 Fedora Update System 2022-07-27 16:05:26 UTC
FEDORA-2022-8b2424ab70 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-8b2424ab70

Comment 2 Fedora Update System 2022-07-27 16:08:24 UTC
FEDORA-2022-8b2424ab70 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 3 Fedora Update System 2022-07-27 16:48:52 UTC
FEDORA-2022-79e2b87ccb has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-79e2b87ccb

Comment 4 Fedora Update System 2022-07-28 02:33:05 UTC
FEDORA-2022-79e2b87ccb has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-79e2b87ccb`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-79e2b87ccb

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2022-07-30 01:52:29 UTC
FEDORA-2022-79e2b87ccb has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.


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