mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #6566] Vulkan applications don't work even with --noprofile (nvidia) #3305
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#3305
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 @Jacajack on GitHub (Dec 14, 2024).
Original GitHub issue: https://github.com/netblue30/firejail/issues/6566
Description
It appears that on my machine Vulkan applications (
vulkainfo,vkcube, DXVK in WINE) do not work insidefirejail. Even if--noprofileis specified. The error messages reportvkEnumeratePhysicalDeviceseither returning zero devices or failing. I have found another Vulkan issue: https://github.com/netblue30/firejail/issues/2959. In their case, however,--noprofilehas fixed it.Steps to Reproduce
firejail --noprofile vulkaninfoExpected behavior
I expect to see normal
vulkaninfooutput. Or any Vulkan app working.Actual behavior
Vulkan applications fail as no Vulkan compatible devices seem to be detected.
Behavior without a profile
What changed calling
LC_ALL=C firejail --noprofile /path/to/programin aterminal?
Nothing, unfortunately:
Additional context
Any other detail that may help to understand/debug the problem
I have an Nvidia card - RTX 2070 SUPER and use the
nvidia-dkmsdriver. Nothing else comes to my mind at the moment.Environment
uname -srm):Linux 6.12.4-arch1-1 x86_64firejail --version):0.9.72was compiled (
git rev-parse HEAD): N/AChecklist
/usr/bin/vlc) "fixes" it).https://github.com/netblue30/firejail/issues/1139)Log
Output of
LC_ALL=C firejail /path/to/programOutput of
LC_ALL=C firejail --debug /path/to/program@Jacajack commented on GitHub (Dec 14, 2024):
Okay, I think I got that. I ran
strace vkcubewith and withoutfirejail. I noticed that it's accessing/sys/module/nvidia/initstate. The successful call should look like this:But with
firejailit's:This can be fixed (or rather worked around) with
--noblacklist=/sys/module. Shouldn't GPU driver paths be accessible by default, unless--no3dis set?@rusty-snake commented on GitHub (Dec 14, 2024):
There are a lot if fixes since the last release, an you test with firejail-git.
@Jacajack commented on GitHub (Dec 14, 2024):
Just tried firejail 0.9.73 from
firejail-git. Bothvkcubeandvulkaninfowork fine with and without--noprofile. No additional flags needed. I guess this can be closed now.Thanks for your quick response. Do you know when we can expect the new official release?
@rusty-snake commented on GitHub (Dec 14, 2024):
Either before the next debian freeze or, if this does not happen, probably never.
@kmk3 commented on GitHub (Dec 15, 2024):
Duplicate of #6372