Skip to content

Commit

Permalink
Merge pull request #107486 from talyz/webkit-bubblewrap-opengl-driver
Browse files Browse the repository at this point in the history
webkitgtk: Add `/run/opengl-driver` to bubblewrap bind mounts
  • Loading branch information
worldofpeace authored Dec 29, 2020
2 parents 920a721 + 4c68c38 commit 63d57b3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@ diff -ru old/webkitgtk-2.26.0/Source/WebKit/UIProcess/Launcher/glib/BubblewrapLa
{ SCMP_SYS(move_pages), nullptr },
{ SCMP_SYS(mbind), nullptr },
{ SCMP_SYS(get_mempolicy), nullptr },
@@ -724,6 +724,10 @@
@@ -724,6 +724,11 @@
"--ro-bind-try", "/usr/local/lib64", "/usr/local/lib64",

"--ro-bind-try", PKGLIBEXECDIR, PKGLIBEXECDIR,
+
+ // Nix Directories
+ "--ro-bind", "@storeDir@", "@storeDir@",
+ "--ro-bind", "/run/current-system", "/run/current-system",
+ "--ro-bind", "/run/opengl-driver", "/run/opengl-driver",
};
// We would have to parse ld config files for more info.
bindPathVar(sandboxArgs, "LD_LIBRARY_PATH");

0 comments on commit 63d57b3

Please sign in to comment.