[Libguestfs] [PATCH 6/7] add-domain: Pass SELinux label from guest to appliance (RHBZ#912499).
Matthew Booth
mbooth at redhat.com
Thu Feb 28 15:46:56 UTC 2013
On Thu, 2013-02-28 at 10:57 +0000, Richard W.M. Jones wrote:
> From: "Richard W.M. Jones" <rjones at redhat.com>
>
> When adding a domain (ie. guestfs_add_domain), read the SELinux
> <label/> and <imagelabel/> from the guest and use them for the
> appliance. The appliance is statically labelled the same as the
> guest, so it is able to read its disks.
>
> However tell libvirt not to try relabelling the disks, to prevent
> libvirt from disturbing the existing labels on the disks (in
> particular when the libvirt connection is closed, we don't want
> libvirt to try to restore some other label on the disks).
> ---
> src/libvirt-domain.c | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 78 insertions(+)
>From a previous email, it sounds like you're reworking this one.
Matt
More information about the Libguestfs
mailing list