mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #879] Can't run any OpenGL apps using nvidia drivers #595
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#595
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @bog-dan-ro on GitHub (Oct 28, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/879
Hi,
I'm trying to use firejail (from debian sid packages) to run some opengl games (0ad, openarena, etc.) but none of them seems to work. Not even the humble glxgears ...
It doesn't crash, just the window is black.
Is this a know problem, or the debian package is broken?
@valoq commented on GitHub (Oct 28, 2016):
How do you start firejail?
Are you using any profiles, the default profiles or your own?
Are you using any additional firejail options like --x11 to start the applications?
Can you verify that the applications run normally without firejail?
@netblue30 commented on GitHub (Oct 29, 2016):
What firejail version are you running? There have been some Nvidia fixes in 0.9.44.
Also try "firejail --noprofile 0ad". If this works, we'll need to fix the profile file.
@bog-dan-ro commented on GitHub (Nov 2, 2016):
@valoq
firejail 0addefault profiles
Nope
It runs perfectly!
@netblue30
0.9.44-1 from https://packages.debian.org/sid/firejail
I'll try it when I get home.
I tried it on my laptop (intel video card) and everything works ok !
@bog-dan-ro commented on GitHub (Nov 4, 2016):
@netblue30
firejail --noprofile any_open_gl_appworks perfectly!Let me know how can I help to fix the profile files.
@netblue30 commented on GitHub (Nov 5, 2016):
OK, you need to find in the profile file the line or the lines that are creating the problem.
For example, you open in a text editor /etc/0ad.profile and start commenting the lines one by one (add a '#' in front of the line). Then, you run "firejail 0ad". In a few iterations you'll find out what line or lines are creating the problem.
Also take a look at this issue: https://github.com/netblue30/firejail/issues/631
@bog-dan-ro commented on GitHub (Nov 6, 2016):
I found it, it's
norootoption fromdefault.profile@bog-dan-ro commented on GitHub (Nov 6, 2016):
For 0ad there are a few more in 0ad.profile
@netblue30 commented on GitHub (Nov 6, 2016):
I think the driver uses some suid binary to start opengl, or maybe ptrace. Is this the opensource driver from Debian or some closed-source driver from Nvidia?
We have something similar with AMDGPU Pro drivers from AMD: https://firejail.wordpress.com/support/known-problems/#amdgpu - in this case they seem to be using ptrace for some reasons and they get killed by seccomp.
This is how you fix it: for all opengl programs you use, make a local copy of the profile file (example: /etc/firejail/0ad.profile) in your home directory in ~/.config/firejail/ (example: ~/.config/firejail/0ad.profile). Then. you edit the local copy and disable the lines. For programs without a specific profile file in /etc/firejail, copy /etc/firejail/default.profile (example: cp /etc/firejail/default.profile ~/.config/firejail/openarena.profile).
@bog-dan-ro commented on GitHub (Nov 7, 2016):
I'm using NVidia proprietary drivers from debian packages https://packages.debian.org/sid/nvidia-driver :(
I "fixed" it by changing the files from /etc/firejail/ but ... Isn't better to trace the problem and contact nvidia and request them to fix their drivers?
@netblue30 commented on GitHub (Nov 7, 2016):
Good luck with that!