⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 276515 in webkit


Ignore:
Timestamp:
Apr 23, 2021, 1:11:39 PM (5 years ago)
Author:
Brent Fulgham
Message:

[iOS] GPU Process sandbox lacks IOMobileFramebufferUserClient method filter
https://bugs.webkit.org/show_bug.cgi?id=224956
<rdar://problem/68227590>

Reviewed by Per Arne Vollan.

This patch updates the GPU process sandbox to match the method filter used in the WebContent process
so that we will retain consistent protections when activating the GPU Process. These are the same rules
governing access to this resource when the GPU process is disabled, so should not create a change in behavior.

We also remove unneeded telemetry to reduce messaging burden and avoid performance issues.

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

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r276514 r276515  
     12021-04-23  Brent Fulgham  <bfulgham@apple.com>
     2
     3        [iOS] GPU Process sandbox lacks IOMobileFramebufferUserClient method filter
     4        https://bugs.webkit.org/show_bug.cgi?id=224956
     5        <rdar://problem/68227590>
     6
     7        Reviewed by Per Arne Vollan.
     8
     9        This patch updates the GPU process sandbox to match the method filter used in the WebContent process
     10        so that we will retain consistent protections when activating the GPU Process. These are the same rules
     11        governing access to this resource when the GPU process is disabled, so should not create a change in behavior.
     12
     13        We also remove unneeded telemetry to reduce messaging burden and avoid performance issues.
     14
     15        * Resources/SandboxProfiles/ios/com.apple.WebKit.GPU.sb:
     16        * Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb:
     17
    1182021-04-23  BJ Burg  <bburg@apple.com>
    219
  • trunk/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.GPU.sb

    r276477 r276515  
    8888(define-once (framebuffer-access)
    8989    (allow iokit-open
    90            (iokit-user-client-class "IOMobileFramebufferUserClient"))
     90           (iokit-user-client-class "IOMobileFramebufferUserClient")
     91           (when (defined? 'iokit-external-method)
     92               (apply-message-filter
     93                   (deny (with telemetry)
     94                       iokit-async-external-method
     95                       iokit-external-trap)
     96                   (allow
     97                       iokit-external-method)
     98               )
     99           )
     100    )
    91101    (mobile-preferences-read "com.apple.iokit.IOMobileGraphicsFamily"))
    92102
  • trunk/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb

    r276451 r276515  
    9797                    iokit-async-external-method
    9898                    iokit-external-trap)
    99                 (allow (with telemetry) (with message "IOMobileFramebufferUserClient")
     99                (allow
    100100                    iokit-external-method)
    101101            )
Note: See TracChangeset for help on using the changeset viewer.