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 1945679 - Creating tmp files for systemd on behalf of krb5 references legacy directory /var/run/ instead of /run
Summary: Creating tmp files for systemd on behalf of krb5 references legacy directory ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: krb5
Version: 8.4
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: beta
: ---
Assignee: Petr Vobornik
QA Contact: Filip Dvorak
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-04-01 15:51 UTC by Filip Dvorak
Modified: 2021-11-10 07:18 UTC (History)
4 users (show)

Fixed In Version: krb5-1.18.2-10.el8
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-09 19:33:18 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker FREEIPA-7301 0 None None None 2021-11-09 20:04:54 UTC
Red Hat Product Errata RHBA-2021:4378 0 None None None 2021-11-09 19:33:41 UTC

Description Filip Dvorak 2021-04-01 15:51:48 UTC
Description of problem:
There is an error message when the command "systemd-tmpfiles --create" is run.

# systemd-tmpfiles --create
[/usr/lib/tmpfiles.d/krb5-krb5kdc.conf:1] Line references path below legacy directory /var/run/, updating /var/run/krb5kdc → /run/krb5kdc; please update the tmpfiles.d/ drop-in file accordingly.

Version-Release number of selected component (if applicable):
krb5-libs-1.18.2-8.el8.x86_64
RHEL8.4


How reproducible:


Steps to Reproduce:
1. install krb5-server, krb5-workstation
2. systemd-tmpfiles --create
3.

Actual results:
[/usr/lib/tmpfiles.d/krb5-krb5kdc.conf:1] Line references path below legacy directory /var/run/, updating /var/run/krb5kdc → /run/krb5kdc; please update the tmpfiles.d/ drop-in file accordingly.


Expected results:
No errors related to krb5 should be generated by command.

Additional info:
The configuration file for the package should be updated.

Comment 2 Robbie Harwood 2021-04-01 17:44:03 UTC
Ugh, this systemd decision is bad and they shouldn't have foisted it on RHEL 8.

Nothing breaks by using the /var/run location (and FHS says it's probably a link anyway).  It's not a problem for Fedora / RHEL 9.  Making the warning go away was nontrivial as well - we ran afoul of some autoconf behavior changes (this is the --runstatedir bug).

So in light of that, I'd prefer not to make changes for RHEL 8, if that's alright with you?

Comment 3 Filip Dvorak 2021-04-07 13:03:06 UTC
I thought that the solution is only a small change of the path in the configuration file - /usr/lib/tmpfiles.d/krb5-krb5kdc.conf or am I wrong? I remember that we had the same issue with FR as well and Alex fixed it this way. But in my opinion, the problem is only with a warning message (there is a link between /run/ and /var/run). If you prefer not to make any changes for RHEL8 I am fine with it.

I have checked it on RHEL9 and it was ok there.

Comment 4 Robbie Harwood 2021-04-07 15:00:52 UTC
What's in /var/run (or /run since they're symlinked) is our OTP socket.  This is of course referred to by the tmpfiles.d drop-in you mention, but it's also referred to frequently elsewhere in the code.

So my objection isn't to modifying the tmpfile drop-in, it's to changing the "everything else".  Scoped to just the tmpfiles.d drop-in, this would be fine to change.

Comment 5 Filip Dvorak 2021-04-08 13:52:32 UTC
OK, I see. If we could remove the warning message only with a modification in tmpfile (/usr/lib/tmpfiles.d/krb5-krb5kdc.conf) let's do it. If would be necessary to modify a lot of krb5's code it is not worth doing it in my opinion. Krb5 works smoothly now and we do not want any unexpected issues.

Comment 12 errata-xmlrpc 2021-11-09 19:33:18 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 (krb5 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-2021:4378


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