[libvirt] [PATCH tck] Relabel SELinux when customizing virt-builder image
Pino Toscano
ptoscano at redhat.com
Tue Feb 6 15:53:40 UTC 2018
On Tuesday, 6 February 2018 16:40:04 CET Daniel P. Berrangé wrote:
> When you tell virt-builder to install extra RPMs, this potentially
> looses the SELinux labelling that Anaconda had originally setup. Thus we
> must tell virt-builder to enable SELinux relabelling.
>
> Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
> ---
> lib/Sys/Virt/TCK.pm | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/lib/Sys/Virt/TCK.pm b/lib/Sys/Virt/TCK.pm
> index e9da8d2..b39f578 100644
> --- a/lib/Sys/Virt/TCK.pm
> +++ b/lib/Sys/Virt/TCK.pm
> @@ -405,7 +405,7 @@ sub create_virt_builder_disk {
> }
>
> print "# running virt-builder $osname\n";
> - system "virt-builder", "--install", "dsniff", "--root-password", "password:$password", "--output", $target, $osname;
> + system "virt-builder", "--install", "dsniff", "--selinux-relabel", "--root-password", "password:$password", "--output", $target, $osname;
>
> die "cannot run virt-builder: $?" if $? != 0;
Reviewed-by: Pino Toscano <ptoscano at redhat.com>
--
Pino Toscano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20180206/9ec12f12/attachment-0001.sig>
More information about the libvir-list
mailing list