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

[Bug] Unable to select interface on bridge adapter #116

Open
alteredtech opened this issue Apr 2, 2023 · 7 comments
Open

[Bug] Unable to select interface on bridge adapter #116

alteredtech opened this issue Apr 2, 2023 · 7 comments

Comments

@alteredtech
Copy link

Creating this issue from this post here.

Issue that OP was having:
failed to open interface '[network adapter]' for capture; [network adapter]; You don't have permission to capture on that device (socket: Operation not permitted)

Issue that I am having:
failed to open interface 'any' for capture: any: socket: Address family not supported by protocol
Happens with wlan, enp, and pseudo-device interface I select for bridge.

Using
xemu - v0.7.86
flatpak - 1.12.4
Steamdeck OS - 3.4.6

@j8r
Copy link
Collaborator

j8r commented Apr 2, 2023

Does sudo setcap cap_net_raw,cap_net_admin=eip /var/lib/flatpak/app/app.xemu.xemu/current/active/files/bin/xemu fix it?

@alteredtech
Copy link
Author

Unfortunately it did not.
Just some more info, I installed xemu with emudeck.

@mborgerson
Copy link
Collaborator

This is apparently a limitation of Flatpak sandboxing. Like Wireshark, xemu cannot get raw access to monitor/inject packets on the bridge interface via libpcap.

@HamzaDevz
Copy link

So what's the solution ?

@mborgerson
Copy link
Collaborator

mborgerson commented Oct 14, 2023

@HamzaDevz The solution is to use a non-flatpak version of xemu if you need bridge mode, eg AppImage, PPA, or building from source.

@BillCosby42
Copy link

I was able to run the AppImage version of Xemu on the steamdeck and am now getting a permission error when enabling the bridge adapter. I tired sudo setcap cap_net_raw,cap_net_admin=eip `file name' on the file but it doesn't seem to change the permission error. Is there another permission or way of setting the permission that I can use?

@Xeddius
Copy link

Xeddius commented Jan 19, 2025

@HamzaDevz The solution is to use a non-flatpak version of xemu if you need bridge mode, eg AppImage, PPA, or building from source.

Appimage has the same problems, PPA isn't an option on SteamOS, Building from source is not ideal.
We need a more robust solution to this issue, especially given how important networking was on this console and how nice it would be to have it working on Linux handhelds.

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

6 participants