Title: [280620] trunk/Source/WebKit
Revision
280620
Author
bfulg...@apple.com
Date
2021-08-03 15:52:11 -0700 (Tue, 03 Aug 2021)

Log Message

[iOS] Allow check for nvram "emu" state on internal OS builds
https://bugs.webkit.org/show_bug.cgi?id=228745
<rdar://problem/78363040>

Reviewed by Per Arne Vollan.

Allow access to the 'emu' nvram variable when running on an Apple Internal OS build. This
reduces spurious sandbox violation reports, and improves the performance of test systems.

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

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (280619 => 280620)


--- trunk/Source/WebKit/ChangeLog	2021-08-03 22:23:44 UTC (rev 280619)
+++ trunk/Source/WebKit/ChangeLog	2021-08-03 22:52:11 UTC (rev 280620)
@@ -1,3 +1,17 @@
+2021-08-03  Brent Fulgham  <bfulg...@apple.com>
+
+        [iOS] Allow check for nvram "emu" state on internal OS builds
+        https://bugs.webkit.org/show_bug.cgi?id=228745
+        <rdar://problem/78363040>
+
+        Reviewed by Per Arne Vollan.
+
+        Allow access to the 'emu' nvram variable when running on an Apple Internal OS build. This
+        reduces spurious sandbox violation reports, and improves the performance of test systems.
+
+        * Resources/SandboxProfiles/ios/com.apple.WebKit.GPU.sb:
+        * Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb.in:
+
 2021-08-03  Tim Horton  <timothy_hor...@apple.com>
 
         Remove unused processDidTransitionTo{Foreground,Background} IPC

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


--- trunk/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.GPU.sb	2021-08-03 22:23:44 UTC (rev 280619)
+++ trunk/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.GPU.sb	2021-08-03 22:52:11 UTC (rev 280620)
@@ -600,7 +600,9 @@
 
 (with-filter (system-attribute apple-internal)
     (allow sysctl-read sysctl-write
-           (sysctl-name "vm.footprint_suspend")))
+           (sysctl-name "vm.footprint_suspend"))
+    (allow nvram-get (nvram-variable "emu")) ;; <rdar://problem/78363040>
+)
 
 (allow mach-lookup (with report) (with telemetry)
        (global-name "com.apple.system.logger"))

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


--- trunk/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb.in	2021-08-03 22:23:44 UTC (rev 280619)
+++ trunk/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb.in	2021-08-03 22:52:11 UTC (rev 280620)
@@ -382,6 +382,7 @@
     (with-filter (system-attribute apple-internal)
         (allow file-read* file-write-data file-ioctl
             (literal "/dev/dtracehelper"))
+        (allow nvram-get (nvram-variable "emu")) ;; <rdar://problem/78363040>
     )
 
     (allow file-read*
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to