Skip to content

Releases

lamco-dbus-tools v0.4.1

Choose a tag to compare

@glamberson glamberson released this 04 Dec 23:02

This release puts lamco-dbus-tools on crates.io, and fixes one thing in dbuskeep.

Install from crates.io

cargo install lamco-dbus-tools                     # the five programs, without the kernel part
cargo install lamco-dbus-tools --features kernel   # with dbuskeep kernel; needs clang and libbpf's headers

cargo binstall lamco-dbus-tools takes this release's tarball instead of building. It doesn't check the tarball's GPG signature; the README's "Verifying a download" does.

Fixed

  • dbuskeep run said it was ready before it was. It printed where it answers, and answered readers, before the bus had made it a monitor, and dated its history from then. Messages sent in that moment weren't kept, though its history claimed them. It now announces itself and answers only once it's a monitor, and a reader that connects sooner waits.

Also

  • The kernel part's limit of 8 watched buses for a user other than root has been run against the loaded part on Fedora 44: Eight granted, the ninth refused.
  • A dependency the lockfile pinned, pin-project-lite 0.2.18, had been yanked; 0.2.19 replaces it.

Downloads

Tarball What it is What it needs
lamco-dbus-tools-0.4.1-x86_64-unknown-linux-musl.tar.gz Static programs, with the kernel part, for any x86_64 Linux Nothing
lamco-dbus-tools-0.4.1-aarch64-unknown-linux-musl.tar.gz Static programs, with the kernel part, for any 64-bit ARM Linux Nothing

SHA256SUMS covers both, and each file has a detached signature made with the key whose fingerprints the README gives. 0.4.0's tarballs were run on Fedora 44 and on emulated Debian 13 for 64-bit ARM before release; this release's programs differ from those in dbuskeep run, its version, and the dependency above, and the full test suite passes with dbuskeep beside every bus.

License

MIT OR Apache-2.0, at your option. The eBPF program is GPL-2.0 OR MIT, as the kernel requires. Copyright Lamco Development LLC.

lamco-dbus-tools v0.4.0

Choose a tag to compare

@glamberson glamberson released this 04 Dec 16:54

This is the first release of lamco-dbus-tools, five command-line programs that record, time and explain what happens on D-Bus, the message bus every Linux desktop and most Linux systems run on. It shares its capture format with lamco-dsi-tools 0.4.0, and each toolkit reads the other's captures.

The programs

  • dbussee watches. It asks a bus what it is and who's on it, and records a service, a set of match rules or everything, as a stream or as a ring of the last seconds. It reads what each Flatpak, Snap and Firejail sandbox is granted on each bus, and collects a machine's bus policy for an audit. It calls only the bus itself, with the flag that forbids starting a service.
  • dbusdo drives. It calls methods, sends signals, sets properties, holds names, starts services, replays a recording's calls and puts a stated load on a bus, and writes every act to a capture with its timing. It also probes a policy file on private dbus-daemon and dbus-broker buses, and tests the host's xdg-dbus-proxy against a grant.
  • dbustell analyzes, and connects to nothing: Timing distributions by method, calls left waiting and who waits on whom, owners, errors, signals, service starts, 57 findings with stable identifiers, comparisons and interface drift with JUnit output, audits with SARIF output, and the pcap files of busctl capture and dbus-monitor --pcap in both directions.
  • dbuskeep is an optional service that keeps the last minutes of a bus with one monitor, so a fault can be taken after it happened. dbuskeep kernel loads eBPF hooks that split a call's time at every socket, with CAP_BPF and CAP_PERFMON and no root.
  • dbussee-monitor is a setuid helper that lets the members of one group record the system bus without root.

Start with dbussee check, which reads and changes nothing. Then record five seconds and read the result:

dbussee check
dbussee record --all --duration 5 --out first.json
dbustell timing first.json --by method
dbustell bundle first.json --out report     # a scrubbed copy, to attach to a report

Read a scrubbed capture before you post it. SECURITY.md says what the scrub removes and what it can't find.

Downloads

Tarball What it is What it needs
lamco-dbus-tools-0.4.0-x86_64-unknown-linux-musl.tar.gz Static programs, with the kernel part, for any x86_64 Linux Nothing
lamco-dbus-tools-0.4.0-aarch64-unknown-linux-musl.tar.gz Static programs, with the kernel part, for any 64-bit ARM Linux Nothing

Each tarball holds the five programs, the README, the changelog, the security policy, the licenses, a man page for each program, the systemd units for dbuskeep, and scripts/install-helper. SHA256SUMS covers every tarball, and each file has a detached signature made with the key whose fingerprints the README gives.

What has and hasn't been run

The README's table "What has been run, and where" says what was run, on which system and when. The runs were on virtual machines with Debian 13, Fedora 44 and 45, Ubuntu 24.04 and 26.04, RHEL 10, KDE neon and Manjaro, on dbus-daemon 1.14.10 and 1.16.2 and on dbus-broker 37, with GNOME, KDE Plasma, Sway and Xfce sessions. dbus-broker 35, which Ubuntu 24.04 ships, was tested in a container.

These tarballs' own programs ran before release: The signed x86_64 tarball on Fedora 44 and the signed aarch64 tarball on emulated Debian 13, every step passing, the kernel part included. A trial build from earlier the same day, before the last fixes, also ran on Ubuntu 26.04. The 64-bit ARM programs ran only under emulation, on Debian 13, Fedora 44 and Ubuntu 24.04, and nothing has been run on ARM hardware. Nothing has been run on a BSD.

License

MIT OR Apache-2.0, at your option. The eBPF program is GPL-2.0 OR MIT, as the kernel requires. Copyright Lamco Development LLC.