Title: [262368] trunk/Source/WebKit
Revision
262368
Author
commit-qu...@webkit.org
Date
2020-06-01 01:46:29 -0700 (Mon, 01 Jun 2020)

Log Message

[WPE][GTK] pthread_create() fails with EPERM in the second WebKitWebProcess with sandbox on
https://bugs.webkit.org/show_bug.cgi?id=212380

Patch by Michael Catanzaro <mcatanz...@gnome.org> on 2020-06-01
Reviewed by Adrian Perez de Castro.

Dereference scmp_arg_cmp before use.

* UIProcess/Launcher/glib/BubblewrapLauncher.cpp:
(WebKit::setupSeccomp):

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (262367 => 262368)


--- trunk/Source/WebKit/ChangeLog	2020-06-01 02:17:27 UTC (rev 262367)
+++ trunk/Source/WebKit/ChangeLog	2020-06-01 08:46:29 UTC (rev 262368)
@@ -1,3 +1,15 @@
+2020-06-01  Michael Catanzaro  <mcatanz...@gnome.org>
+
+        [WPE][GTK] pthread_create() fails with EPERM in the second WebKitWebProcess with sandbox on
+        https://bugs.webkit.org/show_bug.cgi?id=212380
+
+        Reviewed by Adrian Perez de Castro.
+
+        Dereference scmp_arg_cmp before use.
+
+        * UIProcess/Launcher/glib/BubblewrapLauncher.cpp:
+        (WebKit::setupSeccomp):
+
 2020-05-30  Alex Christensen  <achristen...@webkit.org>
 
         Deprecate WKBundlePostSynchronousMessage

Modified: trunk/Source/WebKit/UIProcess/Launcher/glib/BubblewrapLauncher.cpp (262367 => 262368)


--- trunk/Source/WebKit/UIProcess/Launcher/glib/BubblewrapLauncher.cpp	2020-06-01 02:17:27 UTC (rev 262367)
+++ trunk/Source/WebKit/UIProcess/Launcher/glib/BubblewrapLauncher.cpp	2020-06-01 08:46:29 UTC (rev 262368)
@@ -641,7 +641,7 @@
         int scall = rule.scall;
         int r;
         if (rule.arg)
-            r = seccomp_rule_add(seccomp, SCMP_ACT_ERRNO(EPERM), scall, 1, rule.arg);
+            r = seccomp_rule_add(seccomp, SCMP_ACT_ERRNO(EPERM), scall, 1, *rule.arg);
         else
             r = seccomp_rule_add(seccomp, SCMP_ACT_ERRNO(EPERM), scall, 0);
         if (r == -EFAULT) {
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to