Skip to content

docs: document macOS sensor fields and variants (Refs #362) - #373

Open
SherlockOmss wants to merge 1 commit into
mainfrom
docs/362-macos-sensors
Open

SherlockOmss wants to merge 1 commit into
mainfrom
docs/362-macos-sensors

Conversation

@SherlockOmss

Copy link
Copy Markdown
Contributor

Refs #362: the macOS zone (10 markers under crates/sensors/macos). Docs only; no code or serde attribute changed.

What

  • sensor-macos (endpoint-security/src/raw.rs): RawMeta (which process meta names for Exec and BTM events), BtmItemType, and every field of RawEsEvent, checked against shim/es_shim.c and ffi.rs (path composition for create/rename, lossy UTF-8, empty-as-None, negative pid/signal clamped to 0).
  • sensor-macos-sockets (raw.rs): SocketState and SocketSnapshotEntry, from sockets_shim.c.
  • sensor-macos-network-extension: FlowDirection, NeRecord fields (from FilterDataProvider.swift, DNSProxyProvider.swift, EventPipe.swift) and NetworkExtensionError.
  • sensor-macos-unifiedlog: UnifiedLogEvent fields (from classify.rs, normalize.rs) and UnifiedLogError.
  • Shared rules are said once on the type; repeated fields point to the first.

Verified (Linux host)

  • cargo +nightly fmt --all, cargo clippy --all-targets -- -D warnings and RUSTDOCFLAGS=-D warnings cargo doc --no-deps clean for sensor-macos, sensor-macos-sockets, sensor-macos-unifiedlog, sensor-macos-network-extension (the raw/normalize modules are cross-platform); their unit tests pass; tools/check-docs.py OK.

Not verified

  • Nothing was run on a Mac, and the cfg(target_os = "macos") parts (FFI, shims, Swift extension) were read, not built. The macos-latest CI job is the only compile check of those.
  • Statements about EndpointSecurity and libproc behavior come from the shim code and the SDK constant names in it, not from Apple documentation or a live capture.

🤖 Generated with Claude Code

Drops the ten `#[allow(missing_docs)] // #362` under crates/sensors/macos and
documents what they hid: the EndpointSecurity raw records (RawMeta, BtmItemType,
RawEsEvent), the socket snapshot, the network-extension wire protocol and
error, and the unified-log events and errors. Each doc was checked against the
shim, the Swift extension or the classifier that produces the value.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Signed-off-by: SherlockOmss <[email protected]>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant