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   
Whiteboard:
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:
Embargoed:

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/XendNode.py", line 220, in
instance
    inst = XendNode()
  File "/usr/lib64/python2.5/site-packages/xen/xend/XendNode.py", line 35, in
__init__
    self.sr = XendStorageRepository()
  File "/usr/lib64/python2.5/site-packages/xen/xend/XendStorageRepository.py",
line 84, in __init__
    self._refresh()
  File "/usr/lib64/python2.5/site-packages/xen/xend/XendStorageRepository.py",
line 149, in _refresh
    self.storage_free = self._get_free_space()
  File "/usr/lib64/python2.5/site-packages/xen/xend/XendStorageRepository.py",
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:

  fs_getattr_all_fs(xend_t)

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