Bug 2111069
| Summary: | SELinux preventing systemd-network-generator from creating files in /run/systemd/network/ | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | HuijingHei <hhei> |
| Component: | selinux-policy | Assignee: | Nikola Knazekova <nknazeko> |
| Status: | CLOSED ERRATA | QA Contact: | Milos Malik <mmalik> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | CentOS Stream | CC: | apeetham, bstinson, bugzilla, dustymabe, dwalsh, extras-qa, fzatlouk, gmarr, grepl.miroslav, jlebon, jwboyer, kevin, lvrabec, mmalik, nknazeko, omosnace, pkoncity, robatino, ssekidde, vmojzis, zbyszek, zpytela |
| Target Milestone: | rc | Keywords: | Triaged |
| Target Release: | 9.1 | Flags: | pm-rhel:
mirror+
|
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | RejectedBlocker AcceptedFreezeException | ||
| Fixed In Version: | selinux-policy-34.1.39-1.el9 | Doc Type: | Bug Fix |
| Doc Text: |
Cause: SELinux preventing systemd-network-generator from creating files in /run/systemd/network
Consequence: systemd-network-generator fails because it can't write to /run/systemd/network/
Fix: Add support for systemd-network-generator
Result: No AVC
|
Story Points: | --- |
| Clone Of: | 2037047 | Environment: | |
| Last Closed: | 2022-11-15 11:13:54 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
HuijingHei
2022-07-26 12:26:32 UTC
Reproduce the issue with centos stream with selinux-policy-34.1.37-1.el9.noarch Test with selinux-policy-36.10-1.fc36.noarch on rhel9.1, the issue is fixed [root@hhei-rhel9-1 ~]# rpm -q selinux-policy selinux-policy-36.10-1.fc36.noarch [root@hhei-rhel9-1 ~]# systemd-run /usr/lib/systemd/systemd-network-generator -- nameserver=8.8.8.8 Running as unit: run-r86a219ff15cf4500870d604126ce2a3a.service [root@hhei-rhel9-1 ~]# journalctl -u run-r86a219ff15cf4500870d604126ce2a3a.service Jul 27 05:20:13 hhei-rhel9-1 systemd[1]: Started /usr/lib/systemd/systemd-network-generator -- nameserver=8.8.8.8. Jul 27 05:20:13 hhei-rhel9-1 systemd[1]: run-r86a219ff15cf4500870d604126ce2a3a.service: Deactivated successfully. 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 (selinux-policy 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-2022:8283 |