ValveSoftware / ValveSoftware/Proton

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

Open
#4,586 0 comments 8 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
32.8k
Forks
1.6k
PR merge metrics
PR metrics pending

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the comparison using the Proton 5.13 proton run cmd.exe command and the listed setcap commands on wine-preloader, wine64-preloader, and wineserver. Start by checking the resulting cmd.exe process with getpcaps and compare it with systemwide wine-devel. Done means explaining or correcting why cap_net_raw+epi is absent under Proton, with ping google.com succeeding if the capability should propagate.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux
Domain
operating-systems, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.