Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MacOS] Failed to activate interface #122

Open
yatzbim opened this issue Nov 3, 2022 · 1 comment
Open

[MacOS] Failed to activate interface #122

yatzbim opened this issue Nov 3, 2022 · 1 comment

Comments

@yatzbim
Copy link

yatzbim commented Nov 3, 2022

Description

Out of the box, running sniffglue with or without arguments on MacOS Monterey 12.6 returns the following error:

Error: Failed to activate interface: (cannot open BPF device) /dev/bpf0: Permission denied

Info

@yatzbim
Copy link
Author

yatzbim commented Nov 3, 2022

The man page for pcap_activate() (link) describes the following failure mode:

PCAP_ERROR_PERM_DENIED if the process doesn't have permission to open the capture source

Which makes sense as sniffglue works when run as root.

Question is--how do we check those permissions either during or immediately following install?

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

No branches or pull requests

1 participant