Title: [287149] branches/safari-613.1.12-branch/Source/WebKit
Revision
287149
Author
[email protected]
Date
2021-12-16 12:29:05 -0800 (Thu, 16 Dec 2021)

Log Message

Cherry-pick r287146. rdar://problem/86550488

    [watchOS] Adjust sandbox message filter
    https://bugs.webkit.org/show_bug.cgi?id=234385
    <rdar://86550488>

    Reviewed by Brent Fulgham.

    Add required items to sandbox message filter in the WebContent process on watchOS.

    * Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb.in:

    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@287146 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Modified Paths

Diff

Modified: branches/safari-613.1.12-branch/Source/WebKit/ChangeLog (287148 => 287149)


--- branches/safari-613.1.12-branch/Source/WebKit/ChangeLog	2021-12-16 20:21:16 UTC (rev 287148)
+++ branches/safari-613.1.12-branch/Source/WebKit/ChangeLog	2021-12-16 20:29:05 UTC (rev 287149)
@@ -1,5 +1,34 @@
 2021-12-16  Alan Coon  <[email protected]>
 
+        Cherry-pick r287146. rdar://problem/86550488
+
+    [watchOS] Adjust sandbox message filter
+    https://bugs.webkit.org/show_bug.cgi?id=234385
+    <rdar://86550488>
+    
+    Reviewed by Brent Fulgham.
+    
+    Add required items to sandbox message filter in the WebContent process on watchOS.
+    
+    * Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb.in:
+    
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@287146 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    2021-12-16  Per Arne Vollan  <[email protected]>
+
+            [watchOS] Adjust sandbox message filter
+            https://bugs.webkit.org/show_bug.cgi?id=234385
+            <rdar://86550488>
+
+            Reviewed by Brent Fulgham.
+
+            Add required items to sandbox message filter in the WebContent process on watchOS.
+
+            * Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb.in:
+
+2021-12-16  Alan Coon  <[email protected]>
+
         Cherry-pick r287137. rdar://problem/86476583
 
     Source/_javascript_Core:

Modified: branches/safari-613.1.12-branch/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb.in (287148 => 287149)


--- branches/safari-613.1.12-branch/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb.in	2021-12-16 20:21:16 UTC (rev 287148)
+++ branches/safari-613.1.12-branch/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb.in	2021-12-16 20:29:05 UTC (rev 287149)
@@ -1547,6 +1547,14 @@
 #endif
 )
 
+(define (kernel-mig-routine-in-use-watchos)
+    (kernel-mig-routine
+        io_connect_set_notification_port
+        mach_make_memory_entry
+        mach_make_memory_entry_64
+        vm_copy
+        vm_remap_external))
+
 (define (kernel-mig-routine-only-in-use-during-launch)
     (kernel-mig-routine
         host_get_clock_service
@@ -1560,11 +1568,6 @@
 (define (kernel-mig-routine-in-use)
     (kernel-mig-routine
         (when (defined? '_mach_make_memory_entry) _mach_make_memory_entry)
-#if PLATFORM(WATCHOS)
-        (when (defined? 'mach_make_memory_entry) mach_make_memory_entry)
-        (when (defined? 'mach_make_memory_entry_64) mach_make_memory_entry_64)
-        (when (defined? 'vm_copy) vm_copy)
-#endif
         host_get_io_master
         io_connect_async_method
         io_connect_method
@@ -1625,6 +1628,11 @@
                 (kernel-mig-routine-only-in-use-during-launch)
                 (kernel-mig-routine-in-use))
 
+#if PLATFORM(WATCHOS)
+            (allow mach-message-send
+                (kernel-mig-routine-in-use-watchos))
+#endif
+
 #if HAVE(SANDBOX_STATE_FLAGS)
 ;; FIXME: enable this when rdar://85931614 is fixed
 ;;            (with-filter (require-not (state-flag "WebContentProcessLaunched"))
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to