Changeset 270418 in webkit


Ignore:
Timestamp:
Dec 3, 2020 4:31:23 PM (3 years ago)
Author:
Brent Fulgham
Message:

[macOS] Only extend access to the AppleSNBFBUserClient IOKit class if the GPU Process is not used
https://bugs.webkit.org/show_bug.cgi?id=219014
<rdar://problem/70463873>

Reviewed by Per Arne Vollan.

Instead of globally extending access to the AppleSNBFBUserClient IOKit class,
only extend it when the GPU process is not in use.

  • UIProcess/WebPageProxy.cpp:

(WebKit::gpuIOKitClasses): Add 'AppleSNBFBUserClient' as a dynamically-extended
IOKit class.

  • WebProcess/com.apple.WebProcess.sb.in: Only allow 'AppleSNBFBUserClient' if it

was dynamically extended.

Location:
trunk/Source/WebKit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r270417 r270418  
     12020-12-03  Brent Fulgham  <bfulgham@apple.com>
     2
     3        [macOS] Only extend access to the AppleSNBFBUserClient IOKit class if the GPU Process is not used
     4        https://bugs.webkit.org/show_bug.cgi?id=219014
     5        <rdar://problem/70463873>
     6
     7        Reviewed by Per Arne Vollan.
     8
     9        Instead of globally extending access to the AppleSNBFBUserClient IOKit class,
     10        only extend it when the GPU process is not in use.
     11
     12        * UIProcess/WebPageProxy.cpp:
     13        (WebKit::gpuIOKitClasses): Add 'AppleSNBFBUserClient' as a dynamically-extended
     14        IOKit class.
     15        * WebProcess/com.apple.WebProcess.sb.in: Only allow 'AppleSNBFBUserClient' if it
     16        was dynamically extended.
     17
    1182020-12-03  Said Abou-Hallawa  <said@apple.com>
    219
  • trunk/Source/WebKit/UIProcess/WebPageProxy.cpp

    r270415 r270418  
    77437743#if PLATFORM(MAC) || PLATFORM(MACCATALYST)
    77447744        "AppleIntelMEUserClient"_s,
     7745        "AppleSNBFBUserClient"_s,
    77457746#endif
    77467747    });
  • trunk/Source/WebKit/WebProcess/com.apple.WebProcess.sb.in

    r270381 r270418  
    201201    ;; This is needed for Encrypted Media on some hardware (MacMini8,1 for example)
    202202    (allow iokit-open
    203         (iokit-registry-entry-class "AppleSNBFBUserClient")
     203        (require-all
     204            (extension "com.apple.webkit.extension.iokit")
     205            (iokit-registry-entry-class "AppleSNBFBUserClient")
     206        )
    204207#if HAVE(SANDBOX_MESSAGE_FILTERING)
    205208        (with telemetry-backtrace)
     
    16181621        (iokit-registry-entry-class
    16191622            "AppleIntelMEUserClient"
     1623            "AppleSNBFBUserClient"
    16201624        )
    16211625    )
Note: See TracChangeset for help on using the changeset viewer.