mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[PR #6387] [MERGED] modif: keep /sys/module/nvidia* if prop driver and no no3d #5991
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#5991
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?
📋 Pull Request Information
Original PR: https://github.com/netblue30/firejail/pull/6387
Author: @kmk3
Created: 6/17/2024
Status: ✅ Merged
Merged: 6/25/2024
Merged by: @kmk3
Base:
master← Head:modif-keep-nvidia-module📝 Commits (1)
21b8ef1modif: keep /sys/module/nvidia* if prop driver and no no3d📊 Changes
2 files changed (+14 additions, -2 deletions)
View changed files
📝
etc/profile-m-z/noprofile.profile(+2 -0)📝
src/firejail/fs.c(+12 -2)📄 Description
It has been reported in #6372 that after upgrading the nvidia
proprietary driver from version 550.78 to 550.90.07, programs using
hardware acceleration fail unless paths in
/sys/module/nvidia*areaccessible. Example:
Meanwhile, the AMD proprietary driver (AMDGPU Pro) seems to depend on
/sys/module/amdgpufor OpenCL (though it is unclear how to detect thatdriver). See commit
95c8e284d("Allow accessing /sys/module directory",2018-05-08) and commit
9dd581d25("Allow AMD GPU usage by Blender",2018-05-08) from PR #1932.
So whitelist
/sys/module/nvidia*by default if the nvidia proprietarydriver is detected and
no3dis not used.Note: The driver check is copied from src/firejail/util.c (see #841).
To keep the current behavior (that is, block all modules), add
blacklist /sys/moduleto globals.local.Fixes #6372.
Reported-by: @GreatBigWhiteWorld
Reported-by: @orzogc
Reported-by: @krop
Reported-by: @michelesr
Suggested-by: @glitsj16
Tested-by: @flyxyz123
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.