[macOS] Fix mach syscall sandbox violation in the Network process
authorpvollan@apple.com <pvollan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 17 May 2022 01:00:05 +0000 (01:00 +0000)
committerpvollan@apple.com <pvollan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 17 May 2022 01:00:05 +0000 (01:00 +0000)
https://bugs.webkit.org/show_bug.cgi?id=240466
<rdar://93249176>

Reviewed by Chris Dumez.

Fix mach syscall sandbox violation in the Network process on macOS.

* Source/WebKit/NetworkProcess/mac/com.apple.WebKit.NetworkProcess.sb.in:

link: https://commits.webkit.org/250626@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@294282 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit/NetworkProcess/mac/com.apple.WebKit.NetworkProcess.sb.in

index 176cbb6f21460ee940527d4e6f73115277b9e298..60b364cd6e7f7a7b4a41adddbeef22da44d565e1 100644 (file)
             MSC_syscall_thread_switch
             MSC_task_dyld_process_info_notify_get
             MSC_task_self_trap
-            MSC_thread_get_special_reply_port))
+            MSC_thread_get_special_reply_port
+#if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED < 120000
+            MSC_thread_self_trap
+#endif
+    ))
             
     (when (defined? 'MSC_mach_msg2_trap)
         (allow syscall-mach