Changeset 268507 in webkit


Ignore:
Timestamp:
Oct 14, 2020 8:24:20 PM (4 years ago)
Author:
Brent Fulgham
Message:

[iOS] Allow additional sysctl reads needed by image decoding
https://bugs.webkit.org/show_bug.cgi?id=217733
<rdar://problem/68649171>

Reviewed by Per Arne Vollan.

Telemetry on iOS 14 shows that we are hitting some sandbox violations during image decoding. We should
grant access to hw.byteorder, hw.cachelinesize_compat, and hw.vectorunit. We should silence warnings
about hw.cpufrequency_compat since it is not needed in web-facing use cases.

  • Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb:
Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r268504 r268507  
     12020-10-14  Brent Fulgham  <bfulgham@apple.com>
     2
     3        [iOS] Allow additional sysctl reads needed by image decoding
     4        https://bugs.webkit.org/show_bug.cgi?id=217733
     5        <rdar://problem/68649171>
     6
     7        Reviewed by Per Arne Vollan.
     8
     9        Telemetry on iOS 14 shows that we are hitting some sandbox violations during image decoding. We should
     10        grant access to hw.byteorder, hw.cachelinesize_compat, and hw.vectorunit. We should silence warnings
     11        about hw.cpufrequency_compat since it is not needed in web-facing use cases.
     12
     13        * Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb:
     14
    1152020-10-14  Ryosuke Niwa  <rniwa@webkit.org>
    216
  • trunk/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb

    r267960 r268507  
    643643
    644644(deny sysctl-read (with no-report)
    645       (sysctl-name "sysctl.proc_native"))
     645      (sysctl-name
     646          "hw.cpufrequency_compat"
     647          "sysctl.proc_native"))
    646648
    647649(with-filter (system-attribute apple-internal)
     
    841843        "hw.activecpu" ;; Needed by JSC engine.
    842844        "hw.availcpu"
     845        "hw.byteorder"
    843846        "hw.cachelinesize"
     847        "hw.cachelinesize_compat"
    844848        "hw.cpufamily" ;; <rdar://problem/58416475>
    845849        "hw.cputype"
     
    855859        "hw.physicalcpu_max"
    856860        "hw.product"
     861        "hw.vectorunit"
    857862        "kern.bootargs"
    858863        "kern.hostname"
Note: See TracChangeset for help on using the changeset viewer.