Skip to content

agent: process attribution on Windows (GetExtendedTcpTable) and macOS (libproc) #53

Open

Description

@aixisstudio

The zero-dep Rust agent in agent/ attributes sockets to PIDs on Linux via /proc/<pid>/fd inodes. Windows needs an Iphlpapi GetExtendedTcpTable/GetExtendedUdpTable backend (OWNER_MODULE pids) and macOS a libproc proc_pidinfo/proc_pidfdinfo backend. Today both compile and report pid: 0 honestly.

  • Windows: GetExtendedTcpTable/GetExtendedUdpTable (iphlpapi)
  • macOS: libproc fd walk
  • Keep zero-dep if feasible (raw FFI), else document the added crate
  • ci-agent.yml already covers all three targets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions