Bug 230326 - xend fails to start with selinux enabled
xend fails to start with selinux enabled
Status: CLOSED CURRENTRELEASE
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted (Show other bugs)
rawhide
All Linux
medium Severity medium
: ---
: ---
Assigned To: Daniel Walsh
Brian Brock
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-02-28 07:11 EST by Mark McLoughlin
Modified: 2007-11-30 17:11 EST (History)
3 users (show)

See Also:
Fixed In Version: Current
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-08-22 10:16:02 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Mark McLoughlin 2007-02-28 07:11:25 EST
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 12:18:52 EDT
Fixed in selinux-policy-2.5.9-1.fc7
Comment 2 Daniel Walsh 2007-08-22 10:16:02 EDT
Should be fixed in the current release

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