libvirt/src/security
Daniel P. Berrange 0ecd685109 Give virDomainDef parser & formatter their own flags
The virDomainDefParse* and virDomainDefFormat* methods both
accept the VIR_DOMAIN_XML_* flags defined in the public API,
along with a set of other VIR_DOMAIN_XML_INTERNAL_* flags
defined in domain_conf.c.

This is seriously confusing & error prone for a number of
reasons:

 - VIR_DOMAIN_XML_SECURE, VIR_DOMAIN_XML_MIGRATABLE and
   VIR_DOMAIN_XML_UPDATE_CPU are only relevant for the
   formatting operation
 - Some of the VIR_DOMAIN_XML_INTERNAL_* flags only apply
   to parse or to format, but not both.

This patch cleanly separates out the flags. There are two
distint VIR_DOMAIN_DEF_PARSE_* and VIR_DOMAIN_DEF_FORMAT_*
flags that are used by the corresponding methods. The
VIR_DOMAIN_XML_* flags received via public API calls must
be converted to the VIR_DOMAIN_DEF_FORMAT_* flags where
needed.

The various calls to virDomainDefParse which hardcoded the
use of the VIR_DOMAIN_XML_INACTIVE flag change to use the
VIR_DOMAIN_DEF_PARSE_INACTIVE flag.
2015-01-13 16:26:12 +00:00
..
security_apparmor.c Give virDomainDef parser & formatter their own flags 2015-01-13 16:26:12 +00:00
security_apparmor.h
security_dac.c Fix build on mingw 2014-12-11 11:13:43 +01:00
security_dac.h
security_driver.c
security_driver.h
security_manager.c Remove unnecessary curly brackets in rest of src/[o-u]*/ 2014-11-14 17:13:36 +01:00
security_manager.h
security_nop.c
security_nop.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
security_selinux.c security: Manage SELinux labels on shared/readonly hostdev's 2014-12-09 10:48:38 -05:00
security_selinux.h
security_stack.c
security_stack.h
virt-aa-helper.c Give virDomainDef parser & formatter their own flags 2015-01-13 16:26:12 +00:00