[Libguestfs] [PATCH] Add 'setcon', 'getcon' commands to set and get the SELinux context

Richard W.M. Jones rjones at redhat.com
Wed Aug 12 16:36:40 UTC 2009


On Wed, Aug 12, 2009 at 05:21:37PM +0100, Richard W.M. Jones wrote:
>     setcon "system_u:system_r:unconfined_t:s0" : \

In case anyone gets the wrong idea, for Fedora/RHEL that context
should actually be:

unconfined_u:unconfined_r:unconfined_t:s0

And it could be different for other distributions, or even for
variations of RHEL.

Rich.

-- 
Richard Jones, Emerging Technologies, Red Hat  http://et.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.
http://et.redhat.com/~rjones/virt-p2v




More information about the Libguestfs mailing list