[libvirt] [PATCH] doc: Clarify usage of SELinux baselabel

Eric Blake eblake at redhat.com
Wed Apr 24 15:57:08 UTC 2013


On 04/24/2013 07:30 AM, Peter Krempa wrote:
> State what fields are used when generating SELinux labels from a
> baselabel.
> ---
>  docs/formatdomain.html.in | 9 +++++++--
>  1 file changed, 7 insertions(+), 2 deletions(-)
> 
> diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in
> index 888c005..9118ff0 100644
> --- a/docs/formatdomain.html.in
> +++ b/docs/formatdomain.html.in
> @@ -4596,8 +4596,13 @@ qemu-kvm -net nic,model=? /dev/null
>        </dd>
>        <dt><code>baselabel</code></dt>
>        <dd>If dynamic labelling is used, this can optionally be
> -        used to specify the base security label. The format
> -        of the content depends on the security driver in use.
> +        used to specify the base security label that will be used to generate
> +        the actual label. The format of the content depends on the security
> +        driver in use.
> +
> +        The SELinux driver uses only the <code>type</code> field of the
> +        baselabel in the generated label. Other fields are inherited from
> +        the parent process when using SELinux baselabels.

ACK - definite improvement.

Hmm - we already gave the example of:
    <baselabel>system_u:system_r:my_svirt_t:s0</baselabel>

Would it help to mention here that in the example above, the baselabel
uses only the 'my_svirt_t' portion of the given label?

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130424/ec5de5f2/attachment-0001.sig>


More information about the libvir-list mailing list