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

Changeset 285886 in webkit


Ignore:
Timestamp:
Nov 16, 2021, 2:46:04 PM (5 years ago)
Author:
pvollan@apple.com
Message:

[iOS] Limit graphics related IOKit method filtering
https://bugs.webkit.org/show_bug.cgi?id=233209
<rdar://problem/85473581>

Reviewed by Brent Fulgham.

Limit graphics related IOKit method filtering based on OS version. This patch also adds an entitlement which
will enable a replacement for the disabled filtering.

  • Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb.in:
  • Scripts/process-entitlements.sh:
Location:
trunk/Source/WebKit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r285881 r285886  
     12021-11-16  Per Arne Vollan  <pvollan@apple.com>
     2
     3        [iOS] Limit graphics related IOKit method filtering
     4        https://bugs.webkit.org/show_bug.cgi?id=233209
     5        <rdar://problem/85473581>
     6
     7        Reviewed by Brent Fulgham.
     8
     9        Limit graphics related IOKit method filtering based on OS version. This patch also adds an entitlement which
     10        will enable a replacement for the disabled filtering.
     11
     12        * Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb.in:
     13        * Scripts/process-entitlements.sh:
     14
    1152021-11-16  Myles C. Maxfield  <mmaxfield@apple.com>
    216
  • trunk/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb.in

    r285878 r285886  
    262262                )
    263263                (allow iokit-async-external-method
    264 #if PLATFORM(IOS)
     264#if PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED < 160000
    265265                    (iokit-method-number
    266266                        43
     
    270270                )
    271271                (allow iokit-external-method
    272 #if PLATFORM(IOS)
     272#if PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED < 160000
    273273                    (iokit-method-number
    274274                        0
  • trunk/Source/WebKit/Scripts/process-entitlements.sh

    r285869 r285886  
    3333            plistbuddy add :com.apple.coreaudio.allow-vorbis-decode bool YES
    3434        fi
     35        if (( "${TARGET_MAC_OS_X_VERSION_MAJOR}" >= 130000 ))
     36        then
     37            plistbuddy Add :com.apple.private.gpu-restricted bool YES
     38        fi
    3539    fi
    3640
     
    6064            plistbuddy Add :com.apple.private.security.message-filter bool YES
    6165            plistbuddy Add :com.apple.security.cs.jit-write-allowlist bool YES
     66        fi
     67
     68        if (( "${TARGET_MAC_OS_X_VERSION_MAJOR}" >= 130000 ))
     69        then
     70            plistbuddy Add :com.apple.private.gpu-restricted bool YES
    6271        fi
    6372
     
    281290    plistbuddy Add :com.apple.private.coremedia.extensions.audiorecording.allow bool YES
    282291    plistbuddy Add :com.apple.private.coremedia.pidinheritance.allow bool YES
     292    plistbuddy Add :com.apple.private.gpu-restricted bool YES
    283293    plistbuddy Add :com.apple.private.memorystatus bool YES
    284294    plistbuddy Add :com.apple.private.network.socket-delegate bool YES
     
    309319    plistbuddy Add :com.apple.private.allow-explicit-graphics-priority bool YES
    310320    plistbuddy Add :com.apple.private.coremedia.extensions.audiorecording.allow bool YES
     321    plistbuddy Add :com.apple.private.gpu-restricted bool YES
    311322    plistbuddy Add :com.apple.private.mediaexperience.startrecordinginthebackground.allow bool YES
    312323    plistbuddy Add :com.apple.private.mediaexperience.processassertionaudittokens.allow bool YES
Note: See TracChangeset for help on using the changeset viewer.