Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@domcyrus
Copy link
Owner

Summary

This PR removes the CAP_NET_ADMIN requirement and eliminates the need for CAP_SYS_ADMIN on modern kernels by using non-promiscuous mode for packet capture. This significantly reduces the security surface by following the principle of least privilege.

  • Remove promiscuous mode - hardcoded to false for read-only capture
  • Remove CAP_NET_ADMIN from all capability checks
  • Use CAP_BPF + CAP_PERFMON instead of CAP_SYS_ADMIN on modern kernels (5.8+)
  • Updated capability checking logic in loader.rs and privileges.rs
  • Removed promiscuous mode configuration from capture.rs

Updated Docs

  • Added prominent security notes in README and INSTALL docs
  • Updated all capability examples across documentation files
  • Clarified platform-specific requirements (Linux vs macOS)

…pture

Remove CAP_NET_ADMIN requirement and eliminate need for CAP_SYS_ADMIN on
modern kernels by using non-promiscuous mode for packet capture. This
significantly reduces security surface by following principle of least privilege.
@domcyrus domcyrus merged commit 4ae965a into main Oct 19, 2025
5 checks passed
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.

2 participants