Bug 2273524 - frr fails to start: SELinux is preventing watchfrr from create access on the sock_file <several files>
Summary: frr fails to start: SELinux is preventing watchfrr from create access on the ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: frr
Version: 40
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Michal Ruprich
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-04-04 20:17 UTC by Richard W.M. Jones
Modified: 2024-04-19 21:34 UTC (History)
3 users (show)

Fixed In Version: frr-9.1-3.fc40
Clone Of:
Environment:
Last Closed: 2024-04-19 21:34:02 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
frr failures (13.21 KB, text/plain)
2024-04-04 20:17 UTC, Richard W.M. Jones
no flags Details

Description Richard W.M. Jones 2024-04-04 20:17:18 UTC
Lots of SELinux failures, but the central ones seem to be:

Apr 04 21:09:46 cash setroubleshoot[1910]: SELinux is preventing watchfrr from create access on the sock_file watchfrr.vty.
Apr 04 21:09:46 cash setroubleshoot[1910]: SELinux is preventing watchfrr from create access on the sock_file zserv.api.
Apr 04 21:09:46 cash setroubleshoot[1910]: SELinux is preventing watchfrr from create access on the sock_file zebra.vty.
Apr 04 21:09:46 cash setroubleshoot[1910]: SELinux is preventing watchfrr from create access on the sock_file mgmtd_fe.sock.
Apr 04 21:09:46 cash setroubleshoot[1910]: SELinux is preventing watchfrr from create access on the sock_file ripd.vty.
Apr 04 21:09:46 cash setroubleshoot[1910]: SELinux is preventing watchfrr from create access on the sock_file staticd.vty.

I've attached a log file with the complete failure output.

Reproducible: Always

Steps to Reproduce:
1.Fully update Fedora 40 and reboot
2.Try to start frr
3.There is no step 3

frr-9.1-2.fc40.x86_64
frr-selinux-9.1-2.fc40.noarch
selinux-policy-40.15-1.fc40.noarch

Comment 1 Richard W.M. Jones 2024-04-04 20:17:56 UTC
Created attachment 2025298 [details]
frr failures

Comment 2 Richard W.M. Jones 2024-04-04 20:18:25 UTC
audit2allow suggests:
#============= frr_t ==============
allow frr_t var_run_t:sock_file create;

Comment 3 Richard W.M. Jones 2024-04-04 20:21:02 UTC
It works if I set SELinux to Permissive, which suggests it really is an SELinux policy problem.

Comment 4 Fedora Update System 2024-04-10 09:30:14 UTC
FEDORA-2024-33518a2a2b (frr-9.1-3.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-33518a2a2b

Comment 5 Michal Ruprich 2024-04-10 09:35:25 UTC
I have pushed a fix. This was actually fixed via a PR in Rawhide some time ago but I guess that the branches were already forked so this did not get to F40.

Comment 6 Fedora Update System 2024-04-11 00:55:32 UTC
FEDORA-2024-33518a2a2b has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-33518a2a2b`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-33518a2a2b

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2024-04-19 21:34:02 UTC
FEDORA-2024-33518a2a2b (frr-9.1-3.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.


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