]> xenbits.xensource.com Git - libvirt.git/commit
Fix default value of security label 'relabel' attribute
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 5 Jul 2011 09:49:51 +0000 (10:49 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 6 Jul 2011 11:45:09 +0000 (12:45 +0100)
commit693eac388f1759d8e72b6847d40bd2e5d0e91a6b
tree5db06aea4a6821e963ad66823f9c102c7420b51c
parente123e1ee6b8e03b6286b2222d002c57418b27a63
Fix default value of security label 'relabel' attribute

When no <seclabel> is present in the XML, the virDomainSeclabelDef
struct is left as all zeros. Unfortunately, this means it gets setup
as type=dynamic, with relabel=no, which is an illegal combination.

Change the 'bool relabel' attribute in virDomainSeclabelDef to
the inverse 'bool norelabel' so that the default initialization
is sensible

* src/conf/domain_conf.c, src/conf/domain_conf.h,
  src/security/security_apparmor.c, src/security/security_selinux.c:
  Replace 'relabel' with 'norelabel'
src/conf/domain_conf.c
src/conf/domain_conf.h
src/security/security_apparmor.c
src/security/security_selinux.c