1. 28 5月, 2013 1 次提交
    • E
      syntax: prefer space after semicolon in for loop · 146ba114
      Eric Blake 提交于
      I noticed several unusual spacings in for loops, and decided to
      fix them up.  See the next commit for the syntax check that found
      all of these.
      
      * examples/domsuspend/suspend.c (main): Fix spacing.
      * python/libvirt-override.c: Likewise.
      * src/conf/interface_conf.c: Likewise.
      * src/security/virt-aa-helper.c: Likewise.
      * src/util/virconf.c: Likewise.
      * src/util/virhook.c: Likewise.
      * src/util/virlog.c: Likewise.
      * src/util/virsocketaddr.c: Likewise.
      * src/util/virsysinfo.c: Likewise.
      * src/util/viruuid.c: Likewise.
      * src/vbox/vbox_tmpl.c: Likewise.
      * src/xen/xen_hypervisor.c: Likewise.
      * tools/virsh-domain-monitor.c (vshDomainStateToString): Drop
      default case, to let compiler check us.
      * tools/virsh-domain.c (vshDomainVcpuStateToString): Likewise.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      146ba114
  2. 24 5月, 2013 1 次提交
    • J
      xen: Resolve Coverity FORWARD_NULL issue · 677981d1
      John Ferlan 提交于
      Commit '18b14012' refactored the Xen code resulting in a Coverity
      warning about possible NULL reference if the path where the XM driver
      takes puts the def on it's list.  Moved/duplicated the virGetDomain()
      call to pacify the possible NULL deref.
      677981d1
  3. 23 5月, 2013 1 次提交
  4. 21 5月, 2013 13 次提交
    • O
      src/xen: Remove the whitespace before ';' · 0c38d36d
      Osier Yang 提交于
      0c38d36d
    • D
      Convert Xen domain core dump driver methods to use virDomainDefPtr · fa9b8b04
      Daniel P. Berrange 提交于
      Introduce use of a virDomainDefPtr in the domain coredump
      APIs to simplify introduction of ACL security checks.
      The virDomainPtr cannot be safely used, since the app
      may have supplied mis-matching name/uuid/id fields. eg
      the name points to domain X, while the uuid points to
      domain Y. Resolving the virDomainPtr to a virDomainDefPtr
      ensures a consistent name/uuid/id set.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      fa9b8b04
    • D
      Convert Xen domain stats/peek driver methods to use virDomainDefPtr · 89d819f2
      Daniel P. Berrange 提交于
      Introduce use of a virDomainDefPtr in the domain stats &
      peek APIs to simplify introduction of ACL security checks.
      The virDomainPtr cannot be safely used, since the app
      may have supplied mis-matching name/uuid/id fields. eg
      the name points to domain X, while the uuid points to
      domain Y. Resolving the virDomainPtr to a virDomainDefPtr
      ensures a consistent name/uuid/id set.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      89d819f2
    • D
      Convert Xen domain scheduler driver methods to use virDomainDefPtr · f6e95ac0
      Daniel P. Berrange 提交于
      Introduce use of a virDomainDefPtr in the domain scheduler
      APIs to simplify introduction of ACL security checks.
      The virDomainPtr cannot be safely used, since the app
      may have supplied mis-matching name/uuid/id fields. eg
      the name points to domain X, while the uuid points to
      domain Y. Resolving the virDomainPtr to a virDomainDefPtr
      ensures a consistent name/uuid/id set.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      f6e95ac0
    • D
      Convert Xen domain autostart driver methods to use virDomainDefPtr · d305e869
      Daniel P. Berrange 提交于
      Introduce use of a virDomainDefPtr in the domain autostart
      APIs to simplify introduction of ACL security checks.
      The virDomainPtr cannot be safely used, since the app
      may have supplied mis-matching name/uuid/id fields. eg
      the name points to domain X, while the uuid points to
      domain Y. Resolving the virDomainPtr to a virDomainDefPtr
      ensures a consistent name/uuid/id set.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      d305e869
    • D
      Convert Xen domain device hotplug driver methods to use virDomainDefPtr · 21213a4b
      Daniel P. Berrange 提交于
      Introduce use of a virDomainDefPtr in the domain hotplug
      APIs to simplify introduction of ACL security checks.
      The virDomainPtr cannot be safely used, since the app
      may have supplied mis-matching name/uuid/id fields. eg
      the name points to domain X, while the uuid points to
      domain Y. Resolving the virDomainPtr to a virDomainDefPtr
      ensures a consistent name/uuid/id set.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      21213a4b
    • D
      Convert Xen domain VCPU driver methods to use virDomainDefPtr · 95e18efd
      Daniel P. Berrange 提交于
      Introduce use of a virDomainDefPtr in the domain VCPU
      APIs to simplify introduction of ACL security checks.
      The virDomainPtr cannot be safely used, since the app
      may have supplied mis-matching name/uuid/id fields. eg
      the name points to domain X, while the uuid points to
      domain Y. Resolving the virDomainPtr to a virDomainDefPtr
      ensures a consistent name/uuid/id set.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      95e18efd
    • D
      Convert Xen domain create/define/getxml/migration APIs to use virDomainDefPtr · 18b14012
      Daniel P. Berrange 提交于
      Introduce use of a virDomainDefPtr in the domain create, migrate,
      getxml, & define APIs to simplify introduction of ACL security
      checks. The virDomainPtr cannot be safely used, since the app
      may have supplied mis-matching name/uuid/id fields. eg
      the name points to domain X, while the uuid points to
      domain Y. Resolving the virDomainPtr to a virDomainDefPtr
      ensures a consistent name/uuid/id set.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      18b14012
    • D
      Convert Xen domain managed save driver methods to use virDomainDefPtr · 0a6fc8ab
      Daniel P. Berrange 提交于
      Introduce use of a virDomainDefPtr in the domain save
      APIs to simplify introduction of ACL security checks.
      The virDomainPtr cannot be safely used, since the app
      may have supplied mis-matching name/uuid/id fields. eg
      the name points to domain X, while the uuid points to
      domain Y. Resolving the virDomainPtr to a virDomainDefPtr
      ensures a consistent name/uuid/id set.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      0a6fc8ab
    • D
      Convert Xen domain property driver methods to use virDomainDefPtr · 249fbea0
      Daniel P. Berrange 提交于
      Introduce use of a virDomainDefPtr in the domain property
      APIs to simplify introduction of ACL security checks.
      The virDomainPtr cannot be safely used, since the app
      may have supplied mis-matching name/uuid/id fields. eg
      the name points to domain X, while the uuid points to
      domain Y. Resolving the virDomainPtr to a virDomainDefPtr
      ensures a consistent name/uuid/id set.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      249fbea0
    • D
      Convert Xen domain lifecycle driver methods to use virDomainDefPtr · f547c520
      Daniel P. Berrange 提交于
      Introduce use of a virDomainDefPtr in the domain lifecycle
      APIs to simplify introduction of ACL security checks.
      The virDomainPtr cannot be safely used, since the app
      may have supplied mis-matching name/uuid/id fields. eg
      the name points to domain X, while the uuid points to
      domain Y. Resolving the virDomainPtr to a virDomainDefPtr
      ensures a consistent name/uuid/id set.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      f547c520
    • D
      Convert Xen domain lookup driver methods to use virDomainDefPtr · 5ed5783b
      Daniel P. Berrange 提交于
      Introduce use of a virDomainDefPtr in the domain lookup
      APIs to simplify introduction of ACL security checks.
      The virDomainPtr cannot be safely used, since the app
      may have supplied mis-matching name/uuid/id fields. eg
      the name points to domain X, while the uuid points to
      domain Y. Resolving the virDomainPtr to a virDomainDefPtr
      ensures a consistent name/uuid/id set.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      5ed5783b
    • E
      maint: use LGPL correctly · d7f53c7b
      Eric Blake 提交于
      Several files called out COPYING or COPYING.LIB instead of using
      the normal boilerplate.  It's especially important that we don't
      call out COPYING from an LGPL file, since COPYING is traditionally
      used for the GPL.  A few files were lacking copyright altogether.
      
      * src/rpc/gendispatch.pl: Add missing copyright.
      * Makefile.nonreentrant: Likewise.
      * src/check-symfile.pl: Likewise.
      * src/check-symsorting.pl: Likewise.
      * src/driver.h: Likewise.
      * src/internal.h: Likewise.
      * tools/libvirt-guests.sh.in: Likewise.
      * tools/virt-pki-validate.in: Mention copyright in comment, not just code.
      * tools/virt-sanlock-cleanup.in: Likewise.
      * src/rpc/genprotocol.pl: Spell out license terms.
      * src/xen/xend_internal.h: Likewise.
      * src/xen/xend_internal.c: Likewise.
      * Makefile.am: Likewise.
      * daemon/Makefile.am: Likewise.
      * docs/Makefile.am: Likewise.
      * docs/schemas/Makefile.am: Likewise.
      * examples/apparmor/Makefile.am: Likewise.
      * examples/domain-events/events-c/Makefile.am: Likewise.
      * examples/dominfo/Makefile.am: Likewise.
      * examples/domsuspend/Makefile.am: Likewise.
      * examples/hellolibvirt/Makefile.am: Likewise.
      * examples/openauth/Makefile.am: Likewise.
      * examples/python/Makefile.am: Likewise.
      * examples/systemtap/Makefile.am: Likewise.
      * examples/xml/nwfilter/Makefile.am: Likewise.
      * gnulib/lib/Makefile.am: Likewise.
      * gnulib/tests/Makefile.am: Likewise.
      * include/Makefile.am: Likewise.
      * include/libvirt/Makefile.am: Likewise.
      * python/Makefile.am: Likewise.
      * python/tests/Makefile.am: Likewise.
      * src/Makefile.am: Likewise.
      * tests/Makefile.am: Likewise.
      * tools/Makefile.am: Likewise.
      * configure.ac: Likewise.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      d7f53c7b
  5. 14 5月, 2013 1 次提交
  6. 11 5月, 2013 1 次提交
    • L
      util: move virFile* functions from virutil.c to virfile.c · bfe7721d
      Laine Stump 提交于
      These all existed before virfile.c was created, and for some reason
      weren't moved.
      
      This is mostly straightfoward, although the syntax rule prohibiting
      write() had to be changed to have an exception for virfile.c instead
      of virutil.c.
      
      This movement pointed out that there is a function called
      virBuildPath(), and another almost identical function called
      virFileBuildPath(). They really should be a single function, which
      I'll take care of as soon as I figure out what the arglist should look
      like.
      bfe7721d
  7. 09 5月, 2013 22 次提交