Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#72694 - [pcsx2] Missing CAP_NET_* capabilities needed for networking support

Attached to Project: Community Packages
Opened by AirGamer (Air) - Wednesday, 10 November 2021, 12:59 GMT
Last edited by Maxime Gauduin (Alucryd) - Monday, 06 December 2021, 09:04 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Maxime Gauduin (Alucryd)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

The PCSX2 does not have the CAP_NET_RAW or CAP_NET_ADMIN capabilities applied to it
This is necessary for PCSX2 to fully support network enabled games

Additional info:
* package version: pcsx2 1.7.2015-1
* Relevant Log Output:
```
DEV9: Opening adapter 'eth0'...
DEV9: eth0: You don't have permission to capture on that device (socket: Operation not permitted)
DEV9: Unable to open the adapter. eth0 is not supported by pcap
Can't open Device 'eth0'
```

* Additional Note:
The command the CMAKE file uses to set the capabilities is located here https://github.com/PCSX2/pcsx2/blob/fd145e65aaa4c318d4360d2fb20b71d89376320a/pcsx2/CMakeLists.txt#L1557
It may instead need to be replicated using a script during the post-installation step.

Steps to reproduce:
Go to the Config->Network and HDD Settings
Enable Ethernet
Select either 'PCAP Switched' or 'PCAP Bridged' for the device type
Specify your adapter for 'Ethernet Device', in my case I selected 'eth0'
Apply and close the config window

Start emulation
Inspect the console for the logs (it may be easier to scroll though the logs if you pause emulation shortly after starting)

note that the log message will occur regardless of what game is booted (including the BIOS)
This task depends upon

Closed by  Maxime Gauduin (Alucryd)
Monday, 06 December 2021, 09:04 GMT
Reason for closing:  Fixed
Additional comments about closing:  1.7.2101-1
Comment by AirGamer (Air) - Sunday, 05 December 2021, 19:30 GMT
See attached patch that adds an install script to apply the needed file capabilities

It is also worthwhile updating PCSX2 to v1.7.2100 or newer as that resolves a hang when using networking features
Comment by Maxime Gauduin (Alucryd) - Monday, 06 December 2021, 09:04 GMT
Sorry, a fixed version had been sitting on my server for a while, looks like I didn't push it, just did.

Loading...