Title: [279230] trunk/Source/WebKit
Revision
279230
Author
bfulg...@apple.com
Date
2021-06-24 09:28:19 -0700 (Thu, 24 Jun 2021)

Log Message

[iOS] Allow network-outbound logging for internal builds
https://bugs.webkit.org/show_bug.cgi?id=227332
<rdar://problem/79669627>

Reviewed by Per Arne Vollan.

We allow network-outbound for /private/var/run/syslog in the WebContent process for debugging
purposes on internal OS images. We should do the same for our other processes to avoid noisy logging.

* Resources/SandboxProfiles/ios/com.apple.WebKit.GPU.sb:
* Resources/SandboxProfiles/ios/com.apple.WebKit.Networking.sb:

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (279229 => 279230)


--- trunk/Source/WebKit/ChangeLog	2021-06-24 15:49:31 UTC (rev 279229)
+++ trunk/Source/WebKit/ChangeLog	2021-06-24 16:28:19 UTC (rev 279230)
@@ -1,3 +1,17 @@
+2021-06-24  Brent Fulgham  <bfulg...@apple.com>
+
+        [iOS] Allow network-outbound logging for internal builds
+        https://bugs.webkit.org/show_bug.cgi?id=227332
+        <rdar://problem/79669627>
+
+        Reviewed by Per Arne Vollan.
+
+        We allow network-outbound for /private/var/run/syslog in the WebContent process for debugging
+        purposes on internal OS images. We should do the same for our other processes to avoid noisy logging.
+
+        * Resources/SandboxProfiles/ios/com.apple.WebKit.GPU.sb:
+        * Resources/SandboxProfiles/ios/com.apple.WebKit.Networking.sb:
+
 2021-06-24  Kimmo Kinnunen  <kkinnu...@apple.com>
 
         Using a video as a source for a WebGL texture is slow and hangs on iOS 15

Modified: trunk/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.GPU.sb (279229 => 279230)


--- trunk/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.GPU.sb	2021-06-24 15:49:31 UTC (rev 279229)
+++ trunk/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.GPU.sb	2021-06-24 16:28:19 UTC (rev 279230)
@@ -608,6 +608,13 @@
 (allow file-read-metadata
        (literal "/private/var/run/syslog"))
 
+;; ObjC map_images needs to send logging data to syslog. <rdar://problem/39778918>
+(with-filter (system-attribute apple-internal)
+    (allow network-outbound
+       (literal "/private/var/run/syslog")
+    )
+)
+
 (allow mach-lookup
        (global-name "com.apple.system.notification_center"))
 (allow ipc-posix-shm-read*

Modified: trunk/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.Networking.sb (279229 => 279230)


--- trunk/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.Networking.sb	2021-06-24 15:49:31 UTC (rev 279229)
+++ trunk/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.Networking.sb	2021-06-24 16:28:19 UTC (rev 279230)
@@ -485,6 +485,13 @@
 (allow file-read-metadata
        (literal "/private/var/run/syslog"))
 
+;; ObjC map_images needs to send logging data to syslog. <rdar://problem/39778918>
+(with-filter (system-attribute apple-internal)
+    (allow network-outbound
+       (literal "/private/var/run/syslog")
+    )
+)
+
 (allow mach-lookup
     (global-name "com.apple.system.notification_center"))
 (allow ipc-posix-shm-read*
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to