Re: [libvirt] Patch to python-virtinst to allow it to choose svirt labels

2009-02-24 Thread Daniel J Walsh
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Daniel P. Berrange wrote: > On Fri, Feb 20, 2009 at 01:52:31PM -0500, Daniel J Walsh wrote: > >> >> +def _default_seclabels(self): >> +try: >> +fd = open(selinux.selinux_virtual_domain_context_path(), 'r') >> +except

Re: [libvirt] Patch to python-virtinst to allow it to choose svirt labels

2009-02-24 Thread Daniel P. Berrange
On Fri, Feb 20, 2009 at 01:52:31PM -0500, Daniel J Walsh wrote: > > +def _default_seclabels(self): > +try: > +fd = open(selinux.selinux_virtual_domain_context_path(), 'r') > +except OSError, (err_no, msg): > +raise RuntimeError, \ > +"f

[libvirt] Patch to python-virtinst to allow it to choose svirt labels

2009-02-20 Thread Daniel J Walsh
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Also found at least one big bug in python-virtinst, VirtualDisk.py was dropping the "/" between dirname and basename of installation object, when you told it to create the object. I think we want to have a big switch stored in libvirt somewhere saying