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

Changeset 294824 in webkit


Ignore:
Timestamp:
May 25, 2022, 2:38:32 PM (4 years ago)
Author:
pvollan@apple.com
Message:

[iOS] WebContent captive portal XPC service needs entitlement to set sandbox state variables
​https://bugs.webkit.org/show_bug.cgi?id=240921

Reviewed by Geoffrey Garen.

This patch also adds a function for the shared WebContent entitlements on iOS.

  • Source/WebKit/Scripts/process-entitlements.sh:

Canonical link: ​https://commits.webkit.org/250976@main

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/Scripts/process-entitlements.sh

    r294460 r294824  
    308308# ========================================
    309309
    310 function ios_family_process_webcontent_entitlements()
     310function ios_family_process_webcontent_shared_entitlements()
    311311{
    312312    plistbuddy Add :com.apple.QuartzCore.secure-mode bool YES
    … …  
    323323    plistbuddy Add :com.apple.private.network.socket-delegate bool YES
    324324    plistbuddy Add :com.apple.private.pac.exception bool YES
    325     plistbuddy Add :com.apple.private.verified-jit bool YES
    326325    plistbuddy Add :com.apple.private.security.message-filter bool YES
    327326    plistbuddy Add :com.apple.private.security.mutable-state-flags array
    … …  
    331330    plistbuddy Add :com.apple.private.webkit.use-xpc-endpoint bool YES
    332331    plistbuddy Add :com.apple.runningboard.assertions.webkit bool YES
    333     plistbuddy Add :dynamic-codesigning bool YES
    334 
    335332    plistbuddy Add :com.apple.tcc.delegated-services array
    336333    plistbuddy Add :com.apple.tcc.delegated-services:0 string kTCCServiceCamera
    337334    plistbuddy Add :com.apple.tcc.delegated-services:1 string kTCCServiceMicrophone
    338 
    339335    plistbuddy Add :com.apple.private.sandbox.profile string com.apple.WebKit.WebContent
    340336}
    341337
     338function ios_family_process_webcontent_entitlements()
     339{
     340    plistbuddy Add :com.apple.private.verified-jit bool YES
     341    plistbuddy Add :dynamic-codesigning bool YES
     342
     343    ios_family_process_webcontent_shared_entitlements
     344}
     345
    342346function ios_family_process_webcontent_captiveportal_entitlements()
    343347{
    344     plistbuddy Add :com.apple.QuartzCore.secure-mode bool YES
    345     plistbuddy Add :com.apple.QuartzCore.webkit-end-points bool YES
    346     plistbuddy add :com.apple.QuartzCore.webkit-limited-types bool YES
    347     plistbuddy Add :com.apple.developer.coremedia.allow-alternate-video-decoder-selection bool YES
    348348    plistbuddy Add :com.apple.developer.kernel.extended-virtual-addressing bool YES
    349     plistbuddy Add :com.apple.mediaremote.set-playback-state bool YES
    350     plistbuddy Add :com.apple.pac.shared_region_id string WebContent
    351     plistbuddy Add :com.apple.private.allow-explicit-graphics-priority bool YES
    352     plistbuddy Add :com.apple.private.coremedia.extensions.audiorecording.allow bool YES
    353     plistbuddy Add :com.apple.private.coremedia.pidinheritance.allow bool YES
    354     plistbuddy Add :com.apple.private.gpu-restricted bool YES
    355     plistbuddy Add :com.apple.private.memorystatus bool YES
    356     plistbuddy Add :com.apple.private.network.socket-delegate bool YES
    357     plistbuddy Add :com.apple.private.pac.exception bool YES
    358     plistbuddy Add :com.apple.private.security.message-filter bool YES
    359     plistbuddy Add :com.apple.private.webinspector.allow-remote-inspection bool YES
    360     plistbuddy Add :com.apple.private.webinspector.proxy-application bool YES
    361     plistbuddy Add :com.apple.private.webkit.use-xpc-endpoint bool YES
    362     plistbuddy Add :com.apple.runningboard.assertions.webkit bool YES
    363349
    364350    plistbuddy Add :com.apple.imageio.allowabletypes array
    … …  
    368354    plistbuddy Add :com.apple.imageio.allowabletypes:3 string com.compuserve.gif
    369355
    370     plistbuddy Add :com.apple.tcc.delegated-services array
    371     plistbuddy Add :com.apple.tcc.delegated-services:0 string kTCCServiceCamera
    372     plistbuddy Add :com.apple.tcc.delegated-services:1 string kTCCServiceMicrophone
    373 
    374     plistbuddy Add :com.apple.private.sandbox.profile string com.apple.WebKit.WebContent
     356    ios_family_process_webcontent_shared_entitlements
    375357}
    376358
Note: See TracChangeset for help on using the changeset viewer.