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

Changeset 286009 in webkit


Ignore:
Timestamp:
Nov 18, 2021, 9:45:08 AM (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.8-branch/Source/WebKit
Files:
3 edited

Legend:

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

    r286008 r286009  
     12021-11-18  Alan Coon  <alancoon@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-18  Alan Coon  <alancoon@apple.com>
    235
  • branches/safari-613.1.8-branch/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb.in

    r286007 r286009  
    263263                )
    264264                (allow iokit-async-external-method
    265 #if PLATFORM(IOS)
     265#if PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED < 160000
    266266                    (iokit-method-number
    267267                        43
     
    271271                )
    272272                (allow iokit-external-method
    273 #if PLATFORM(IOS)
     273#if PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED < 160000
    274274                    (iokit-method-number
    275275                        0
  • branches/safari-613.1.8-branch/Source/WebKit/Scripts/process-entitlements.sh

    r284077 r286009  
    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
     
    5963        then
    6064            plistbuddy Add :com.apple.security.cs.jit-write-allowlist bool YES
     65        fi
     66
     67        if (( "${TARGET_MAC_OS_X_VERSION_MAJOR}" >= 130000 ))
     68        then
     69            plistbuddy Add :com.apple.private.gpu-restricted bool YES
    6170        fi
    6271
     
    280289    plistbuddy Add :com.apple.private.coremedia.extensions.audiorecording.allow bool YES
    281290    plistbuddy Add :com.apple.private.coremedia.pidinheritance.allow bool YES
     291    plistbuddy Add :com.apple.private.gpu-restricted bool YES
    282292    plistbuddy Add :com.apple.private.memorystatus bool YES
    283293    plistbuddy Add :com.apple.private.network.socket-delegate bool YES
     
    308318    plistbuddy Add :com.apple.private.allow-explicit-graphics-priority bool YES
    309319    plistbuddy Add :com.apple.private.coremedia.extensions.audiorecording.allow bool YES
     320    plistbuddy Add :com.apple.private.gpu-restricted bool YES
    310321    plistbuddy Add :com.apple.private.mediaexperience.startrecordinginthebackground.allow bool YES
    311322    plistbuddy Add :com.apple.private.coremedia.pidinheritance.allow bool YES
Note: See TracChangeset for help on using the changeset viewer.