aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/libraries/webkitgtk/fix-bubblewrap-paths.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/webkitgtk/fix-bubblewrap-paths.patch')
-rw-r--r--nixpkgs/pkgs/development/libraries/webkitgtk/fix-bubblewrap-paths.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/webkitgtk/fix-bubblewrap-paths.patch b/nixpkgs/pkgs/development/libraries/webkitgtk/fix-bubblewrap-paths.patch
new file mode 100644
index 00000000000..6485ba0f261
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/webkitgtk/fix-bubblewrap-paths.patch
@@ -0,0 +1,23 @@
+diff -ru old/webkitgtk-2.26.0/Source/WebKit/UIProcess/Launcher/glib/BubblewrapLauncher.cpp webkitgtk-2.26.0/Source/WebKit/UIProcess/Launcher/glib/BubblewrapLauncher.cpp
+--- old/webkitgtk-2.26.0/Source/WebKit/UIProcess/Launcher/glib/BubblewrapLauncher.cpp 2019-09-09 04:47:07.000000000 -0400
++++ webkitgtk-2.26.0/Source/WebKit/UIProcess/Launcher/glib/BubblewrapLauncher.cpp 2019-09-20 21:14:10.537921173 -0400
+@@ -585,7 +585,7 @@
+ { SCMP_SYS(keyctl), nullptr },
+ { SCMP_SYS(request_key), nullptr },
+
+- // Scary VM/NUMA ops
++ // Scary VM/NUMA ops
+ { SCMP_SYS(move_pages), nullptr },
+ { SCMP_SYS(mbind), nullptr },
+ { SCMP_SYS(get_mempolicy), nullptr },
+@@ -724,6 +724,10 @@
+ "--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",
+ };
+ // We would have to parse ld config files for more info.
+ bindPathVar(sandboxArgs, "LD_LIBRARY_PATH");