Module connector

Source
Expand description

Connector module for Linux Netlink connector messages.

This module provides support for the Linux Netlink connector subsystem, which creates a communication channel between userspace programs and the kernel. It allows applications to receive notifications about various kernel events.

This module currently provides full support for the Linux proc connector protocol, enabling the reception and handling of process lifecycle events such as creation, termination, exec, UID/GID/sid changes, tracing, name changes, and core dumps.

§Supported protocols

At this time, only the proc connector (PROC_CN) protocol is fully implemented.

§Extensibility

The implementation can be extended in two ways:

  1. By defining additional types and logic in your own crate and using them with this module.
  2. By using a Vec<u8> as a payload and manually parsing protocol messages to suit other connector protocols.

This design allows both high-level ergonomic handling of proc events and low-level manual parsing for custom needs.

Structs§

CnMsg
Netlink connector message header and payload.
CnMsgBuilder
Builder for CnMsg.
ProcEventHeader
Header for process event messages.

Enums§

CnMsgBuilderError
Error type for CnMsgBuilder
ProcEvent
Ergonomic enum for process event data.