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
[BUG]: PCSX2 tries to access the Berkeley Packet Filter (bpf) on macOS #11090
Comments
My initial suspicion is that we trigger this when getting the list of adapters for the Network and HDD settings panel We ask each network backend what adapters it supports here pcsx2/pcsx2-qt/Settings/DEV9SettingsWidget.cpp Lines 71 to 78 in b94a232
Which then calls Line 204 in b94a232
I guess this function tries to access I'm, however, not a MAC dev, so I'm not able to verify if my suspicion is correct, nor determine the best approach to resolve this. |
I guess we could lazily populate the adapter list if ethernet isn't enabled. I'd also say this isn't really a bug though, and such a change would be purely from a performance perspective. MacOS doesn't restrict access to this resource itself. |
Can you give #11093 a shot |
thanks guys
I was looking at it more as a potential security issue (I've never seen another app try to access the bpf) |
Is the dropdown disabled when ethernet is disabled? You could defer it until then (which is what I was thinking anyway).
If it was, then I'd think that MacOS would require an entitlement. List of adapters is hardly sensitive/private information. |
Done
Had a look though the libpcap source I guess that's what we get when we ask a packet capture library what adapters we can use it with
It's worth noting that (I believe) |
Correct. On a normal install, applications cannot use bpf devices without root. |
Describe the Bug
After installing PCSX2 on macOS, I got this scary warning in Little Snitch with the Endpoint Security System Extension installed
According to Little Snitch firewall documentation about the Berkeley Packet Filter:
I even have the PCSX2 automatic update check option disabled, and this throws up a scary warning in Little Snitch
(this only seems to happen after opening the PCSX2 settings menu window the first time after launching the app - also PCSX2 won't actually let me access the settings menu until after I accept or reject the Little Snitch popup)
after running
sudo opensnoop -n PCSX2
I saw that PCSX2 tried to access both/dev/bpf
and/dev/bpf0
using
macOS Big Sur 11.7.10
PCSX2-v1.7.5708.app
I'm getting the warning without a pcap adapter enabled (I don't really know what a PCAP adapter would be), but just for maximum troubleshooting I will say that:
utun
device which is part of macOS - see info here) - but for testing I disconnected all VPNs and quit Tunnelblick and still got the bpf access issue with PCSX2Thanks for looking into this
Reproduction Steps
Launch PCSX2 and access the PCSX2 preferences/options menu
Expected Behavior
PCSX2 should not attempt to access
/dev/bpf
or/dev/bpf0
PCSX2 Revision
1.7.5708
Operating System
macOS 11 (Big Sur)
If Linux - Specify Distro
No response
Logs & Dumps
No response
The text was updated successfully, but these errors were encountered: