]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Add a domain argument to SVirt *RestoreImageLabel
authorJamie Strandboge <jamie@canonical.com>
Wed, 7 Oct 2009 10:36:35 +0000 (12:36 +0200)
committerDaniel Veillard <veillard@redhat.com>
Wed, 7 Oct 2009 10:40:01 +0000 (12:40 +0200)
commit709c37e9321484939caa1dc94555cb72865f32f0
tree65b2d3bde951b286bc76568d13e89903f8007adf
parentdb68d6b1647f42e62cdb3c3e3708920d46ac9649
Add a domain argument to SVirt *RestoreImageLabel

When James Morris originally submitted his sVirt patches (as seen in
libvirt 0.6.1), he did not require on disk labelling for
virSecurityDomainRestoreImageLabel. A later commit[2] changed this
behavior to assume on disk labelling, which halts implementations for
path-based MAC systems such as AppArmor and TOMOYO where
vm->def->seclabel is required to obtain the label.

* src/security/security_driver.h src/qemu/qemu_driver.c
  src/security/security_selinux.c: adds the 'virDomainObjPtr vm'
  argument back to *RestoreImageLabel
src/qemu/qemu_driver.c
src/security/security_driver.h
src/security/security_selinux.c