Title: [287098] trunk/Source/WebKit
Revision
287098
Author
[email protected]
Date
2021-12-15 12:51:38 -0800 (Wed, 15 Dec 2021)

Log Message

[iOS][WP] Add access to required syscall
https://bugs.webkit.org/show_bug.cgi?id=234336
<rdar://86343811>

Reviewed by Brent Fulgham.

Add access to required system call in the WebProcess sandbox on iOS.

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

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (287097 => 287098)


--- trunk/Source/WebKit/ChangeLog	2021-12-15 20:15:38 UTC (rev 287097)
+++ trunk/Source/WebKit/ChangeLog	2021-12-15 20:51:38 UTC (rev 287098)
@@ -1,3 +1,15 @@
+2021-12-15  Per Arne Vollan  <[email protected]>
+
+        [iOS][WP] Add access to required syscall
+        https://bugs.webkit.org/show_bug.cgi?id=234336
+        <rdar://86343811>
+
+        Reviewed by Brent Fulgham.
+
+        Add access to required system call in the WebProcess sandbox on iOS.
+
+        * Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb.in:
+
 2021-12-15  Jer Noble  <[email protected]>
 
         [Mac] Adopt -[NSScreen safeAreaInsets]

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


--- trunk/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb.in	2021-12-15 20:15:38 UTC (rev 287097)
+++ trunk/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb.in	2021-12-15 20:51:38 UTC (rev 287098)
@@ -1561,6 +1561,11 @@
 (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
@@ -1637,11 +1642,6 @@
             (when (defined? 'mach_port_is_connection_for_service)
                 (allow mach-message-send (kernel-mig-routine mach_port_is_connection_for_service))
             )
-
-            (if (and gizmo? (defined? 'mach_make_memory_entry))
-                (allow mach-message-send (kernel-mig-routine mach_make_memory_entry)))
-            (if (and gizmo? (defined? 'mach_make_memory_entry_64))
-                (allow mach-message-send (kernel-mig-routine mach_make_memory_entry_64)))
         )
     )
 )
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to