Article 5F93R setcap works with Wine but not with Proton (Proton "ignores" it)

setcap works with Wine but not with Proton (Proton "ignores" it)

by
Liemaeu
from LinuxQuestions.org on (#5F93R)
I want to get the ping working (for Battlefield 4). I use Kubuntu, Proton 5.13-5 and wine-devel from WineHQ systemwide.

When I run:

wine cmd.exe

with my systemwide wine-devel, and in the CMD e.g.:

ping google.com

I get a timeout error. When I now run:

sudo setcap cap_net_raw+epi /opt/wine-devel/bin/wine-preloader

sudo setcap cap_net_raw+epi /opt/wine-devel/bin/wine64-preloader

sudo setcap cap_net_raw+epi /opt/wine-devel/bin/wineserver

and after this:

wine cmd.exe

and in this again e.g.:

ping google.com

Ping now works fine as it should.

When I run ping with Proton 5.13:

STEAM_COMPAT_DATA_PATH=/home/richard/.proton/ /home/richard/.steam/steam/steamapps/common/Proton\ 5.13/proton run cmd.exe

and in it e.g.:

ping google.com

I get a timeout error (as expected). When I now apply the setcap commands for Proton 5.13:

sudo setcap cap_net_raw+epi /home/richard/.steam/steam/steamapps/common/Proton\ 5.13/dist/bin/wine-preloader

sudo setcap cap_net_raw+epi /home/richard/.steam/steam/steamapps/common/Proton\ 5.13/dist/bin/wine64-preloader

sudo setcap cap_net_raw+epi /home/richard/.steam/steam/steamapps/common/Proton\ 5.13/dist/bin/wineserver

And after this:

STEAM_COMPAT_DATA_PATH=/home/richard/.proton/ /home/richard/.steam/steam/steamapps/common/Proton\ 5.13/proton run cmd.exe

And in it e.g.:

ping google.com

I get a timeout error again. It doesn't seam to work with Proton.

When I now check the caps:

wine cmd.exe

getpcaps <PID of CMD.exe with wine-devel>

I get the output:

<PID of CMD.exe with wine-devel>: = cap_net_raw+epi

But when I do the same for Proton:

STEAM_COMPAT_DATA_PATH=/home/richard/.proton/ /home/richard/.steam/steam/steamapps/common/Proton\ 5.13/proton run cmd.exe

getpcaps <PID of CMD.exe with Proton 5.13>

I get the output:

<PID of CMD.exe with Proton 5.13>: =

The caps don't seam to work with Proton.latest?d=yIl2AUoC8zA latest?i=6Two6HK8PYs:6YlElwmM8Fg:F7zBnMy latest?i=6Two6HK8PYs:6YlElwmM8Fg:V_sGLiP latest?d=qj6IDK7rITs latest?i=6Two6HK8PYs:6YlElwmM8Fg:gIN9vFw6Two6HK8PYs
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments