mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #2106] OpenGL on Radeon needs /usr/lib/llvm/, which is blacklisted in disable-devel.inc #1423
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#1423
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 @creideiki on GitHub (Sep 3, 2018).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2106
After switching from a GeForce to a Radeon GPU (using the open source drivers in Mesa), I no longer got hardware acceleration in Firefox.
Terminal output when starting Firefox:
strace:ing the process pointed to a failure to access LLVM:disable-devel.inc, which is included in the Firefox profile, blacklists the entire/usr/lib/llvm/tree, seemingly in an attempt to disable the clang compiler:I removed the blacklist of the lib directory by creating
/etc/firejail/disable-devel.localcontaining:which makes Firefox hardware acceleration work.
Is there a good reason for the lib directory to be blacklisted as well as bin? The commit that added it,
823b1ae6d5, does not explain the rationale.I tried making a more specific hole, in particular:
which did not work. I did not
stracefurther do see what else is required.firejail --version:GPU information, according to Firefox:
@SkewedZeppelin commented on GitHub (Sep 3, 2018):
See #1437
So this is an issue with LLVM >=4 and is noblacklisted in a number of existing profiles (wine, steam, qutebrowser, etc). When that blacklist was added in late 2015, LLVM 4 had only just come out and wasn't widely adopted by distros.
However now LLVM 7 is on the horizon and with mesa's increasing dependence on it (mainly for radeonsi), we probably should consider removing /usr/lib/llvm* from the blacklist
@netblue30 commented on GitHub (Sep 7, 2018):
Fixed:
cef2514caa@Fred-Barclay commented on GitHub (Sep 19, 2018):
Closing for now since the blacklist has been removed in 0.9.56.