[libvirt] PATCH 1/4: AppArmor updates

Jamie Strandboge jamie at canonical.com
Mon Aug 16 18:45:45 UTC 2010


> Why do we need special behaviour to skip files which don't exist ?
> If this is solely to keep the test suite happy, then IMHO the
> fix should be in the test suite. Runtime production code shouldn't
> have workarounds for test code.

This is not to work around the test suite.

The intent is to help people migrating from < 0.8.3 to 0.8.3. When
considering the following binary states: file exists, disk format is
specified, ignoreOpenFailure and allowProbing, what is in trunk (ie
ignoreOpenFailure=true) and this patch work the same in all cases except
when the file does not exist and the format is not specified and
allowProbing=false (the new default). With what is in trunk, this is an
error condition, with my patch, the domain will start but the disk is
not added to the profile. Throwing an error because the format isn't
correct on a disk that doesn't exist seemed an odd side-effect when
migrating. I can see arguments against this, and would like to commit
the changes to tests/virt-aa-helper-test regardless.

-- 
Jamie Strandboge             | http://www.canonical.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20100816/51515819/attachment-0001.sig>


More information about the libvir-list mailing list