dbus/dbus
Simon McVittie a7babbf10f bus/containers: Create a DBusServer and add it to the main loop
This means we can accept connections on the new socket. For now, we
don't process them and they get closed.

For the system bus (or root's session bus, where the difference is
harmless but makes automated testing easier), rely on system-wide
infrastructure to create /run/dbus/containers. The upstream dbus
distribution no longer contains integration glue for non-systemd boot
systems, but downstreams that maintain a non-systemd boot system and are
interested in the Containers interface should create /run/dbus/containers
during boot.

Signed-off-by: Simon McVittie <smcv@collabora.com>
Reviewed-by: Philip Withnall <withnall@endlessm.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=101354
2017-12-12 16:22:16 +00:00
..
.gitignore Rename dbus-test to test-dbus to match common test application naming scheme. 2014-01-17 16:17:02 +00:00
dbus-address.c Prefer to use _dbus_test_fatal() for assertion failures in tests 2017-11-15 12:12:15 +00:00
dbus-address.h Implement dbus_clear_connection(), etc. 2017-07-30 08:48:43 +01:00
dbus-arch-deps.h.in Remove support for platforms with no 64-bit integer type 2013-09-16 15:31:02 +01:00
dbus-asv-util.c _dbus_asv_add_object_path: Add 2017-11-06 14:07:21 +00:00
dbus-asv-util.h _dbus_asv_add_object_path: Add 2017-11-06 14:07:21 +00:00
dbus-auth-script.c Prefer to use _dbus_test_fatal() for assertion failures in tests 2017-11-15 12:12:15 +00:00
dbus-auth-script.h Consistently include <config.h> in all C source files and never in header files. 2010-03-19 20:11:48 +01:00
dbus-auth-util.c Prefer to use _dbus_test_fatal() for assertion failures in tests 2017-11-15 12:12:15 +00:00
dbus-auth.c Do not mention disallowed auth mechanisms in REJECTED message 2017-02-02 12:29:11 +01:00
dbus-auth.h On bus startup check given auth in config file against supported mechanisms. 2017-02-02 11:28:35 +01:00
dbus-bus.c Refer to dbus_try_get_local_machine_id() in doc-comments 2017-06-08 18:34:40 +01:00
dbus-bus.h Decorated public exported functions with DBUS_EXPORT macro, reviewed by Colin Walters. 2010-03-16 09:33:39 +01:00
dbus-connection-internal.h Add DBUS_PRIVATE_EXPORT decoration to symbols used by dbus-daemon or tests 2015-02-20 20:49:36 +00:00
dbus-connection.c Fix missing dbus_message_unref() in error reply path 2017-06-27 18:20:52 +01:00
dbus-connection.h Implement dbus_clear_connection(), etc. 2017-07-30 08:48:43 +01:00
dbus-credentials-util.c Prefer to use _dbus_test_fatal() for assertion failures in tests 2017-11-15 12:12:15 +00:00
dbus-credentials.c Move defaults for some switches into a default case 2017-01-17 17:20:53 +00:00
dbus-credentials.h Add DBUS_PRIVATE_EXPORT decoration to symbols used by dbus-daemon or tests 2015-02-20 20:49:36 +00:00
dbus-dataslot.c Prefer to use _dbus_test_fatal() for assertion failures in tests 2017-11-15 12:12:15 +00:00
dbus-dataslot.h Replace individual global-lock variables with an array of DBusRMutex * 2013-06-17 16:53:51 +01:00
dbus-errors.c _dbus_set_error_valist: add 2015-02-03 16:19:20 +00:00
dbus-errors.h Add missing format attributes suggested by -Wsuggest-attribute=format 2016-10-13 22:44:13 +01:00
dbus-file-unix.c Fail to generate random bytes instead of falling back to rand() 2015-05-14 14:30:30 +01:00
dbus-file-win.c dbus-file-win: print a HANDLE correctly 2016-10-13 22:44:12 +01:00
dbus-file.c moved out dbus file related functions from sysdeps into separate files - tested on windows 2009-12-20 11:24:32 +01:00
dbus-file.h Add DBUS_PRIVATE_EXPORT decoration to symbols used by dbus-daemon or tests 2015-02-20 20:49:36 +00:00
dbus-hash.c Prefer to use _dbus_test_fatal() for assertion failures in tests 2017-11-15 12:12:15 +00:00
dbus-hash.h Implement dbus_clear_connection(), etc. 2017-07-30 08:48:43 +01:00
dbus-init-win.cpp dbus_threads_init_default, dbus_threads_init: be safe to call at any time 2013-05-10 11:35:08 +01:00
dbus-internals.c _dbus_test_oom_handling: print TAP diagnostics 2017-12-04 11:52:59 +00:00
dbus-internals.h bus/containers: Create a DBusServer and add it to the main loop 2017-12-12 16:22:16 +00:00
dbus-keyring.c Prefer to use _dbus_test_fatal() for assertion failures in tests 2017-11-15 12:12:15 +00:00
dbus-keyring.h Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
dbus-list.c Prefer to use _dbus_test_fatal() for assertion failures in tests 2017-11-15 12:12:15 +00:00
dbus-list.h Add DBUS_PRIVATE_EXPORT decoration to symbols used by dbus-daemon or tests 2015-02-20 20:49:36 +00:00
dbus-macros.h Implement dbus_clear_connection(), etc. 2017-07-30 08:48:43 +01:00
dbus-mainloop.c DBusMainLoop: ensure all required timeouts are restarted 2017-07-20 20:35:04 +01:00
dbus-mainloop.h Revert all changes since a36d4918a6 2012-01-04 17:44:23 +00:00
dbus-marshal-basic.c Prefer to use _dbus_test_fatal() for assertion failures in tests 2017-11-15 12:12:15 +00:00
dbus-marshal-basic.h Partially fix warnings from compiler option '-Wredundant-decls' 2016-10-10 15:11:03 +01:00
dbus-marshal-byteswap-util.c Prefer to use _dbus_test_fatal() for assertion failures in tests 2017-11-15 12:12:15 +00:00
dbus-marshal-byteswap.c Fix warning: "pointer targets in assignment differ in signedness [-Wpointer-sign]". 2015-11-24 12:26:00 +01:00
dbus-marshal-byteswap.h Add DBUS_PRIVATE_EXPORT decoration to symbols used by dbus-daemon or tests 2015-02-20 20:49:36 +00:00
dbus-marshal-header.c DBusHeader: Add a diagram of the header 2017-12-04 11:52:06 +00:00
dbus-marshal-header.h DBusHeader: Add a diagram of the header 2017-12-04 11:52:06 +00:00
dbus-marshal-recursive-util.c bus: Silence most log messages when testing OOM handling 2017-11-15 12:12:23 +00:00
dbus-marshal-recursive.c Remove trailing newlines from _dbus_warn, _dbus_warn_check_failed 2016-09-30 19:36:51 +01:00
dbus-marshal-recursive.h Add DBUS_PRIVATE_EXPORT decoration to symbols used by dbus-daemon or tests 2015-02-20 20:49:36 +00:00
dbus-marshal-validate-util.c Prefer to use _dbus_test_fatal() for assertion failures in tests 2017-11-15 12:12:15 +00:00
dbus-marshal-validate.c Remove now-unused _dbus_validate_signature() 2017-07-04 17:07:32 +01:00
dbus-marshal-validate.h Remove now-unused _dbus_validate_signature() 2017-07-04 17:07:32 +01:00
dbus-memory.c Prefer to use _dbus_test_fatal() for assertion failures in tests 2017-11-15 12:12:15 +00:00
dbus-memory.h Annotate dbus_malloc*() functions with __attribute__ malloc and __attribute__ alloc_size 2011-01-05 13:13:48 +00:00
dbus-mempool.c Fix incorrect sizeof in a Valgrind hint macro call. 2013-09-16 13:07:41 +01:00
dbus-mempool.h Add DBUS_PRIVATE_EXPORT decoration to symbols used by dbus-daemon or tests 2015-02-20 20:49:36 +00:00
dbus-message-factory.c Prefer to use _dbus_test_fatal() for assertion failures in tests 2017-11-15 12:12:15 +00:00
dbus-message-factory.h tests to embedded tests: replaced in libdbus 2013-06-28 12:15:53 +01:00
dbus-message-internal.h Implement dbus_clear_connection(), etc. 2017-07-30 08:48:43 +01:00
dbus-message-private.h Add DBUS_PRIVATE_EXPORT decoration to symbols used by dbus-daemon or tests 2015-02-20 20:49:36 +00:00
dbus-message-util.c Remove references to test/data/incomplete-messages too 2017-11-15 15:28:11 +00:00
dbus-message.c dbus_message_demarshal: Set error if we can't allocate the loader 2017-12-04 11:52:07 +00:00
dbus-message.h Implement dbus_clear_connection(), etc. 2017-07-30 08:48:43 +01:00
dbus-misc.c Prefer to use _dbus_test_fatal() for assertion failures in tests 2017-11-15 12:12:15 +00:00
dbus-misc.h Add dbus_try_get_local_machine_id() 2017-06-08 18:31:10 +01:00
dbus-nonce.c dbus-nonce: Don't crash on encountering OOM 2017-11-24 12:17:33 +00:00
dbus-nonce.h DBusNonceFile: Don't rely on caller preallocating the object 2017-11-07 12:43:52 +00:00
dbus-object-tree.c bus: Silence most log messages when testing OOM handling 2017-11-15 12:12:23 +00:00
dbus-object-tree.h Revert all changes since a36d4918a6 2012-01-04 17:44:23 +00:00
dbus-pending-call-internal.h Partially fix warnings from compiler option '-Wredundant-decls' 2016-10-10 15:11:03 +01:00
dbus-pending-call.c Cleanup: polish verbose mode checking 2013-08-23 11:51:18 +01:00
dbus-pending-call.h Implement dbus_clear_connection(), etc. 2017-07-30 08:48:43 +01:00
dbus-pipe-unix.c Make dbus-daemon.exe --print-address work under Windows 2012-02-28 12:37:41 +00:00
dbus-pipe-win.c Make dbus-daemon.exe --print-address work under Windows 2012-02-28 12:37:41 +00:00
dbus-pipe.c Make dbus-daemon.exe --print-address work under Windows 2012-02-28 12:37:41 +00:00
dbus-pipe.h Add DBUS_PRIVATE_EXPORT decoration to symbols used by dbus-daemon or tests 2015-02-20 20:49:36 +00:00
dbus-protocol.h Revert "Add DBus method to return the AA context of a connection" 2015-02-18 20:57:08 +00:00
dbus-resources.c DBusCounter: add a mutex to protect the refcount and notify function 2015-05-05 12:30:30 +01:00
dbus-resources.h Revert all changes since a36d4918a6 2012-01-04 17:44:23 +00:00
dbus-server-debug-pipe.c _dbus_server_init_base: raise a DBusError 2015-05-14 14:30:30 +01:00
dbus-server-debug-pipe.h Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
dbus-server-launchd.c _dbus_server_new_for_launchd: Don't leak fd on failure 2017-11-24 12:17:29 +00:00
dbus-server-launchd.h Add launchd implementation. 2010-12-06 21:33:06 +01:00
dbus-server-protected.h _dbus_server_new_for_socket: Properly disconnect during error unwinding 2017-11-24 12:17:26 +00:00
dbus-server-socket.c _dbus_server_new_for_socket: Iterate over arrays as intended 2017-11-27 19:38:12 +00:00
dbus-server-socket.h _dbus_server_new_for_socket: raise a DBusError 2015-05-14 14:30:30 +01:00
dbus-server-unix.c unix: Condition Linux-specific abstract sockets on __linux__ 2017-09-29 14:04:57 +01:00
dbus-server-unix.h Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
dbus-server-win.c Remove duplicate nonce-tcp (service-side) transport on Windows 2012-06-05 12:18:23 +01:00
dbus-server-win.h Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
dbus-server.c _dbus_server_new_for_socket: Properly disconnect during error unwinding 2017-11-24 12:17:26 +00:00
dbus-server.h Implement dbus_clear_connection(), etc. 2017-07-30 08:48:43 +01:00
dbus-sha.c Prefer to use _dbus_test_fatal() for assertion failures in tests 2017-11-15 12:12:15 +00:00
dbus-sha.h Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
dbus-shared.h driver: Add a stub implementation of the Containers1 interface 2017-12-11 15:50:02 +00:00
dbus-shell.c Fix misleading indentation to avoid respective compiler warning 2016-08-11 16:41:14 +01:00
dbus-shell.h Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
dbus-signature.c Prefer to use _dbus_test_fatal() for assertion failures in tests 2017-11-15 12:12:15 +00:00
dbus-signature.h Revert all changes since a36d4918a6 2012-01-04 17:44:23 +00:00
dbus-socket-set-epoll.c dbus-socket-set-epoll: initialize all bytes of struct epoll_event 2017-02-22 11:06:22 +00:00
dbus-socket-set-poll.c Convert mostly DBUS_SOCKET_... and DBUS_POLLABLE_.. macros for more type safety. 2015-05-12 18:36:24 +01:00
dbus-socket-set.c Add an implementation of DBusSocketSet using epoll 2011-06-13 17:30:40 +01:00
dbus-socket-set.h DBusMainLoop, DBusSocketSet: work in terms of DBusPollable 2015-05-12 18:34:32 +01:00
dbus-sockets-win.h Mostly remove the remnants of an older socket abstraction layer 2015-05-12 18:34:24 +01:00
dbus-spawn-test.c bus: Silence most log messages when testing OOM handling 2017-11-15 12:12:23 +00:00
dbus-spawn-win.c Be more const-correct 2016-10-13 17:20:28 +01:00
dbus-spawn.c bus: Silence the output of the test services when doing OOM testing 2017-11-15 12:12:27 +00:00
dbus-spawn.h bus: Silence the output of the test services when doing OOM testing 2017-11-15 12:12:27 +00:00
dbus-string-private.h DBusString: Reverse the sense of ->invalid 2017-11-24 12:16:56 +00:00
dbus-string-util.c DBusString: Add _DBUS_STRING_INIT_INVALID and allow "freeing" it 2017-11-24 12:17:17 +00:00
dbus-string.c DBusString: Add _DBUS_STRING_INIT_INVALID and allow "freeing" it 2017-11-24 12:17:17 +00:00
dbus-string.h DBusString: Add _DBUS_STRING_INIT_INVALID and allow "freeing" it 2017-11-24 12:17:17 +00:00
dbus-syntax.c Doc: fix incorrect param names, missing params, non-exist params 2013-08-22 20:01:08 +01:00
dbus-syntax.h Add dbus-syntax.[ch] 2012-02-24 12:43:55 +00:00
dbus-sysdeps-pthread.c Remove trailing newlines from _dbus_warn, _dbus_warn_check_failed 2016-09-30 19:36:51 +01:00
dbus-sysdeps-thread-win.c Fix compiling on windows/mingw with automake build system. 2016-05-16 14:11:24 +02:00
dbus-sysdeps-unix.c _dbus_listen_tcp_socket: Don't rely on dbus_realloc setting errno 2017-11-24 12:17:32 +00:00
dbus-sysdeps-unix.h sysdeps: Stop pretending _dbus_set_signal_handler is portable to Windows 2017-09-27 15:15:58 +01:00
dbus-sysdeps-util-unix.c Unix: Flush stdout and stderr streams before forking 2017-11-15 12:12:18 +00:00
dbus-sysdeps-util-win.c sysdeps: Stop pretending _dbus_set_signal_handler is portable to Windows 2017-09-27 15:15:58 +01:00
dbus-sysdeps-util.c Prefer to use _dbus_test_fatal() for assertion failures in tests 2017-11-15 12:12:15 +00:00
dbus-sysdeps-win.c Windows autolaunch: Turn stdout spam into stderr spam 2017-11-15 12:07:47 +00:00
dbus-sysdeps-win.h Partially fix warnings from compiler option '-Wredundant-decls' 2016-10-10 15:11:03 +01:00
dbus-sysdeps-wince-glue.c Doc: fix incorrect param names, missing params, non-exist params 2013-08-22 20:01:08 +01:00
dbus-sysdeps-wince-glue.h Wrap OutputDebugString for Windows CE builds, and add cast for MSVC. 2010-07-19 10:32:08 +02:00
dbus-sysdeps.c Move defaults for some switches into a default case 2017-01-17 17:20:53 +00:00
dbus-sysdeps.h sysdeps: Stop pretending _dbus_set_signal_handler is portable to Windows 2017-09-27 15:15:58 +01:00
dbus-test-main.c test-dbus: Produce machine-readable TAP output 2017-11-15 12:12:40 +00:00
dbus-test-tap.c _dbus_test_diag: Flush stdout after each diagnostic 2017-11-15 13:18:22 +00:00
dbus-test-tap.h test-dbus: Produce machine-readable TAP output 2017-11-15 12:12:40 +00:00
dbus-test.c test-dbus: Produce machine-readable TAP output 2017-11-15 12:12:40 +00:00
dbus-test.h test-dbus: Produce machine-readable TAP output 2017-11-15 12:12:40 +00:00
dbus-threads-internal.h Add DBUS_PRIVATE_EXPORT decoration to symbols used by dbus-daemon or tests 2015-02-20 20:49:36 +00:00
dbus-threads.c Revert "Add a statically-initialized implementation of _dbus_lock() on glibc systems" 2013-08-30 17:31:16 +01:00
dbus-threads.h Allow both recursive and non-recursive mutexes to be supplied 2012-02-21 14:41:28 +00:00
dbus-timeout.c bus: Fix timeout restarts 2017-02-01 10:42:50 +00:00
dbus-timeout.h bus: Fix timeout restarts 2017-02-01 10:42:50 +00:00
dbus-transport-protected.h generic socket transport code: work in terms of DBusSocket 2015-05-12 18:35:24 +01:00
dbus-transport-socket.c _dbus_transport_new_for_socket: Simplify with _DBUS_STRING_INIT_INVALID 2017-11-24 12:17:21 +00:00
dbus-transport-socket.h generic socket transport code: work in terms of DBusSocket 2015-05-12 18:35:24 +01:00
dbus-transport-unix.c Turn DBusSocket into a type-safe struct, preventing inappropriate conversion 2015-05-12 18:35:56 +01:00
dbus-transport-unix.h Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
dbus-transport-win.c Remove duplicate nonce-tcp (client side) transport on Windows 2012-06-05 12:17:58 +01:00
dbus-transport-win.h Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
dbus-transport.c transport: Don't pile up errors for semicolon-separated components 2017-06-27 19:13:40 +01:00
dbus-transport.h generic socket transport code: work in terms of DBusSocket 2015-05-12 18:35:24 +01:00
dbus-types.h Remove support for platforms with no 64-bit integer type 2013-09-16 15:31:02 +01:00
dbus-userdb-util.c Prefer to use _dbus_test_fatal() for assertion failures in tests 2017-11-15 12:12:15 +00:00
dbus-userdb.c userdb: Respect $HOME for the home directory of our own uid 2017-07-28 16:12:24 +01:00
dbus-userdb.h Add DBUS_PRIVATE_EXPORT decoration to symbols used by dbus-daemon or tests 2015-02-20 20:49:36 +00:00
dbus-uuidgen.c Make UUID generation failable 2015-05-14 14:30:30 +01:00
dbus-uuidgen.h uuidgen: Remove unimplemented declaration 2017-06-08 17:32:59 +01:00
dbus-valgrind-internal.h Fix building with newer Valgrind 2012-11-09 14:04:27 +00:00
dbus-watch.c Fix warnings from compiler option '-Wshadow' 2016-10-10 18:04:09 +01:00
dbus-watch.h DBusMainLoop, DBusSocketSet: work in terms of DBusPollable 2015-05-12 18:34:32 +01:00
dbus.h Add dbus-syntax.[ch] 2012-02-24 12:43:55 +00:00
Makefile.am Add utility functions to emit TAP diagnostics and fatal errors 2017-11-15 12:11:21 +00:00
Version.in Link dbus-daemon and dbus-daemon-lauch-helper against libdbus 2015-02-20 20:49:45 +00:00
versioninfo.rc.in Update versioninfo.rc.in 2017-10-18 19:19:50 +02:00