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: ---   
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