Skip to content

Fix macOS wrapper launch - #1219

Open
snvtac wants to merge 1 commit into
GyulyVGC:mainfrom
snvtac:snvtac/197-macos-wrapper-launch
Open

Fix macOS wrapper launch#1219
snvtac wants to merge 1 commit into
GyulyVGC:mainfrom
snvtac:snvtac/197-macos-wrapper-launch

Conversation

@snvtac

@snvtac snvtac commented Jun 25, 2026

Copy link
Copy Markdown

Summary

  • keep the macOS app bundle attached to the real Sniffnet GUI process by using the wrapper only for privilege setup, then execing the binary
  • add a privileged BPF setup helper that prepares /dev/bpf* nodes for the launching user while Sniffnet is running
  • restore original BPF node ownership and mode after the last Sniffnet instance exits, with lock/ref tracking for overlapping launches
  • include the helper in the macOS DMG bundle and ensure both macOS scripts are executable in the packaged app

Fixes #197.

Validation

  • zsh -n resources/packaging/macos/wrapper.sh
  • sh -n resources/packaging/macos/configure_bpf.sh
  • plutil -lint resources/packaging/macos/Info.plist
  • git diff --check

Notes

I did not run the privileged helper locally because that would modify /dev/bpf*. The intended manual macOS smoke test is: launch from the packaged app, accept the admin prompt, confirm Sniffnet runs as the logged-in user, verify Dock Quit / Cmd+Q / minimize / fullscreen, verify IP copy to clipboard, and confirm packet capture still works.

@GyulyVGC GyulyVGC added macOS Something related to macOS operating system packaging Application packaging labels Jun 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

macOS Something related to macOS operating system packaging Application packaging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wrapper script is causing problems on macOS

2 participants