[Libguestfs] virt-customize --selinux-relabel

Richard W.M. Jones rjones at redhat.com
Mon Jun 22 20:42:42 UTC 2020


On Mon, Jun 22, 2020 at 06:23:12PM +0100, Nicholas Hardiman wrote:
> I'm setting up a test VM network for myself.
> 
> Is this a good forum for questions?
> 
> For instance, I've just stumbled over SElinux type of /etc/machine-info.
> Type was unlabeled_t, not hostname_etc_t.
> I probably broke it by running virt-customize --hostname
> myhost.example.com without
> adding the option --selinux-relabel.
> 
> Is this the kind of thing I can ping this mailing list about?

I guess so because you have :-)

Yes, you need --selinux-relabel if the guest uses SELinux and you want
SELinux labels to be right.  We've discussed adding this option and
doing the right thing automatically in the past, but didn't get round
to implementing it.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top




More information about the Libguestfs mailing list