Bug 250452

Summary: SElinux prevents brctl (called from libvirtd init script) setting up virbr0
Product: [Fedora] Fedora Reporter: Ewan Mac Mahon <ewan>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 7   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-08-02 21:45:52 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
sealert output corresponding to the quoted setroubleshoot log message none

Description Ewan Mac Mahon 2007-08-01 18:06:31 UTC
Description of problem:

On current up to date F7 the virbr0 interface for virtual machines is not 
created with selinux in enforcing mode.

Version-Release number of selected component (if applicable):
selinux-policy-2.6.4-29.fc7

How reproducible:
Completely.


Steps to Reproduce:
1. Boot F7 system, starting libvirtd
2. Inspect list of network interfaces.

Also, 'service libvirtd restart' also generates the same error.

Actual results:
No virbr0 appears

Expected results:
libvirtd sets up virbr0

Additional info:
Booting the system with enforcing=0 works as expected, and the virbr0 bridge 
interface is created. With selinux in enforcing mode the interface is not 
created (though libvirtd otherwise starts up), and se-troubleshoot reports:
 "SELinux is preventing /usr/sbin/brctl (brctl_t) "getattr" to /sys/class/net
/virbr0/bridge/forward_delay (sysfs_t)." (corresponding sealert output 
attached).

Comment 1 Ewan Mac Mahon 2007-08-01 18:06:31 UTC
Created attachment 160444 [details]
sealert output corresponding to the quoted setroubleshoot log message

Comment 2 Daniel Walsh 2007-08-01 20:34:35 UTC
Fixed in selinux-policy-2.6.4-30.fc7

Comment 3 Ewan Mac Mahon 2007-08-01 23:30:43 UTC
I've retried with selinux-policy-2.6.4-30.fc7 from updates-testing, and it has 
indeed fixed it; thanks.