mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #1045] GPU acceleration not working out of the box anymore with vglusers #710
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#710
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 @ruany on GitHub (Jan 12, 2017).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1045
Seems like anything requiring GPU acceleration stopped working after a firejail update, as if --no3d is passed by default.
Using latest git version. GLXGears works fine outside of firejail. Other programs (chromium, wine) are also affected.
@ruany commented on GitHub (Jan 12, 2017):
I've looked into
fs_dev.cand the files mentioned there (/dev/nvidia0,/dev/nvidiactl) are inaccessible. The entry which is spelled incorrectly/dev/nvidia-modsetis accessible at/dev/nvidia-modeset("Invalid argument" instead of "Permission denied")Strangely the blacklisted files aren't mentioned at all in the
--debugoutput.Running
firejail --noprofile --noblacklist=/dev/nvidia0still results in "Permission denied" error.Also,
--private-devseems to make no difference.@ruany commented on GitHub (Jan 12, 2017):
Problem is that /dev/nvidia0 is
0660and is owned byvglusers. When I launch firejail I lose the vglusers group for some reason.The problem isn't in
fs_dev.c, it seems, recompiling it without those entries has no effect on the bug.@netblue30 commented on GitHub (Jan 12, 2017):
OK, as I understand it:
/dev/nvidia-modeset should be /dev/nvidia-modset
I should preserve user/group ownership on nvidia files in /dev, I am currently setting them as root.
Can you please do a "ls -l /dev" on your system, thanks.
@ruany commented on GitHub (Jan 12, 2017):
This is the problem:
This doesn't seem to be a regression in firejail as I first thought it was. This happened after a reboot.
Now I can see the actual cause of the problem. /etc/group is different after firejail is launched.
It seems like all groups with ID > 1000 are removed from /etc/group by firejail.
@ruany commented on GitHub (Jan 12, 2017):
So now that I know I can easily solve the problem by editing
/etc/groupand making vglusers GID < 1000, I'd just like to know why groups with GID > 1000 (GID_MIN) are removed (bysrc/firejail/restrict_users.c). Is it for security reasons?@netblue30 commented on GitHub (Jan 13, 2017):
Fixed /dev/nvidia-modeset, thanks!
Yes, some of the users and groups under 1000 (500 on some systems) have high privileges, so I wipe them out.