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

Changeset 286557 in webkit


Ignore:
Timestamp:
Dec 6, 2021, 11:45:31 AM (5 years ago)
Author:
pvollan@apple.com
Message:

[iOS][WP] Block access to unused IOKit class
https://bugs.webkit.org/show_bug.cgi?id=233866
<rdar://problem/86086475>

Reviewed by Brent Fulgham.

Block access to IOKit class IOMobileFramebufferUserClient in the WebContent process' sandbox on iOS,
which is unused according to telemetry.

  • Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb.in:
  • UIProcess/WebPageProxy.cpp:

(WebKit::gpuIOKitClasses):

Location:
trunk/Source/WebKit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r286552 r286557  
     12021-12-06  Per Arne Vollan  <pvollan@apple.com>
     2
     3        [iOS][WP] Block access to unused IOKit class
     4        https://bugs.webkit.org/show_bug.cgi?id=233866
     5        <rdar://problem/86086475>
     6
     7        Reviewed by Brent Fulgham.
     8
     9        Block access to IOKit class IOMobileFramebufferUserClient in the WebContent process' sandbox on iOS,
     10        which is unused according to telemetry.
     11
     12        * Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb.in:
     13        * UIProcess/WebPageProxy.cpp:
     14        (WebKit::gpuIOKitClasses):
     15
    1162021-12-06  Matt Gilligan  <matthew_gilligan@apple.com>
    217
  • trunk/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb.in

    r286469 r286557  
    9393
    9494(define-once (framebuffer-access)
    95     (allow iokit-open
    96         (require-all
    97             (extension "com.apple.webkit.extension.iokit")
    98             (iokit-user-client-class "IOMobileFramebufferUserClient")
    99         )
    100         (when (defined? 'iokit-external-method)
    101             (apply-message-filter
    102                 (deny (with telemetry)
    103                     iokit-async-external-method
    104                     iokit-external-method
    105                     iokit-external-trap)
    106                 (allow (with telemetry) iokit-external-method
    107                     (iokit-method-number
    108                         8
    109                         28
    110                     )
    111                 )
    112             )
    113         )
    114     )
     95    (deny iokit-open (with telemetry-backtrace)
     96        (iokit-user-client-class "IOMobileFramebufferUserClient"))
    11597
    11698    ; IOMobileFramebuffer
    11799    (with-filter (iokit-registry-entry-class "IOMobileFramebuffer")
    118         (allow iokit-get-properties
     100        (allow iokit-get-properties (with telemetry)
    119101               (iokit-property "AppleTV"
    120102                               "DisplayPipePlaneBaseAlignment"
  • trunk/Source/WebKit/UIProcess/WebPageProxy.cpp

    r286505 r286557  
    80538053        "IOSurfaceRootUserClient"_s,
    80548054#endif
    8055 #if (PLATFORM(MAC) && CPU(ARM64)) || PLATFORM(IOS_FAMILY)
     8055#if PLATFORM(MAC) && CPU(ARM64)
    80568056        "IOMobileFramebufferUserClient"_s,
     8057#endif
     8058#if PLATFORM(MAC) && CPU(ARM64) || PLATFORM(IOS_FAMILY)
    80578059        "IOSurfaceAcceleratorClient"_s,
    80588060#endif
Note: See TracChangeset for help on using the changeset viewer.