[libvirt] [PATCH 1/2] seclabel: Do not output relabel attribute for type 'none'

Eric Blake eblake at redhat.com
Tue Feb 7 20:31:39 UTC 2012


On 02/07/2012 01:10 PM, Jiri Denemark wrote:
> Security label type 'none' requires relabel to be set to 'no' so there's
> no reason to output this extra attribute.  Moreover, since relabel is
> internally stored in a negative from (norelabel), the default value for
> relabel would be 'yes' in case there is no <seclabel> element in domain
> configuration.  In case VIR_DOMAIN_SECLABEL_DEFAULT turns into
> VIR_DOMAIN_SECLABEL_NONE, we would incorrectly output relabel='yes' for
> seclabel type 'none'.
> ---
>  src/conf/domain_conf.c                             |    9 +++++----
>  .../qemuxml2argv-seclabel-none.xml                 |    2 +-
>  2 files changed, 6 insertions(+), 5 deletions(-)

ACK.

-- 
Eric Blake   eblake at 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: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120207/749ceb4d/attachment-0001.sig>


More information about the libvir-list mailing list