DBUS-DAEMON(1) DBUS-DAEMON(1) (NAME) dbus-daemon - D-Bus (SYNOPSIS) dbus-daemon dbus-daemon [--version] [--session] [--system] [--config-file=FILE] [--print-address [=DESCRIPTOR]] [--print-pid [=DESCRIPTOR]] [--fork] [--nosyslog] [--syslog] [--syslog-only] [--ready-event-handle=value] (DESCRIPTION) dbus-daemon D-Bus . . D-Bus dbus-daemon . . : ( "messagebus" ) ( ). dbus-daemon . --session "--config-file=/usr/share/dbus-1/session.conf" --system "--config-file=/usr/share/dbus-1/system.conf" . --config-file . (init script) "messagebus" . . ( X ). SIGHUP D-Bus <<>> / . . (policy) SIGHUP . (OPTIONS) : --config-file=FILE . --fork (fork) . . . --nofork ( fork) . dbus-daemon fork . --print-address[=DESCRIPTOR] (file descriptor) . . --print-pid[=DESCRIPTOR] (PID) . . --session . --system . --version . --introspect (introspection) D-Bus. --address[=ADDRESS] . . . --systemd-activation systemd. systemd . --nopidfile PID . --syslog (syslog) . syslog OutputDebugString() . --syslog-only . syslog OutputDebugString() . --nosyslog . --ready-event-handle=value dbus (raise ). handle printf %p . ( CreateEvent) dbus-daemon . dbus-daemon SetEvent . WaitForSingleObject . . --print-address --print-pid . (CONFIGURATION FILE) . . . . "/usr/share/dbus-1/system.conf" "/usr/share/dbus-1/session.conf" . system-local.conf session-local.conf /etc/dbus-1 . XML /usr/share/dbus-1/system.d . 1.10 dbus ( ) . XML /etc/dbus-1/system.d . XML /etc/dbus-1/system.d : . XML (doctype declaration) : : o (Root element). o . "system" "session" D-Bus . ( ). . . "session" DBUS_STARTER_BUS_TYPE "session" DBUS_SESSION_BUS_ADDRESS . "system" DBUS_STARTER_BUS_TYPE "system" DBUS_SYSTEM_BUS_ADDRESS ( ). : session o filename.conf. . "ignore_missing=(yes|no)" "no" . . o foo.d . . ".conf" . . CUPS /usr/share/dbus-1/system.d . o (UID). UID . UID . . . . PID (root) . o ( fork ). --fork. o umask fork . . o syslog . --syslog --syslog-only --nosyslog . o (PID) . --nopidfile . o ANONYMOUS . ANONYMOUS ( ) . . . o . D-Bus (transport) . (unix systemd launchd) . TCP . X11 tcp nonce-tcp tcp:host=127.0.0.1 nonce-tcp:host=localhost. TCP . TCP . . TCP Secure Shell . TCP ( X11 NFS NIS/YP) . X11 NFSv2/NFSv3 . D-Bus ( ) . : unix:path=/tmp/foo : tcp:host=localhost,port=1234 . . . tcp IPv4 IPv6 (hostname) . (bind) . family=ipv4 family=ipv6 . : tcp:host=localhost,port=0,family=ipv4 ( ) . --print-address ( DBUS_SESSION_BUS_ADDRESS ) . : tcp:host=localhost,port=0 tcp/nonce-tcp bind=hostname : IP ( 127.0.0.1) DNS IP '0.0.0.0' IPv4 '::' IPv4 IPv6 ( ). "host" . : tcp:host=localhost,bind=0.0.0.0,port=0 o . . . . EXTERNAL . . : EXTERNAL : DBUS_COOKIE_SHA1 o .service dbus-daemon . .service D-Bus . . ( ".service" ). o . . . . ( ). : o $XDG_RUNTIME_DIR/dbus-1/services ( XDG_RUNTIME_DIR XDG ): systemd ( systemd.generator(7)) . dbus-daemon D-Bus . : ".service" . inotify(7) . dbus-daemon ReloadConfig() . o $XDG_DATA_HOME/dbus-1/services XDG_DATA_HOME ~/.local/share ( XDG ): D-Bus . o directory/dbus-1/services XDG_DATA_DIRS /usr/local/share:/usr/share ( XDG ): D-Bus . (/usr/local/share) (/usr/share) . XDG_DATA_DIRS ~/.local/share/flatpak/exports/share/ /var/lib/flatpak/exports/share/ flatpak(1). o ${datadir}/dbus-1/services ${datadir} dbus ( /usr/share): dbus-daemon dbus-daemon . "XDG Base Directory Specification" . : o %CommonProgramFiles%/dbus-1/services %CommonProgramFiles%: . o share/dbus-1/services ( prefix) dbus-daemon : dbus-daemon . /etc/dbus-1/session.conf . . o . . : o /etc/dbus-1/system-services: D-Bus ( /usr/ ) . o /run/dbus-1/system-services: D-Bus . o /usr/local/share/dbus-1/system-services: D-Bus . o /usr/share/dbus-1/system-services: D-Bus . o ${datadir}/dbus-1/system-services ${datadir} dbus ( /usr/share): dbus-daemon dbus-daemon . o /lib/dbus-1/system-services: D-Bus ( dbus-daemon ). . /usr/share/dbus-1/system.conf . . o setuid . dbus-daemon-launch-helper libexec . /usr/share/dbus-1/system.conf . o . : 64 512 name . : "max_incoming_bytes" : "max_incoming_unix_fds" : (fds) "max_outgoing_bytes" : "max_outgoing_unix_fds" : "max_message_size" : "max_message_unix_fds" : "service_start_timeout" : () "auth_timeout" : () "pending_fd_timeout" : () fd dbus-daemon "max_completed_connections" : "max_incomplete_connections" : "max_connections_per_user" : ( ) "max_pending_service_starts" : "max_names_per_connection" : "max_match_rules_per_connection": "max_replies_per_connection" : ( ) "reply_timeout" : () / . max_message_size . max_completed_connections max_connections_per_user (DoS) . . o . . (firewall) . << >> (default-deny) << >> (default-allow) NO_REPLY . . . "own" "send_destination" (uid) . : context="(default|mandatory)" at_console="(true|false)" user="username or userid" group="group name or gid" : - context="default" - group=" " - user=" " - at_console="true" - at_console="false" - context="mandatory" . // (context) . . . : send_interface="interface_name" | "*" send_member="method_or_signal_name" | "*" send_error="error_name" | "*" send_broadcast="true" | "false" send_destination="name" | "*" send_destination_prefix="name" send_type="method_call" | "method_return" | "signal" | "error" | "*" send_path="/path/name" | "*" receive_interface="interface_name" | "*" receive_member="method_or_signal_name" | "*" receive_error="error_name" | "*" receive_sender="name" | "*" receive_type="method_call" | "method_return" | "signal" | "error" | "*" receive_path="/path/name" | "*" send_requested_reply="true" | "false" receive_requested_reply="true" | "false" eavesdrop="true" | "false" own="name" | "*" own_prefix="name" user="username" | "*" group="groupname" | "*" : <<>> . ( ). send_* . . . dbus-daemon ( ) . . receive_* eavesdrop ( ). . . ( ). eavesdrop min_fds max_fds send_* receive_* . send_destination receive_sender / <<>> (owner) << >> . A B C A B C . send_destination="*" ( ) receive_sender="*" . send_destination_prefix . ( ) . "a.b" "a.b.c" "a.b.c.d" : . own_prefix ( ): "a.b" "a.b" "a.b.c" "a.b.c.d" "a.bc" "a.c" . send_destination_prefix send_destination . send_broadcast="true" ( ) . send_broadcast="false" : ( ) ( ) . send_destination="*" . send_* receive_* / * ( ) . send_interface="*" interface . foo.bar.* . << >> (Eavesdropping) . ( ). eavesdrop="true" . eavesdrop="false" . eavesdrop="true" . eavesdrop="false" . eavesdrop send receive ( send_* receive_*) . [send|receive]_requested_reply eavesdrop . ( ) . ( ) . [send|receive]_requested_reply="true" . [send|receive]_requested_reply="false" . [send|receive]_requested_reply="false" . [send|receive]_requested_reply="true" . min_fds max_fds send_* receive_* . min_fds (FD) . max_fds . : . user group . . user="*" group="*" . (UID) dbus-daemon . . own own_prefix . own="*" . . . "a.b" "a.b" : "a.b.c" "a.b.c.d" "a.bc" "a.c" . Telepathy ReserveDevice org.freedesktop.Telepathy.ConnectionManager.(anything) org.freedesktop.ReserveDevice1.(anything). / context="default" context="mandatory" . send_destination send_interface send_type . . . OR () . send_ receive_ << >> << >> . send_interface/receive_interface . ! . : o (Security Enhanced Linux) . . o . : "org.freedesktop.Foobar" (source context) (target context) "foo_t" - SELinux . . : . . . o AppArmor . : "enabled" . "enabled" AppArmor . dbus-daemon AppArmor . "disabled" AppArmor . "required" dbus-daemon . AppArmor . SIGHUP . (INTEGRATING SESSION SERVICES) : D-Bus . D-Bus << >> (service activation) dbus-daemon systemd --user . (service file) ${datadir}/dbus-1/services : [D-BUS Service] Name=com.example.SessionService1 Exec=/usr/bin/example-session-service # SystemdService=example-session-service D-Bus . com.example.SessionService1 com.example.SessionService1.service . SystemdService systemd (Alias) SystemdService ( systemd systemd.unit(5) systemd.service(5) ) : [Unit] Description=Example session service [Service] Type=dbus BusName=com.example.SessionService1 ExecStart=/usr/bin/example-session-service (INTEGRATING SYSTEM SERVICES) D-Bus . D-Bus ${datadir}/dbus-1/system.d . : _example (uid) com.example.Example1 . com.example.Example1 com.example.Example1.conf . . dbus-daemon : D-Bus . polkit. D-Bus dbus-daemon systemd . ${datadir}/dbus-1/system-services : [D-BUS Service] Name=com.example.Example1 Exec=/usr/sbin/example-service User=_example # SystemdService=dbus-com.example.Example1.service D-Bus . com.example.Example1 com.example.Example1.service . SystemdService systemd (Alias) SystemdService ( systemd.unit(5) systemd.service(5) ) : [Unit] Description=Example service [Service] Type=dbus BusName=com.example.Example1 ExecStart=/usr/sbin/example-service [Install] WantedBy=multi-user.target Alias=dbus-com.example.Example1.service SELINUX (SELINUX) SELinux . : () ( IPC ) << >> (security context) . . SELinux (SID) . . SID ( SID SID SID SID ) . TCP . SID . . D-Bus SELinux : "dbus" "send_msg" . ( ) . . . "dbus" "acquire_svc" . . . APPARMOR (APPARMOR) (confinement context) AppArmor . (label) . AppArmor (audit) . AppArmor : . method_return . . (eavesdropping) . AppArmor AppArmor . apparmor.d(5) . (DEBUGGING) . . . dbus-monitor D-Bus . dbus-send . . . (debugger) (verbose) . : DBUS_VERBOSE=1 dbus-daemon --session --print-address . DBUS_SESSION_BUS_ADDRESS . DBUS_SESSION_BUS_ADDRESS . DBUS_VERBOSE=1 D-Bus . . D-Bus . ( DBUS_VERBOSE D-Bus .) ( session.conf system.conf ). .service . (AUTHOR) : (BUGS) D-Bus : (NOTES) 1. Secure Shell : https://lists.freedesktop.org/archives/dbus/2018-April/017447.html 2. D-Bus: https://dbus.freedesktop.org/doc/dbus-specification.html 3. polkit: https://www.freedesktop.org/wiki/Software/polkit (SEE ALSO) dbus-send(1), dbus-monitor(1), dbus-launch(1), dbus-run-session(1), systemd(1) D-Bus 1.16.2 03/02/2025 DBUS-DAEMON(1)