Products › lamco-dbus-tools › Docs

dbussee-monitor commands: The D-Bus system bus helper

dbussee-monitor commands: The reference for listen, the setuid helper that becomes a D-Bus monitor so that one group can record the system bus.

Generated from the help registry, as the man page dbussee-monitor(1) is. Don't edit: Change the registry and regenerate with LAMCO_DBUS_TOOLS_UPDATE_SNAPSHOTS=1 cargo test.

The helper that becomes a monitor, reads and guards in a process of its own, and passes each message on to the recorder. It does nothing else.

It may hold commands of these layers: listen.

Usage: dbussee-monitor [FLAGS] <command> [arguments]

Flags every program takes are in exit codes and flags.

dbussee-monitor listen

Become a monitor and pass each message to standard output, until standard input closes

dbussee-monitor listen (--bus <session|system> | --address <address>) (--match <rule>... | --all) [--budget-bytes <n>] [--accept-known-flaw]
  • --bus <session|system>: Which bus. Default: session.
  • --address <address>: A bus by its address. Never with privilege.
  • --match <rule>: A match rule as the bus reads it. May be given more than once.
  • --all: Every message.
  • --budget-bytes <n>: Bytes that may wait to be passed on before the helper detaches itself. Default: 16 MiB.
  • --accept-known-flaw: Listen to a system bus whose dbus-daemon is older than 1.16.4, which has the flaw BUS-003 names. dbussee record passes it on when given it.

Needs: A bus. For the system bus, the helper installed with privilege, and the caller in its group.

Layer: listen. Maturity: beta.

dbussee record --helper runs it; a person rarely does. It leaves the caller's session and process group, becomes a monitor with the rules given, and writes a hello, one frame for each message with its arrival on CLOCK_MONOTONIC, and an end, to standard output. It stops when standard input closes, or on SIGTERM, and exits 0. When more than its budget waits to be written, because whoever reads its output has stopped, it closes its connection and exits 3; when the bus closes it, 4. The frames are described in the helper reference.

$ dbussee-monitor listen --bus session --all < /dev/null | head -c 0

dbussee-monitor help

Every command in detail, or one command or group in full

dbussee-monitor help [<command> | <group>]
  • [<command> | <group>]: A command or a group of commands. Without one, every command is listed.

Needs: Nothing. It reads no bus and no file.

Maturity: stable.

Three forms of help come from one registry: --help gives the flags and a table of commands, help gives every command with its syntax, and help <command> gives one command in full. On a name it doesn't know, it says so and lists the names it does.

$ dbussee-monitor help
$ dbussee-monitor help listen