[GH-ISSUE #2860] seccomp causes steam (and other) games to freeze #1785

Closed
opened 2026-05-05 08:27:05 -06:00 by gitea-mirror · 10 comments
Owner

Originally created by @ghost on GitHub (Jul 16, 2019).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2860

Nvidia 418.56 Ubuntu 18.04 up-to-date w/ Gnome. Firejail built today from master.

So to track down some issues I ran steam with noprofile and when I added seccomp Proton/Wine games would freeze. Usually 1-2 seconds of intro video (or something else) would play with sound before freezing completely. The freeze is not global so alt tabbing works, mouse is not released though. Ctrl C on the firejail steam terminal window works.

I settled on

--disable-mnt --net=eth0 --defaultgw=192.168.0.1 --dns=1.1.1.1 --private=~/jailed --noroot --nonewprivs --nogroups --noprofile steam

And steam and its proton games run with no issues.

The same is true of Lutris (python wine manager), seccomp causes games to not even start and game launchers to start slowly - the wine virtual desktop starts. In this particular case I also noted that Lutris itself was unable to kill the wine processes it started (it has an option to kill all wine processes), probably related. Running the above options with Lutris solved all problems.

Originally created by @ghost on GitHub (Jul 16, 2019). Original GitHub issue: https://github.com/netblue30/firejail/issues/2860 Nvidia 418.56 Ubuntu 18.04 up-to-date w/ Gnome. Firejail built today from master. So to track down some issues I ran steam with noprofile and when I added seccomp Proton/Wine games would freeze. Usually 1-2 seconds of intro video (or something else) would play with sound before freezing completely. The freeze is not global so alt tabbing works, mouse is not released though. Ctrl C on the firejail steam terminal window works. I settled on --disable-mnt --net=eth0 --defaultgw=192.168.0.1 --dns=1.1.1.1 --private=~/jailed --noroot --nonewprivs --nogroups --noprofile steam And steam and its proton games run with no issues. The same is true of Lutris (python wine manager), seccomp causes games to not even start and game launchers to start slowly - the wine virtual desktop starts. In this particular case I also noted that Lutris itself was unable to kill the wine processes it started (it has an option to kill all wine processes), probably related. Running the above options with Lutris solved all problems.
Author
Owner

@rusty-snake commented on GitHub (Jul 17, 2019):

@LamaRaz can you try if firejail --ignore=seccomp steam also works.
EDIT:
What is the output from journalctl --grep=syscall after crashing with firejail steam.

<!-- gh-comment-id:512139912 --> @rusty-snake commented on GitHub (Jul 17, 2019): @LamaRaz can you try if `firejail --ignore=seccomp steam` also works. EDIT: What is the output from `journalctl --grep=syscall` after crashing with `firejail steam`.
Author
Owner

@ghost commented on GitHub (Jul 17, 2019):

only these:

audit[5477]: SECCOMP auid=1000 uid=1000 gid=1000 ses=2 pid=5477 comm="steam" exe="/home/*/.steam/ubuntu12_32/steam" sig=31 arch=40000003 syscall=26 compat=1 ip=* code=0x0

kernel: audit: type=1326 audit(1563350012.331:81): auid=1000 uid=1000 gid=1000 ses=2 pid=5477 comm="steam" exe="/home/*/.steam/ubuntu12_32/steam" sig=31 arch=40000003 syscall=26 compat=1 ip=* code=0x0

audit[5798]: SECCOMP auid=1000 uid=1000 gid=1000 ses=2 pid=5798 comm="wineserver" exe=2F686F6D652F*******************************************************************************5736572766572 sig=31 arch=c000003e syscall=101 compat=0 ip=* code=0x0

kernel: audit: type=1326 audit(1563350036.867:82): auid=1000 uid=1000 gid=1000 ses=2 pid=5798 comm="wineserver" exe=2F686F6D652F***********************************************************************766572 sig=31 arch=c000003e syscall=101 compat=0 ip=* code=0x0
<!-- gh-comment-id:512146372 --> @ghost commented on GitHub (Jul 17, 2019): only these: ``` audit[5477]: SECCOMP auid=1000 uid=1000 gid=1000 ses=2 pid=5477 comm="steam" exe="/home/*/.steam/ubuntu12_32/steam" sig=31 arch=40000003 syscall=26 compat=1 ip=* code=0x0 kernel: audit: type=1326 audit(1563350012.331:81): auid=1000 uid=1000 gid=1000 ses=2 pid=5477 comm="steam" exe="/home/*/.steam/ubuntu12_32/steam" sig=31 arch=40000003 syscall=26 compat=1 ip=* code=0x0 audit[5798]: SECCOMP auid=1000 uid=1000 gid=1000 ses=2 pid=5798 comm="wineserver" exe=2F686F6D652F*******************************************************************************5736572766572 sig=31 arch=c000003e syscall=101 compat=0 ip=* code=0x0 kernel: audit: type=1326 audit(1563350036.867:82): auid=1000 uid=1000 gid=1000 ses=2 pid=5798 comm="wineserver" exe=2F686F6D652F***********************************************************************766572 sig=31 arch=c000003e syscall=101 compat=0 ip=* code=0x0 ```
Author
Owner

@rusty-snake commented on GitHub (Jul 17, 2019):

@LamaRaz can you try firejail --allow-debuggers steam

<!-- gh-comment-id:512152944 --> @rusty-snake commented on GitHub (Jul 17, 2019): @LamaRaz can you try `firejail --allow-debuggers steam`
Author
Owner

@ghost commented on GitHub (Jul 17, 2019):

Well now --seccomp doesn't freeze my games. --allow-debuggers is the fix, not sure what it means though but results are results.

<!-- gh-comment-id:512349383 --> @ghost commented on GitHub (Jul 17, 2019): Well now --seccomp doesn't freeze my games. --allow-debuggers is the fix, not sure what it means though but results are results.
Author
Owner

@rusty-snake commented on GitHub (Jul 17, 2019):

FYI: your journal show that syscall=101 is blocked, the following show what syscall is blocked. And --allow-debuggers allow ptrace.

firejail --debug-syscalls | grep 101
101	- ptrace
<!-- gh-comment-id:512354453 --> @rusty-snake commented on GitHub (Jul 17, 2019): FYI: your journal show that `syscall=101` is blocked, the following show what syscall is blocked. And `--allow-debuggers` allow `ptrace`. ``` firejail --debug-syscalls | grep 101 101 - ptrace ```
Author
Owner

@ghost commented on GitHub (Jul 17, 2019):

I was more wondering why Wine needs ptrace to not freeze and why others have not reported the same issue. Is it only my setup that requires ptrace for some reason?

<!-- gh-comment-id:512442695 --> @ghost commented on GitHub (Jul 17, 2019): I was more wondering why Wine needs ptrace to not freeze and why others have not reported the same issue. Is it only my setup that requires ptrace for some reason?
Author
Owner

@ghost commented on GitHub (Jul 17, 2019):

Game now froze randomly in a battle where before it never froze. Nothing in journalctl.
Will just be on the safe side and not use seccomp, not particularly worried about steam games doing targeted exploitation, just don't want spyware anticheats uploading lists of my filesystem.

<!-- gh-comment-id:512591840 --> @ghost commented on GitHub (Jul 17, 2019): Game now froze randomly in a battle where before it never froze. Nothing in journalctl. Will just be on the safe side and not use seccomp, not particularly worried about steam games doing targeted exploitation, just don't want spyware anticheats uploading lists of my filesystem.
Author
Owner

@boltronics commented on GitHub (Jul 28, 2019):

Confirming seccomp has been causing me issues as well (0.9.58.2-2 as shipped in Debian buster). Shows the same error when launching Steam as was introduced by the recent kernel networking issue, making this quite frustrating to troubleshoot.

<!-- gh-comment-id:515722809 --> @boltronics commented on GitHub (Jul 28, 2019): Confirming seccomp has been causing me issues as well (0.9.58.2-2 as shipped in Debian buster). Shows the same error when launching Steam as was introduced by the recent kernel networking issue, making this quite frustrating to troubleshoot.
Author
Owner

@boltronics commented on GitHub (Jul 28, 2019):

In fact, even with that directive ignored, I'm still getting intermittent issues connecting, so there must be something else as well going on. I'm probably going to have to slowly narrow down this issue over time.

<!-- gh-comment-id:515723487 --> @boltronics commented on GitHub (Jul 28, 2019): In fact, even with that directive ignored, I'm still getting intermittent issues connecting, so there must be something else as well going on. I'm probably going to have to slowly narrow down this issue over time.
Author
Owner

@rusty-snake commented on GitHub (Oct 13, 2019):

I'm closing here due to inactivity, please fell free to reopen if you have more questions.

<!-- gh-comment-id:541425932 --> @rusty-snake commented on GitHub (Oct 13, 2019): I'm closing here due to inactivity, please fell free to reopen if you have more questions.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#1785
No description provided.