[Libguestfs] [PATCH 1/2] daemon: If /selinux exists in the guest, bind-mount /sys/fs/selinux to there.

Richard W.M. Jones rjones at redhat.com
Tue Jan 28 16:31:15 UTC 2014


On Tue, Jan 28, 2014 at 05:29:16PM +0100, Pino Toscano wrote:
> Possibly I'm missing something, but... given that later /sys/fs/selinux
> of the appliance is bind-mounted as /sys/fs/selinux into the sysroot,
> couldn't /selinux be created just as a /syslinux -> sys/fs/selinux
> symlink, to have a bind mount less?

/selinux already exists as a directory in the guest (else the
bind-mount command will fail).  Since it's in the guest filesystem,
best not to go fiddling with it.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.
http://people.redhat.com/~rjones/virt-df/




More information about the Libguestfs mailing list