Changeset 256004 in webkit
- Timestamp:
- Feb 6, 2020 7:27:21 PM (4 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r256002 r256004 1 2020-02-06 Brent Fulgham <bfulgham@apple.com> 2 3 Build entitlements into GPU Process 4 https://bugs.webkit.org/show_bug.cgi?id=207367 5 <rdar://problem/59208411> 6 7 Reviewed by Geoffrey Garen. 8 9 When the new GPU process was added, we did not update the build system to add 10 necessary entitlements, or to encode the sandbox name for process startup. 11 This patch corrects these issues. 12 13 * Scripts/process-entitlements.sh: 14 1 15 2020-02-06 Yusuke Suzuki <ysuzuki@apple.com> 2 16 -
trunk/Source/WebKit/Scripts/process-entitlements.sh
r255189 r256004 20 20 21 21 mac_process_webcontent_or_plugin_entitlements 22 } 23 24 function mac_process_gpu_entitlements() 25 { 26 if [[ "${WK_USE_RESTRICTED_ENTITLEMENTS}" == YES ]] 27 then 28 if (( "${TARGET_MAC_OS_X_VERSION_MAJOR}" >= 101400 )) 29 then 30 plistbuddy Add :com.apple.tcc.delegated-services array 31 plistbuddy Add :com.apple.tcc.delegated-services:1 string kTCCServiceMicrophone 32 plistbuddy Add :com.apple.tcc.delegated-services:0 string kTCCServiceCamera 33 fi 34 35 plistbuddy Add :com.apple.rootless.storage.WebKitGPUSandbox bool YES 36 fi 22 37 } 23 38 … … 76 91 { 77 92 plistbuddy Add :com.apple.security.cs.allow-jit bool YES 93 } 94 95 function maccatalyst_process_gpu_entitlements() 96 { 97 plistbuddy Add :com.apple.security.network.client bool YES 78 98 } 79 99 … … 120 140 } 121 141 142 function ios_family_process_gpu_entitlements() 143 { 144 plistbuddy Add :com.apple.QuartzCore.secure-mode bool YES 145 plistbuddy Add :com.apple.QuartzCore.webkit-end-points bool YES 146 plistbuddy Add :com.apple.mediaremote.set-playback-state bool YES 147 plistbuddy Add :com.apple.private.allow-explicit-graphics-priority bool YES 148 plistbuddy Add :com.apple.private.coremedia.extensions.audiorecording.allow bool YES 149 plistbuddy Add :com.apple.private.coremedia.pidinheritance.allow bool YES 150 plistbuddy Add :com.apple.private.memorystatus bool YES 151 plistbuddy Add :com.apple.private.network.socket-delegate bool YES 152 153 plistbuddy Add :com.apple.tcc.delegated-services array 154 plistbuddy Add :com.apple.tcc.delegated-services:0 string kTCCServiceCamera 155 plistbuddy Add :com.apple.tcc.delegated-services:1 string kTCCServiceMicrophone 156 157 plistbuddy Add :seatbelt-profiles array 158 plistbuddy Add :seatbelt-profiles:0 string com.apple.WebKit.GPU 159 } 160 122 161 function ios_family_process_network_entitlements() 123 162 { … … 157 196 elif [[ "${PRODUCT_NAME}" == com.apple.WebKit.Networking ]]; then mac_process_network_entitlements 158 197 elif [[ "${PRODUCT_NAME}" == com.apple.WebKit.Plugin.64 ]]; then mac_process_plugin_entitlements 198 elif [[ "${PRODUCT_NAME}" == com.apple.WebKit.GPU ]]; then mac_process_gpu_entitlements 159 199 else echo "Unsupported/unknown product: ${PRODUCT_NAME}" 160 200 fi … … 167 207 elif [[ "${PRODUCT_NAME}" == com.apple.WebKit.Networking ]]; then maccatalyst_process_network_entitlements 168 208 elif [[ "${PRODUCT_NAME}" == com.apple.WebKit.Plugin.64 ]]; then maccatalyst_process_plugin_entitlements 209 elif [[ "${PRODUCT_NAME}" == com.apple.WebKit.GPU ]]; then maccatalyst_process_gpu_entitlements 169 210 else echo "Unsupported/unknown product: ${PRODUCT_NAME}" 170 211 fi … … 177 218 elif [[ "${PRODUCT_NAME}" == com.apple.WebKit.Networking ]]; then ios_family_process_network_entitlements 178 219 elif [[ "${PRODUCT_NAME}" == com.apple.WebKit.Plugin.64 ]]; then ios_family_process_plugin_entitlements 220 elif [[ "${PRODUCT_NAME}" == com.apple.WebKit.GPU ]]; then ios_family_process_gpu_entitlements 179 221 else echo "Unsupported/unknown product: ${PRODUCT_NAME}" 180 222 fi
Note: See TracChangeset
for help on using the changeset viewer.