1. 21 3月, 2014 3 次提交
  2. 18 3月, 2014 1 次提交
  3. 04 3月, 2014 2 次提交
  4. 12 2月, 2014 1 次提交
  5. 19 12月, 2013 1 次提交
  6. 14 10月, 2013 3 次提交
  7. 26 9月, 2013 1 次提交
  8. 11 9月, 2013 1 次提交
  9. 19 8月, 2013 1 次提交
    • P
      virdbus: Add virDBusHasSystemBus() · 2398dd3d
      Peter Krempa 提交于
      Some systems may not use DBus in their system. Add a method to check if
      the system bus is available that doesn't print error messages so that
      code can later check for this condition and use an alternative approach.
      2398dd3d
  10. 30 7月, 2013 1 次提交
  11. 29 7月, 2013 1 次提交
    • E
      build: fix virdbus build on mingw · 61fac39e
      Eric Blake 提交于
      Mingw headers pollute the namespace.
      
        CC       libvirt_util_la-virdbus.lo
      ../../src/util/virdbus.c:1102:35: error: expected ';', ',' or ')' before 'struct'
                             const char *interface,
                                         ^
      
      * src/util/virdbus.c (virDBusCallMethod): Avoid 'interface'.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      61fac39e
  12. 24 7月, 2013 2 次提交
    • E
      dbus: work with older dbus · b551d740
      Eric Blake 提交于
      dbus 1.2.24 (on RHEL 6) lacks DBUS_TYPE_UNIX_FD; but as we aren't
      trying to pass one of those anyways, we can just drop support for
      it in our wrapper.  Solves this build error introduced in commit
      834c9c94:
      
        CC     libvirt_util_la-virdbus.lo
      util/virdbus.c:242: error: 'DBUS_TYPE_UNIX_FD' undeclared here (not in a function)
      
      * src/util/virdbus.c (virDBusBasicTypes): Drop support for unix fds.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      b551d740
    • D
      Fix handling of DBus errors emitted by the bus itself · c64904b7
      Daniel P. Berrange 提交于
      Current code for handling dbus errors only works for errors
      received from the remote application itself. We must also
      handle errors emitted by the bus itself, for example, when
      it fails to spawn the target service.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      c64904b7
  13. 23 7月, 2013 1 次提交
    • R
      Add virDBusMessage(Encode,Decode) stubs · ac26b2b0
      Roman Bogorodskiy 提交于
      Commit 834c9c94 introduced virDBusMessageEncode and
      virDBusMessageDecode functions, however corresponding stubs
      were not added to !WITH_DBUS section, therefore 'make check'
      started to fail when compiled w/out dbus support like that:
      
      Expected symbol virDBusMessageDecode is not in ELF library
      ac26b2b0
  14. 22 7月, 2013 1 次提交
    • D
      Introduce virDBusCallMethod & virDBusMessageRead methods · 834c9c94
      Daniel P. Berrange 提交于
      Doing DBus method calls using libdbus.so is tedious in the
      extreme. systemd developers came up with a nice high level
      API for DBus method calls (sd_bus_call_method). While
      systemd doesn't use libdbus.so, their API design can easily
      be ported to libdbus.so.
      
      This patch thus introduces methods virDBusCallMethod &
      virDBusMessageRead, which are based on the code used for
      sd_bus_call_method and sd_bus_message_read. This code in
      systemd is under the LGPLv2+, so we're license compatible.
      
      This code is probably pretty unintelligible unless you are
      familiar with the DBus type system. So I added some API
      docs trying to explain how to use them, as well as test
      cases to validate that I didn't screw up the adaptation
      from the original systemd code.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      834c9c94
  15. 14 1月, 2013 1 次提交
  16. 21 12月, 2012 4 次提交
  17. 28 11月, 2012 1 次提交
  18. 21 9月, 2012 1 次提交
  19. 23 7月, 2012 1 次提交
    • O
      Desert the FSF address in copyright · f9ce7dad
      Osier Yang 提交于
      Per the FSF address could be changed from time to time, and GNU
      recommends the following now: (http://www.gnu.org/licenses/gpl-howto.html)
      
        You should have received a copy of the GNU General Public License
        along with Foobar.  If not, see <http://www.gnu.org/licenses/>.
      
      This patch removes the explicit FSF address, and uses above instead
      (of course, with inserting 'Lesser' before 'General').
      
      Except a bunch of files for security driver, all others are changed
      automatically, the copyright for securify files are not complete,
      that's why to do it manually:
      
        src/security/security_selinux.h
        src/security/security_driver.h
        src/security/security_selinux.c
        src/security/security_apparmor.h
        src/security/security_apparmor.c
        src/security/security_driver.c
      f9ce7dad
  20. 18 7月, 2012 1 次提交
  21. 20 4月, 2012 1 次提交
    • D
      The policy kit and HAL node device drivers both require a · 2223ea98
      Daniel P. Berrange 提交于
      DBus connection. The HAL device code further requires that
      the DBus connection is integrated with the event loop and
      provides such glue logic itself.
      
      The forthcoming FirewallD integration also requires a
      dbus connection with event loop integration. Thus we need
      to pull the current event loop glue out of the HAL driver.
      
      Thus we create src/util/virdbus.{c,h} files. This contains
      just one method virDBusGetSystemBus() which obtains a handle
      to the single shared system bus instance, with event glue
      automagically setup.
      2223ea98