Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 2165316

Summary: [spec] - Fix file modes of some %ghost-ed files
Product: Red Hat Enterprise Linux 9 Reporter: Michal Sekletar <msekleta>
Component: systemdAssignee: Jan Macku <jamacku>
Status: CLOSED ERRATA QA Contact: Frantisek Sumsal <fsumsal>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 9.1CC: bgillet, dtardon, jamacku, systemd-maint-list
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: systemd-252-4.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-09 08:22:21 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:

Description Michal Sekletar 2023-01-29 10:27:11 UTC
Description of problem:
rpm -V systemd reports changed file modes on some ghosted files, e.g. /etc/machine-id. We need to specify the file mode explicitly in case the actual file mode is non standard, e.g. 0444 on /etc/machine-id

Version-Release number of selected component (if applicable):
systemd-252-2.el9.x86_64

How reproducible:
deterministic

Steps to Reproduce:
1. rpm -V systemd


Actual results:
.M.......  c /etc/machine-id
.M.......  g /var/log/btmp
.M....G..  g /var/log/journal

Expected results:
No output

Additional info:
Similar changes were done in RHEL-8 and also in Fedora.

https://pkgs.devel.redhat.com/cgit/rpms/systemd/commit/?h=rhel-8.8.0&id=15d8f0c95a3fff7d78a8c22cb0aae45ae471add1

https://src.fedoraproject.org/rpms/systemd/c/db26d980ddbf2494a379064773ab112fa8d0aaaf?branch=rawhide

https://src.fedoraproject.org/rpms/systemd/c/58777c7cac8134d2452f24429ddbef46422010cd?branch=rawhide

Comment 1 David Tardon 2023-01-30 08:48:26 UTC
*** Bug 2165317 has been marked as a duplicate of this bug. ***

Comment 6 David Tardon 2023-03-16 07:34:06 UTC
*** Bug 2178831 has been marked as a duplicate of this bug. ***

Comment 8 errata-xmlrpc 2023-05-09 08:22:21 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 (systemd 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-2023:2531