Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 230326

Summary: xend fails to start with selinux enabled
Product: [Fedora] Fedora Reporter: Mark McLoughlin <markmc>
Component: selinux-policy-targetedAssignee: Daniel Walsh <dwalsh>
Status: CLOSED CURRENTRELEASE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: bstein, katzj, xen-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Current Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-08-22 14:16:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Mark McLoughlin 2007-02-28 12:11:25 UTC
With xen-3.0.4, I'm getting the following traceback when starting xend:

  File "/usr/lib64/python2.5/site-packages/xen/xend/", line 220, in
    inst = XendNode()
  File "/usr/lib64/python2.5/site-packages/xen/xend/", line 35, in
__init__ = XendStorageRepository()
  File "/usr/lib64/python2.5/site-packages/xen/xend/",
line 84, in __init__
  File "/usr/lib64/python2.5/site-packages/xen/xend/",
line 149, in _refresh
    self.storage_free = self._get_free_space()
  File "/usr/lib64/python2.5/site-packages/xen/xend/",
line 161, in _get_free_space
    stfs = os.statvfs(self.storage_dir)

It's doing this statvfs() in order to figure out how much free space is on the
filesystem where /var/lib/xend/storage/ resides.

Need to update the xen policy to allow the statvfs(), I've tested with:


and it seems to start up just fine

Comment 1 Daniel Walsh 2007-03-20 16:18:52 UTC
Fixed in selinux-policy-2.5.9-1.fc7

Comment 2 Daniel Walsh 2007-08-22 14:16:02 UTC
Should be fixed in the current release