RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1702658 - TPS tests fail for sssd-common in RHEL 8 (rpm -V sssd-common)
Summary: TPS tests fail for sssd-common in RHEL 8 (rpm -V sssd-common)
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: sssd
Version: 8.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: 8.0
Assignee: Michal Zidek
QA Contact: sssd-qe
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-04-24 11:38 UTC by Michal Zidek
Modified: 2020-11-14 13:40 UTC (History)
10 users (show)

Fixed In Version: sssd-2.2.0-7.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-11-05 22:34:25 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2019:3651 0 None None None 2019-11-05 22:34:44 UTC

Description Michal Zidek 2019-04-24 11:38:56 UTC
RHEL 8 packages fail TPS tests.

result: verify test: FAIL:
sssd-common.aarch64: /var/lib/sss/mc/passwd .....UG.. g [tps:B]
sssd-common.aarch64: /var/lib/sss/mc/initgroups .....UG.. g [tps:B]
sssd-common.aarch64: /var/lib/sss/mc/group .....UG.. g [tps:B]
TPS verify test analysis tags:
tps:a -- verify errors on both arches
tps:b -- verify error on file not present in alternative arch
tps:c -- verify error on preferred binary/ELF file
tps:d -- significant type of verify error


It can be reproduced with rpm --verify sssd-common on RHEL 8.

Fixing this requires following spec file change.

@@ -889,12 +889,12 @@ done
 %dir %{sssdstatedir}
 %dir %{_localstatedir}/cache/krb5rcache
 %attr(700,sssd,sssd) %dir %{dbpath}
-%attr(755,sssd,sssd) %dir %{mcpath}
+%attr(775,sssd,sssd) %dir %{mcpath}
 %attr(700,root,root) %dir %{secdbpath}
 %attr(751,root,root) %dir %{deskprofilepath}
-%ghost %attr(0644,sssd,sssd) %verify(not md5 size mtime) %{mcpath}/passwd
-%ghost %attr(0644,sssd,sssd) %verify(not md5 size mtime) %{mcpath}/group
-%ghost %attr(0644,sssd,sssd) %verify(not md5 size mtime) %{mcpath}/initgroups
+%ghost %attr(0664,sssd,sssd) %verify(not md5 size mtime) %{mcpath}/passwd
+%ghost %attr(0664,sssd,sssd) %verify(not md5 size mtime) %{mcpath}/group
+%ghost %attr(0664,sssd,sssd) %verify(not md5 size mtime) %{mcpath}/initgroups
 %attr(755,sssd,sssd) %dir %{pipepath}
 %attr(750,sssd,root) %dir %{pipepath}/private
 %attr(755,sssd,sssd) %dir %{pubconfpath}
@@ -903,7 +903,7 @@ done
 %attr(700,sssd,sssd) %dir %{_sysconfdir}/sssd
 %attr(711,sssd,sssd) %dir %{_sysconfdir}/sssd/conf.d
 %attr(711,root,root) %dir %{_sysconfdir}/sssd/pki
-%ghost %attr(0600,sssd,sssd) %config(noreplace) %{_sysconfdir}/sssd/sssd.conf
+%ghost %attr(0600,root,root) %config(noreplace) %{_sysconfdir}/sssd/sssd.conf
 %dir %{_sysconfdir}/logrotate.d
 %config(noreplace) %{_sysconfdir}/logrotate.d/sssd
 %dir %{_sysconfdir}/rwtab.d

Comment 1 Michal Zidek 2019-04-24 11:49:55 UTC
Steeve found this with the TPS tests for the latest RHEL 8 0day build. So this needs to be fixed in RHEL 8 0day as well. Can we have 0day clone of this BZ as well? I know it is quite late in the z-stream cycle (tomorrow is REL_PREP deadline), but I do not think we can release a package that fails rpm --verify.

Comment 4 Michal Zidek 2019-08-03 01:44:56 UTC
This is already fixed in the current version in distgit in the 8.1.0. No patches needed, I will put the current version into "Fixed in version" field.

Comment 6 Amith 2019-09-10 01:11:59 UTC
Verified the bug with SSSD version: sssd-common-2.2.0-19.el8.s390x

Also with version: sssd-common-2.2.0-11.el8.x86_64 and sssd-common-2.2.0-19.el8.aarch64

# rpm -q sssd-common; rpm --verify sssd-common; echo $?
sssd-common-2.2.0-11.el8.x86_64
0
---------------------------

# rpm -q sssd-common; rpm --verify sssd-common; echo $?
sssd-common-2.2.0-19.el8.s390x
0

----------------------------

# rpm -q sssd-common; rpm --verify sssd-common; echo $?
sssd-common-2.2.0-19.el8.aarch64
0

The bug looks fixed hence marking it verified.

Comment 8 errata-xmlrpc 2019-11-05 22:34:25 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, 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/RHSA-2019:3651


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