Changeset 273169 in webkit


Ignore:
Timestamp:
Feb 19, 2021 3:24:51 PM (3 years ago)
Author:
pvollan@apple.com
Message:

[iOS] Remove access to IOSurfaceAcceleratorClient
https://bugs.webkit.org/show_bug.cgi?id=222199
<rdar://problem/73518610>

Reviewed by Brent Fulgham.

Remove access to IOSurfaceAcceleratorClient in the WebContent process on iOS when the GPU process is enabled.
This patch also adds the IOKit filter from IOSurfaceRootUserClient when the GPU process is not enabled, to
the rule for IOSurfaceRootUserClient when the GPU process is enabled.

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

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r273163 r273169  
     12021-02-19  Per Arne Vollan  <pvollan@apple.com>
     2
     3        [iOS] Remove access to IOSurfaceAcceleratorClient
     4        https://bugs.webkit.org/show_bug.cgi?id=222199
     5        <rdar://problem/73518610>
     6
     7        Reviewed by Brent Fulgham.
     8
     9        Remove access to IOSurfaceAcceleratorClient in the WebContent process on iOS when the GPU process is enabled.
     10        This patch also adds the IOKit filter from IOSurfaceRootUserClient when the GPU process is not enabled, to
     11        the rule for IOSurfaceRootUserClient when the GPU process is enabled.
     12
     13        * Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb:
     14
    1152021-02-19  Jean-Yves Avenard  <jya@apple.com>
    216
  • trunk/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb

    r273162 r273169  
    10171017)
    10181018
    1019 ;; FIXME: This is just for logging. Remove when the GPU process is enabled by default.
    1020 (allow iokit-open (with report) (with telemetry-backtrace)
     1019(allow iokit-open (with telemetry-backtrace)
     1020    (require-all
     1021        (require-not (extension "com.apple.webkit.extension.iokit"))
     1022        (iokit-user-client-class
     1023            "IOSurfaceRootUserClient"
     1024        )
     1025    )
     1026    (when (defined? 'iokit-external-method)
     1027        (apply-message-filter
     1028            (deny (with telemetry)
     1029                iokit-async-external-method
     1030                iokit-external-trap)
     1031            (allow
     1032                iokit-external-method)
     1033        )
     1034    )
     1035)
     1036
     1037(deny iokit-open (with telemetry-backtrace)
    10211038    (require-all
    10221039        (require-not (extension "com.apple.webkit.extension.iokit"))
    10231040        (iokit-user-client-class
    10241041            "IOSurfaceAcceleratorClient"
    1025             "IOSurfaceRootUserClient"
    10261042        )
    10271043    )
Note: See TracChangeset for help on using the changeset viewer.