[Libguestfs] guestmount -i and xattrs

Richard W.M. Jones rjones at redhat.com
Fri Jun 8 10:33:22 UTC 2012


On Fri, Jun 08, 2012 at 11:26:54AM +0100, Richard W.M. Jones wrote:
> On Fri, Jun 08, 2012 at 11:17:09AM +0100, Pádraig Brady wrote:
> > I tried to run chcon to set SELinux labels on a guestmounted dir and got:
> > 
> > chcon: failed to change context of `authorized_keys' to
> > `system_u:object_r:ssh_home_t:s0': Operation not supported
> > 
> > I'm guessing that you need to pass 'seclabel' or 'user_xattr'
> > or some such mount option to guestmount to support this.
> > I notice you can pass such options through the -m option
> > to guestmount, but not -i which we need to use.
> > 
> > Is there a way to support -i and a subsequent chcon(1)?
> 
> No.  mount-local solves this ...
> 
> I will file a bug to have this backported for RHEL 6.4.

https://bugzilla.redhat.com/show_bug.cgi?id=830135

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://et.redhat.com/~rjones/virt-df/




More information about the Libguestfs mailing list