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

Changeset 285903 in webkit


Ignore:
Timestamp:
Nov 16, 2021, 5:08:34 PM (5 years ago)
Author:
Russell Epstein
Message:

Cherry-pick r285886. rdar://problem/85473581

[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:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@285886 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Location:
branches/safari-613.1.9-branch/Source/WebKit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-613.1.9-branch/Source/WebKit/ChangeLog

    r285895 r285903  
     12021-11-16  Russell Epstein  <repstein@apple.com>
     2
     3        Cherry-pick r285886. rdar://problem/85473581
     4
     5    [iOS] Limit graphics related IOKit method filtering
     6    https://bugs.webkit.org/show_bug.cgi?id=233209
     7    <rdar://problem/85473581>
     8   
     9    Reviewed by Brent Fulgham.
     10   
     11    Limit graphics related IOKit method filtering based on OS version. This patch also adds an entitlement which
     12    will enable a replacement for the disabled filtering.
     13   
     14    * Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb.in:
     15    * Scripts/process-entitlements.sh:
     16   
     17   
     18    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@285886 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     19
     20    2021-11-16  Per Arne Vollan  <pvollan@apple.com>
     21
     22            [iOS] Limit graphics related IOKit method filtering
     23            https://bugs.webkit.org/show_bug.cgi?id=233209
     24            <rdar://problem/85473581>
     25
     26            Reviewed by Brent Fulgham.
     27
     28            Limit graphics related IOKit method filtering based on OS version. This patch also adds an entitlement which
     29            will enable a replacement for the disabled filtering.
     30
     31            * Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb.in:
     32            * Scripts/process-entitlements.sh:
     33
    1342021-11-16  Russell Epstein  <repstein@apple.com>
    235
  • branches/safari-613.1.9-branch/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb.in

    r285894 r285903  
    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
  • branches/safari-613.1.9-branch/Source/WebKit/Scripts/process-entitlements.sh

    r285774 r285903  
    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.