On Mon, May 19, 2014 at 06:32:49PM +0200, Pino Toscano wrote:
The other possible solution it came into my mind is adding a new API,
say selinux_relabel or so, which would just handle daemon-side all the
details needed to make sure linux guests with selinux would have proper
labels on their files. This way, clients would just do an API call, and
the daemon can do whatever it is needed (even changing the actual
implementation from version to version).
(Unfortunately) I think this is the way to go. Like inspection it
means that we build all this knowledge into libguestfs to save users
from having to handle all the details, and (like inspection) giving us
a constant headache :-)
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