mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #6372] Nvidia driver 550.90.07 needs access to /sys/module/nvidia* #3253
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#3253
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 @GreatBigWhiteWorld on GitHub (Jun 7, 2024).
Original GitHub issue: https://github.com/netblue30/firejail/issues/6372
Description
Steam fail to launch (it has been ok for a long time in the past).
Steps to Reproduce
Steps to reproduce the behavior
With 'ignore noroot' and 'ignore private-dev' in firejail.local already, I got X error:
Expected behavior
Launch normally as before.
Actual behavior
steam showing in running process without any window or system tray.
Behavior without a profile
What changed calling
LC_ALL=C firejail --noprofile /path/to/programin aterminal?
Nothing changes. I get the same error with '--noprofile' option.
Additional context
This issue is new. It has been running fine with firejail. It started to appear after an OS update and reboot.
Environment
Checklist
/usr/bin/vlc) "fixes" it).https://github.com/netblue30/firejail/issues/1139)browser-allow-drm yes/browser-disable-u2f noinfirejail.configto allow DRM/U2F in browsers.--profile=PROFILENAMEto set the right profile. (Only relevant for AppImages)@kmk3 commented on GitHub (Jun 11, 2024):
The error is rather vague, so it's hard to tell.
I'd try commenting lines in steam.profile until it works to narrow it down.
Also, I see that there are quite a few results when searching for this error on
the steam issue tracker:
The following issue has the same exact error in the title:
Maybe the workarounds posted there could help.
@orzogc commented on GitHub (Jun 14, 2024):
I had also encountered this error after upgrading the NVIDIA driver from
550.78to550.90.07on Arch Linux KDE wayland desktop. I ran firejail with--noprofileoption but the error was the same.This error is used to be fixed by installing the 32-bits NVIDIA driver, but I had installed
lib32-nvidia-utilson Arch Linux.@kmk3 commented on GitHub (Jun 14, 2024):
Does anything change with
firejail --profile=noprofile /usr/bin/steam?Does anything change with Xorg?
To clarify, do you mean that in the past the error could be fixed by installing
that driver but now it doesn't fix the error anymore?
Is that the "32-bits NVIDIA driver" or something else?
Does installing that fix the error?
@orzogc commented on GitHub (Jun 14, 2024):
Nothing changes. Output is here:
I will test it later.
People said they fixed this error by installing the 32-bit NVIDIA driver in https://github.com/ValveSoftware/steam-for-linux/issues/4909.
lib32-nvidia-utilson Arch Linux contains the 32-bit NVIDIA driver. I had installed it before upgrading NVIDIA driver so installing it doesn't fix this error anymore.@krop commented on GitHub (Jun 14, 2024):
https://bbs.archlinux.org/viewtopic.php?id=296675 is probably related.
Even a simple
firejail glxgearsproduces the same error (same thing with--noprofilebut--profile=noprofileworks)I'm also using openSUSE Tumbleweed with NVidia driver 550.90.07
@krop commented on GitHub (Jun 14, 2024):
firejail --trace glxgearsreported5:glxgears:access /sys/module/nvidia/initstate:-1Adding
noblacklist /sys/moduleto the default profile helpsAdding the line to steam.profile also allows running it with firejail
Edit
For anyone finding this bug report, you can also be a bit more restrictive and only un-blacklist what the NVidia driver wants to access:
Create a
~/.config/firejailfolder if it doesn't existAdd:
to
~/.config/firejail/globals.local@orzogc commented on GitHub (Jun 14, 2024):
I can confirm adding
noblacklist /sys/moduleto profile fixes the error.@GreatBigWhiteWorld commented on GitHub (Jun 15, 2024):
I'm having another kind of error now (popup window) after using
noblacklist /sys/modulein ~/.config/firejail/globals.local.A popup window that says "Error: Couldn't setup Steam data. Please contact technical support" when in console:
I have the following in
~/.config/firejail/steam.profileRunning steam directly has no problem.
@ghost commented on GitHub (Jun 15, 2024):
@GreatBigWhiteWorld
The current steam.profile in git changed the seccomp option compared to 0.9.72. You might want to give that a try.
0fb4753986/etc/profile-m-z/steam.profile (L170)@GreatBigWhiteWorld commented on GitHub (Jun 15, 2024):
Tried 'ignore seccomp' and I got the same error of not able to setup steam data.
@krop commented on GitHub (Jun 15, 2024):
Note: I edited my previous comment: both
/sys/module/nvidia/initstateand/sys/module/nvidia_modeset/initstateneed to be un-blacklisted for e.g the Steam of itch.io clients.I ran more tests with other applications and added
/sys/module/nvidia_uvm/initstatewhich is needed by e.g Blender. While I didn't find a user yet for/sys/module/nvidia_drm/initstate, I also added it to the snippet to add to$HOME/.config/firejail/globals.local.@GreatBigWhiteWorld commented on GitHub (Jun 15, 2024):
This might be an unrelated problem to this thread, since adding 'noblacklist /sys/module' to globals.profile fix 'firejail glxgear'.
But I don't know why the new issue emerges after the first one fixed.
firejail steam had worked for a long time before all of this.
@ghost commented on GitHub (Jun 15, 2024):
Update
On the arch linux forum thread someone confirmed they've got a working steam when using the below (cfr. what we do in the blender profile):
@kmk3 commented on GitHub (Jun 16, 2024):
Good catch!
I found a way to allow the amd/nvidia modules by default in the code (as in the
above entries) if
no3dis not used and it seems to work.Though I'm not sure what exactly the files in /sys/module provide, so it might
be better to only do so if the proprietary driver is in use/installed.
For nvidia it seems that the presence of the proprietary driver can be detected
by checking whether
/dev/nvidiactlexists.Any idea about AMDGPU Pro?
If not, I think I'll just do it for nvidia for now.
Relates to #841 #1932.
Cc: @RDProjekt (from #1932)
@ghost commented on GitHub (Jun 16, 2024):
Alas, no. We can add that later like you suggested when we find out. I'll ask around on our IRC channel.
@kmk3 commented on GitHub (Jun 17, 2024):
Related:
@kmk3 commented on GitHub (Jun 17, 2024):
(Quoting the following comment for reference as its OpenGL error output is more
complete)
@michelesr on Jun 16:
@kmk3 commented on GitHub (Jun 25, 2024):
Fixed in #6387; thanks for all the reports and tests!