diff --git a/ChangeLog b/ChangeLog index 0de7884ec3..cb1715426b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Thu Jul 3 11:27:14 GMT 2009 Mark McLoughlin + + Patch from Cole Robinson in https://bugzilla.redhat.com/499569 + + * src/security_selinux.c: Skip labelling if no src path + present + Thu Jul 3 11:26:04 GMT 2009 Mark McLoughlin Patch from Tim Waugh in https://bugzilla.redhat.com/507555 diff --git a/src/security_selinux.c b/src/security_selinux.c index 174dd57b72..80c1c855b9 100644 --- a/src/security_selinux.c +++ b/src/security_selinux.c @@ -380,6 +380,9 @@ SELinuxSetSecurityImageLabel(virConnectPtr conn, { const virSecurityLabelDefPtr secdef = &vm->def->seclabel; + if (!disk->src) + return 0; + if (disk->shared) { return SELinuxSetFilecon(conn, disk->src, default_image_context); } else if (disk->readonly) {