Changeset 278966 in webkit
- Timestamp:
- Jun 16, 2021, 4:37:01 PM (4 years ago)
- Location:
- trunk/Source
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r278959 r278966 1 2021-06-16 Mark Lam <mark.lam@apple.com> 2 3 Adopt com.apple.security.cs.jit-write-allowlist on internal builds. 4 https://bugs.webkit.org/show_bug.cgi?id=222148 5 rdar://74284026 6 7 Reviewed by Per Arne Vollan. 8 9 This will prevent various pthread permissions switching APIs from working. 10 We only want to adopt this for internal builds where we use the fast permission 11 switching macro instead. We can't adopt it for open source builds, where we 12 still rely on the pthread API. 13 14 * Scripts/process-entitlements.sh: 15 1 16 2021-06-16 Robin Morisset <rmorisset@apple.com> 2 17 -
trunk/Source/JavaScriptCore/Scripts/process-entitlements.sh
r273034 r278966 15 15 if [[ "${WK_USE_RESTRICTED_ENTITLEMENTS}" == YES ]] 16 16 then 17 if (( "${TARGET_MAC_OS_X_VERSION_MAJOR}" >= 110000 )) 18 then 19 plistbuddy Add :com.apple.security.cs.jit-write-allowlist bool YES 20 fi 21 17 22 if (( "${TARGET_MAC_OS_X_VERSION_MAJOR}" >= 120000 )) 18 23 then … … 28 33 plistbuddy Add :com.apple.security.cs.allow-jit bool YES 29 34 plistbuddy Add :com.apple.rootless.storage.JavaScriptCore bool YES 35 36 if (( "${TARGET_MAC_OS_X_VERSION_MAJOR}" >= 110000 )) 37 then 38 plistbuddy Add :com.apple.security.cs.jit-write-allowlist bool YES 39 fi 40 30 41 if (( "${TARGET_MAC_OS_X_VERSION_MAJOR}" >= 120000 )) 31 42 then … … 42 53 { 43 54 plistbuddy Add :com.apple.security.cs.allow-jit bool YES 55 56 if [[ "${WK_USE_RESTRICTED_ENTITLEMENTS}" == YES ]] 57 then 58 if (( "${TARGET_MAC_OS_X_VERSION_MAJOR}" >= 110000 )) 59 then 60 plistbuddy Add :com.apple.security.cs.jit-write-allowlist bool YES 61 fi 62 fi 63 44 64 if (( "${TARGET_MAC_OS_X_VERSION_MAJOR}" >= 120000 )) 45 65 then … … 52 72 plistbuddy Add :com.apple.rootless.storage.JavaScriptCore bool YES 53 73 plistbuddy Add :com.apple.security.cs.allow-jit bool YES 74 75 if (( "${TARGET_MAC_OS_X_VERSION_MAJOR}" >= 110000 )) 76 then 77 plistbuddy Add :com.apple.security.cs.jit-write-allowlist bool YES 78 fi 79 54 80 if (( "${TARGET_MAC_OS_X_VERSION_MAJOR}" >= 120000 )) 55 81 then -
trunk/Source/WebKit/ChangeLog
r278957 r278966 1 2021-06-16 Mark Lam <mark.lam@apple.com> 2 3 Adopt com.apple.security.cs.jit-write-allowlist on internal builds. 4 https://bugs.webkit.org/show_bug.cgi?id=222148 5 rdar://74284026 6 7 Reviewed by Per Arne Vollan. 8 9 * Scripts/process-entitlements.sh: 10 1 11 2021-06-16 Wenson Hsieh <wenson_hsieh@apple.com> 2 12 -
trunk/Source/WebKit/Scripts/process-entitlements.sh
r277834 r278966 28 28 plistbuddy add :com.apple.QuartzCore.webkit-limited-types bool YES 29 29 fi 30 if (( "${TARGET_MAC_OS_X_VERSION_MAJOR}" >= 120000 ))31 then32 plistbuddy Add :com.apple.private.verified-jit bool YES33 fi34 30 fi 35 31 … … 47 43 plistbuddy Add :com.apple.tcc.delegated-services:0 string kTCCServiceCamera 48 44 fi 45 49 46 if (( "${TARGET_MAC_OS_X_VERSION_MAJOR}" >= 110000 )) 50 47 then … … 52 49 plistbuddy Add :com.apple.avfoundation.allow-system-wide-context bool YES 53 50 plistbuddy add :com.apple.QuartzCore.webkit-limited-types bool YES 51 fi 52 53 if (( "${TARGET_MAC_OS_X_VERSION_MAJOR}" >= 110000 )) 54 then 55 plistbuddy Add :com.apple.security.cs.jit-write-allowlist bool YES 54 56 fi 55 57 … … 78 80 plistbuddy Add :com.apple.mobileactivationd.bridge bool YES 79 81 plistbuddy Add :com.apple.private.security.bootpolicy bool YES 82 83 if (( "${TARGET_MAC_OS_X_VERSION_MAJOR}" >= 110000 )) 84 then 85 plistbuddy Add :com.apple.security.cs.jit-write-allowlist bool YES 86 fi 80 87 fi 81 88 } … … 94 101 plistbuddy Add :com.apple.private.tcc.manager.check-by-audit-token array 95 102 plistbuddy Add :com.apple.private.tcc.manager.check-by-audit-token:0 string kTCCServiceWebKitIntelligentTrackingPrevention 103 fi 104 105 if (( "${TARGET_MAC_OS_X_VERSION_MAJOR}" >= 110000 )) 106 then 107 plistbuddy Add :com.apple.security.cs.jit-write-allowlist bool YES 96 108 fi 97 109 … … 113 125 plistbuddy Add :com.apple.security.print bool YES 114 126 115 if [[ "${WK_USE_RESTRICTED_ENTITLEMENTS}" == YES ]]116 then117 if (( "${TARGET_MAC_OS_X_VERSION_MAJOR}" >= 120000 ))118 then119 plistbuddy Add :com.apple.private.verified-jit bool YES120 fi121 fi122 123 127 mac_process_webcontent_or_plugin_entitlements 124 128 } … … 135 139 fi 136 140 141 if (( "${TARGET_MAC_OS_X_VERSION_MAJOR}" >= 110000 )) 142 then 143 plistbuddy Add :com.apple.security.cs.jit-write-allowlist bool YES 144 fi 145 146 if (( "${TARGET_MAC_OS_X_VERSION_MAJOR}" >= 120000 )) 147 then 148 plistbuddy Add :com.apple.private.verified-jit bool YES 149 fi 150 137 151 if [[ "${WK_WEBCONTENT_SERVICE_NEEDS_XPC_DOMAIN_EXTENSION_ENTITLEMENT}" == YES ]] 138 152 then … … 157 171 plistbuddy Add :com.apple.private.webkit.use-xpc-endpoint bool YES 158 172 plistbuddy Add :com.apple.QuartzCore.webkit-end-points bool YES 173 159 174 if (( "${TARGET_MAC_OS_X_VERSION_MAJOR}" >= 110000 )) 160 175 then … … 165 180 plistbuddy add :com.apple.QuartzCore.webkit-limited-types bool YES 166 181 fi 182 183 if [[ "${WK_USE_RESTRICTED_ENTITLEMENTS}" == YES ]] 184 then 185 if (( "${TARGET_MAC_OS_X_VERSION_MAJOR}" >= 110000 )) 186 then 187 plistbuddy Add :com.apple.security.cs.jit-write-allowlist bool YES 188 fi 189 fi 190 167 191 if (( "${TARGET_MAC_OS_X_VERSION_MAJOR}" >= 120000 )) 168 192 then … … 178 202 plistbuddy Add :com.apple.private.memory.ownership_transfer bool YES 179 203 plistbuddy add :com.apple.QuartzCore.webkit-limited-types bool YES 204 205 if [[ "${WK_USE_RESTRICTED_ENTITLEMENTS}" == YES ]] 206 then 207 if (( "${TARGET_MAC_OS_X_VERSION_MAJOR}" >= 110000 )) 208 then 209 plistbuddy Add :com.apple.security.cs.jit-write-allowlist bool YES 210 fi 211 fi 180 212 } 181 213 … … 189 221 plistbuddy Add :com.apple.private.tcc.manager.check-by-audit-token array 190 222 plistbuddy Add :com.apple.private.tcc.manager.check-by-audit-token:0 string kTCCServiceWebKitIntelligentTrackingPrevention 223 224 if [[ "${WK_USE_RESTRICTED_ENTITLEMENTS}" == YES ]] 225 then 226 if (( "${TARGET_MAC_OS_X_VERSION_MAJOR}" >= 110000 )) 227 then 228 plistbuddy Add :com.apple.security.cs.jit-write-allowlist bool YES 229 fi 230 fi 191 231 } 192 232 … … 198 238 plistbuddy Add :com.apple.security.files.user-selected.read-write bool YES 199 239 plistbuddy Add :com.apple.security.print bool YES 240 241 if [[ "${WK_USE_RESTRICTED_ENTITLEMENTS}" == YES ]] 242 then 243 if (( "${TARGET_MAC_OS_X_VERSION_MAJOR}" >= 110000 )) 244 then 245 plistbuddy Add :com.apple.security.cs.jit-write-allowlist bool YES 246 fi 247 fi 248 200 249 if (( "${TARGET_MAC_OS_X_VERSION_MAJOR}" >= 120000 )) 201 250 then
Note:
See TracChangeset
for help on using the changeset viewer.