1. 01 10月, 2010 3 次提交
    • J
      implement usb and pci hot attach in AppArmor driver · 593e0072
      Jamie Strandboge 提交于
      Description: Implement AppArmorSetSecurityHostdevLabel() and
      AppArmorRestoreSecurityHostdevLabel() for hostdev and pcidev attach.
      
      virt-aa-helper also has to be adjusted because *FileIterate() is used for pci
      and usb devices and the corresponding XML for hot attached hostdev and pcidev
      is not in the XML passed to virt-aa-helper. The new '-F filename' option is
      added to append a rule to the profile as opposed to the existing '-f
      filename', which rewrites the libvirt-<uuid>.files file anew. This new '-F'
      option will append a rule to an existing libvirt-<uuid>.files if it exists,
      otherwise it acts the same as '-f'.
      
      load_profile() and reload_profile() have been adjusted to add an 'append'
      argument, which when true will use '-F' instead of '-f' when executing
      virt-aa-helper.
      
      All existing calls to load_profile() and reload_profile() have been adjusted
      to use the old behavior (ie append==false) except AppArmorSetSavedStateLabel()
      where it made sense to use the new behavior.
      
      This patch also adds tests for '-F'.
      
      Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/640993
      593e0072
    • S
      nwfilter: Instantiate comments in ip(6)tables rules · b00f41a1
      Stefan Berger 提交于
      In this patch I am extending the rule instantiator to create the comment
      node where supported, which is the case for iptables and ip6tables.
      
      Since commands are written in the format
      
      cmd='iptables ...-m comment --comment \"\" '
      
      certain characters ('`) in the comment need to be escaped to
      prevent comments from becoming commands themselves or cause other
      forms of (bash) substitutions. I have tested this with various input and in
      my tests the input made it straight into the comment. A test case for TCK
      will be provided separately that tests this.
      b00f41a1
    • S
      nwfilter: Extend XML parser and generator w/ comment attribute · ec3d03db
      Stefan Berger 提交于
      The patch below extends the XML parser and generator so that every protocol
      now can have a comment node. Comments are limited to 256 characters.
      ec3d03db
  2. 29 9月, 2010 1 次提交
  3. 28 9月, 2010 1 次提交
  4. 27 9月, 2010 1 次提交
  5. 25 9月, 2010 1 次提交
    • S
      nwfilter: report if ip(6)tables rules would not be active · 570d0404
      Stefan Berger 提交于
      The patch below reports a warning in the log if the generated ip(6)tables rules would not be effective due to the proc filesystem entries
      
          /proc/sys/net/bridge/bridge-nf-call-iptables
          /proc/sys/net/bridge/bridge-nf-call-ip6tables
      
      containing a '0'. The warning tells the user what to do. I am rate-limiting the warning message to appear only every 10 seconds.
      570d0404
  6. 24 9月, 2010 1 次提交
  7. 23 9月, 2010 5 次提交
    • P
      Fix spelling of Xen in comments · 4dfde8cd
      Philipp Hahn 提交于
      4dfde8cd
    • E
      maint: update to latest gnulib · 76d87a59
      Eric Blake 提交于
      * .gnulib: Update to latest.
      * bootstrap.conf (gnulib_modules): Add new termios module.
      (gnulib_tool_option_extras): Make libtool usage explicit.
      * src/util/util.c (includes): Gnulib now guarantees termios.h.
      * bootstrap: Resync from gnulib.
      76d87a59
    • M
      esx: Allow '-' in VMX entry names · 0f9c2460
      Matthias Bolte 提交于
      Add a test for this.
      
      Reported by Frank Dirks.
      0f9c2460
    • C
      pciFindStubDriver should return NULL on error · 12172d18
      Chris Wright 提交于
      pciFindStubDriver currently returns 0 in one of the error cases.
      While it's correct...NULL is more readable.
      Signed-off-by: NChris Wright <chrisw@redhat.com>
      12172d18
    • D
      Make SASL work over UNIX domain sockets · 3a73eaeb
      Daniel P. Berrange 提交于
      The addrToString methods were not coping with UNIX domain sockets
      which have no normal host+port address. Hardcode special handling
      for these so that SASL routines can work over UNIX sockets. Also
      fix up SSF logic in remote client so that it presumes that a UNIX
      socket is secure
      
      * daemon/remote.c: Fix addrToString for UNIX sockets.
      * src/remote/remote_driver.c: Fix addrToString for UNIX sockets
        and fix SSF logic to work for TLS + UNIX sockets in the same
        manner
      3a73eaeb
  8. 22 9月, 2010 2 次提交
  9. 16 9月, 2010 1 次提交
  10. 14 9月, 2010 2 次提交
  11. 10 9月, 2010 8 次提交
  12. 08 9月, 2010 2 次提交
    • M
      esx: Use SessionIsActive when available · 5699034b
      Matthias Bolte 提交于
      Before this commit SessionIsActive was not used because ESX(i)
      doesn't implement it. vCenter supports SessionIsActive, so use
      it here, but keep the fall back mechanism for ESX(i) and GSX.
      5699034b
    • M
      esx: Fall back to path as key when QueryVirtualDiskUuid isn't available · 8fdb0b0c
      Matthias Bolte 提交于
      QueryVirtualDiskUuid is only available on an ESX(i) server. vCenter
      returns an NotImplemented fault and a GSX server is missing the
      VirtualDiskManager completely. Therefore only use QueryVirtualDiskUuid
      with an ESX(i) server and fall back to path as storage volume key for
      vCenter and GSX server.
      8fdb0b0c
  13. 04 9月, 2010 3 次提交
  14. 03 9月, 2010 4 次提交
    • E
      build: avoid uninitialized variable warning · 2ce55fe7
      Eric Blake 提交于
      * src/vbox/vbox_tmpl.c (vboxAttachDrives): Capture return value.
      2ce55fe7
    • M
      esx: Rework datastore path parsing and handling · 84768912
      Matthias Bolte 提交于
      Instead of splitting the path part of a datastore path into
      directory and file name, keep this in one piece. An example:
      
        "[datastore] directory/file"
      
      was split into this before:
      
        datastoreName = "datastore"
        directoryName = "directory"
        fileName = "file"
      
      Now it's split into this:
      
        datastoreName = "datastore"
        directoryName = "directory"
        directoryAndFileName = "directory/file"
      
      This simplifies code using esxUtil_ParseDatastorePath, because
      directoryAndFileName is used more often than fileName. Also the
      old approach expected the datastore path to reference an actual
      file, but this isn't always correct, especially when listing
      volumes. In that case esxUtil_ParseDatastorePath is used to parse
      a path that references a directory. This fails for a vpx://
      connection because the vCenter returns directory paths with a
      trailing '/'. The new approach is robust against this and the
      actual decision if the datastore path should reference a file or
      a directory is up to the caller of esxUtil_ParseDatastorePath.
      
      Update the tests accordingly.
      84768912
    • E
      vbox: factor a large function · 2af93cd4
      Eric Blake 提交于
      * src/vbox/vbox_tmpl.c (vboxDomainDefineXML): Split...
      (vboxSetBootDeviceOrder, vboxAttachDrives, vboxAttachSound)
      (vboxAttachNetwork, vboxAttachSerial, vboxAttachParallel)
      (vboxAttachVideo, vboxAttachDisplay, vboxAttachUSB): ...into new
      helper functions.
      2af93cd4
    • E
      lxc: avoid large stacks with veth creation · f694036f
      Eric Blake 提交于
      * src/lxc/veth.h (vethCreate): Change prototype.
      * src/lxc/veth.c (vethCreate): Always malloc veth2, and allocate
      veth1 if needed.
      (getFreeVethName): Adjust signature, and use virAsprintf.
      * src/lxc/lxc_driver.c (lxcSetupInterfaces): Adjust caller.
      f694036f
  15. 02 9月, 2010 4 次提交
  16. 01 9月, 2010 1 次提交