Bug 2165317

Summary: Fix file modes of some %ghost-ed files
Product: Red Hat Enterprise Linux 9 Reporter: Michal Sekletar <msekleta>
Component: systemdAssignee: systemd-maint
Status: CLOSED DUPLICATE QA Contact: Frantisek Sumsal <fsumsal>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 9.1CC: dtardon, systemd-maint-list
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-01-30 08:48:26 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

*** This bug has been marked as a duplicate of bug 2165316 ***