Title: [289233] trunk/Source/WebKit
Revision
289233
Author
[email protected]
Date
2022-02-07 10:44:37 -0800 (Mon, 07 Feb 2022)

Log Message

[iOS][WP] Enable sandbox state rules for Mach messages
https://bugs.webkit.org/show_bug.cgi?id=236027
<rdar://problem/88387937>

Reviewed by Brent Fulgham.

Until <rdar://85931614> has been fixed, we can enable sandbox state rules for Mach messages with a minor workaround.

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

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (289232 => 289233)


--- trunk/Source/WebKit/ChangeLog	2022-02-07 18:26:07 UTC (rev 289232)
+++ trunk/Source/WebKit/ChangeLog	2022-02-07 18:44:37 UTC (rev 289233)
@@ -1,3 +1,15 @@
+2022-02-07  Per Arne Vollan  <[email protected]>
+
+        [iOS][WP] Enable sandbox state rules for Mach messages
+        https://bugs.webkit.org/show_bug.cgi?id=236027
+        <rdar://problem/88387937>
+
+        Reviewed by Brent Fulgham.
+
+        Until <rdar://85931614> has been fixed, we can enable sandbox state rules for Mach messages with a minor workaround.
+
+        * Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb.in:
+
 2022-02-07  Megan Gardner  <[email protected]>
 
         Setup alternate mouse gesture recognizer.

Modified: trunk/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb.in (289232 => 289233)


--- trunk/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb.in	2022-02-07 18:26:07 UTC (rev 289232)
+++ trunk/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb.in	2022-02-07 18:44:37 UTC (rev 289233)
@@ -1561,7 +1561,6 @@
 
 (define (kernel-mig-routine-only-in-use-during-launch)
     (kernel-mig-routine
-        host_get_clock_service
         host_get_special_port
         host_info
         io_server_version
@@ -1572,6 +1571,7 @@
 (define (kernel-mig-routine-in-use)
     (kernel-mig-routine
         (when (defined? '_mach_make_memory_entry) _mach_make_memory_entry)
+        host_get_clock_service ;; After <rdar://85931614> has been fixed, we should evaluate if this is only used on launch.
         host_get_io_master
         io_connect_async_method
         io_connect_map_memory_into_task ;; <rdar://88300200>
@@ -1639,16 +1639,15 @@
 #endif
 
 #if HAVE(SANDBOX_STATE_FLAGS)
-;; FIXME: enable this when rdar://85931614 is fixed
-;;            (with-filter (require-not (state-flag "WebContentProcessLaunched"))
-;;                (allow mach-message-send
-;;                    (kernel-mig-routine-only-in-use-during-launch)))
-;;            (with-filter (state-flag "WebContentProcessLaunched")
-;;                (allow mach-message-send
-;;                    (with report)
-;;                    (with telemetry)
-;;                    (with message "kernel mig routine used after launch")
-;;                    (kernel-mig-routine-only-in-use-during-launch)))
+            (with-filter (require-not (state-flag "WebContentProcessLaunched"))
+                (allow mach-message-send
+                    (kernel-mig-routine-only-in-use-during-launch)))
+            (with-filter (state-flag "WebContentProcessLaunched")
+                (allow mach-message-send
+                    (with report)
+                    (with telemetry)
+                    (with message "kernel mig routine used after launch")
+                    (kernel-mig-routine-only-in-use-during-launch)))
 #endif
 
             (when (defined? 'mach_port_is_connection_for_service)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to