Merge pull request #171933 from onny/firejail-opengl

firejail: Fix opengl support for various apps
This commit is contained in:
0x4A6F 2022-05-09 22:13:11 +02:00 committed by GitHub
commit b2c14fec91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 0 deletions

View File

@ -47,6 +47,12 @@ stdenv.mkDerivation rec {
# Upstream fix https://github.com/netblue30/firejail/pull/5131
# Upstream hopefully fixed in later versions > 0.9.68
./whitelist-nix-profile.patch
# Fix OpenGL support for various applications including Firefox
# Issue: https://github.com/NixOS/nixpkgs/issues/55191
# Upstream fix: https://github.com/netblue30/firejail/pull/5132
# Hopefully fixed upstream in version > 0.9.68
./fix-opengl-support.patch
];
prePatch = ''

View File

@ -0,0 +1,7 @@
--- a/etc/inc/whitelist-run-common.inc.org 2022-05-07 11:27:32.264849186 +0200
+++ b/etc/inc/whitelist-run-common.inc 2022-05-07 11:27:55.577778211 +0200
@@ -13,3 +13,4 @@
whitelist /run/systemd/resolve/resolv.conf
whitelist /run/systemd/resolve/stub-resolv.conf
whitelist /run/udev/data
+whitelist /run/opengl-driver # NixOS