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:
- By defining additional types and logic in your own crate and using them with this module.
- 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.
- CnMsg
Builder - Builder for
CnMsg
. - Proc
Event Header - Header for process event messages.
Enums§
- CnMsg
Builder Error - Error type for CnMsgBuilder
- Proc
Event - Ergonomic enum for process event data.