Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1395818 - rpm does not verify %ghost files
rpm does not verify %ghost files
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: rpm (Show other bugs)
7.4
Unspecified Unspecified
unspecified Severity unspecified
: rc
: ---
Assigned To: packaging-team-maint
Jan Blazek
Marie Dolezelova
:
: 1568628 (view as bug list)
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-11-16 13:26 EST by Jan Pokorný
Modified: 2018-10-30 07:34 EDT (History)
5 users (show)

See Also:
Fixed In Version: rpm-4.11.3-34.el7
Doc Type: Release Note
Doc Text:
The "--noghost" option has been added to the "rpm -V" command This update adds the "--noghost" option to the "rpm -V" command. If used with this option, "rpm -V" verifies only the non-ghost files that were altered, which helps diagnose system problems.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-10-30 07:34:10 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2018:3250 None None None 2018-10-30 07:34 EDT

  None (edit)
Description Jan Pokorný 2016-11-16 13:26:43 EST
# yum install pcs; systemctl start pcsd; systemctl stop pcsd
> [...]

# rpm -q pcs
> pcs-0.9.152-10.el7.x86_64

# rpm -qlvv pcs | grep cookiesecret
> ----------    1 root    root                        0 Sep 20 11:25 /var/lib/pcsd/pcsd.cookiesecret

# rpm -Vvv pcs |& grep cookiesecre
> [nothing]

# chgrp haclient /var/lib/pcsd/pcsd.cookiesecret

# rpm -Vvv pcs |& grep cookiesecre
> [nothing]


One would expect that all metadata except for checksum+size are tracked
and checked usual.  Desired state is that the last command will indicate
the group ownership of the file differs from a predestined one.


# rpm -q rpm
> rpm-4.11.3-21.el7.x86_64
Comment 1 Panu Matilainen 2016-11-17 02:44:35 EST
Confirmed, this broken upstream too, probably been that way for ages/ever.
Comment 4 Jan Pokorný 2016-11-18 04:40:23 EST
Thanks; it's important to get there, regardless time-to-notice :-)
Comment 5 Panu Matilainen 2018-01-12 06:41:47 EST
Lest it be forgotten, if/when the patch from comment #2 is applied, this is needs to go with it to avoid other regressions: https://github.com/rpm-software-management/rpm/commit/7013a82d575309be8b7a382fcb5aa57a9f4e4635
Comment 6 Panu Matilainen 2018-04-06 04:42:04 EDT
Another fix this will need is the POPT_BIT_CLR -> POPT_BIT_SET change from https://github.com/rpm-software-management/rpm/commit/efd696d32d343b82832dd9e4aee992bff8e64ad0 - and why not documentation as well.
Comment 8 Pavlina Moravcova Varekova 2018-06-20 04:52:46 EDT
*** Bug 1568628 has been marked as a duplicate of this bug. ***
Comment 15 errata-xmlrpc 2018-10-30 07:34:10 EDT
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/RHEA-2018:3250

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