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 2165317 - Fix file modes of some %ghost-ed files
Summary: Fix file modes of some %ghost-ed files
Keywords:
Status: CLOSED DUPLICATE of bug 2165316
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: systemd
Version: 9.1
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: systemd-maint
QA Contact: Frantisek Sumsal
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-01-29 10:27 UTC by Michal Sekletar
Modified: 2023-01-30 08:48 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-01-30 08:48:26 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-146820 0 None None None 2023-01-29 10:29:10 UTC

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


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