[Libguestfs] guestmount -i and xattrs
Richard W.M. Jones
rjones at redhat.com
Fri Jun 8 10:26:54 UTC 2012
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.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines. Supports shell scripting,
bindings from many languages. http://libguestfs.org
More information about the Libguestfs
mailing list