Changeset 276658 in webkit
- Timestamp:
- Apr 27, 2021, 1:37:56 PM (4 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r276653 r276658 1 2021-04-27 Per Arne <pvollan@apple.com> 2 3 Enforce IOKit filtering 4 https://bugs.webkit.org/show_bug.cgi?id=223937 5 <rdar://problem/76271551> 6 7 Reviewed by Brent Fulgham. 8 9 Enforce IOKit method filtering based on telemetry. This patch also adds IOKit method telemetry for some Apple Silicion 10 IOKit classes, which were overlooked in the first telemetry phase. 11 12 * Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb: 13 * WebProcess/com.apple.WebProcess.sb.in: 14 1 15 2021-04-27 Chris Dumez <cdumez@apple.com> 2 16 -
trunk/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb
r276590 r276658 259 259 (deny (with telemetry) 260 260 iokit-external-trap) 261 ( allow(with telemetry) (with message "AGXDeviceUserClient")261 (deny (with telemetry) (with message "AGXDeviceUserClient") 262 262 iokit-async-external-method 263 263 iokit-external-method … … 433 433 iokit-async-external-method 434 434 iokit-external-trap) 435 ( allow(with telemetry) (with message "IOSurfaceRootUserClient")435 (deny (with telemetry) (with message "IOSurfaceRootUserClient") 436 436 iokit-external-method) 437 437 (allow iokit-external-method … … 445 445 10 446 446 11 447 12 447 448 13 448 449 14 … … 496 497 iokit-async-external-method 497 498 iokit-external-trap) 498 ( allow(with telemetry) (with message "IOSurfaceAcceleratorClient")499 (deny (with telemetry) (with message "IOSurfaceAcceleratorClient") 499 500 iokit-external-method) 500 501 (allow iokit-external-method -
trunk/Source/WebKit/WebProcess/com.apple.WebProcess.sb.in
r276439 r276658 112 112 (define (IOAcceleratorMessageFilter) 113 113 (apply-message-filter 114 ( allow(with telemetry) (with message "IOAccelerator")114 (deny (with telemetry) (with message "IOAccelerator") 115 115 iokit-async-external-method 116 116 iokit-external-method … … 145 145 23 146 146 24 147 28 147 148 29 148 149 30 … … 158 159 261 159 160 262 161 263 162 265 160 163 267 161 164 512 … … 170 173 (define (IOSurfaceRootUserClientMessageFilter) 171 174 (apply-message-filter 172 ( allow(with telemetry) (with message "IOSurfaceRootUserClient")175 (deny (with telemetry) (with message "IOSurfaceRootUserClient") 173 176 iokit-async-external-method 174 177 iokit-external-method … … 199 202 34 200 203 35 204 36 205 38 201 206 44 202 207 ) … … 204 209 (deny (with telemetry) 205 210 iokit-external-trap 211 ) 212 ) 213 ) 214 215 (define (AppleAVDUserClientMessageFilter) 216 (if (equal? (param "ENABLE_SANDBOX_MESSAGE_FILTER") "YES") 217 (apply-message-filter 218 (allow (with telemetry) (with message "AppleAVDUserClient") 219 iokit-async-external-method 220 iokit-external-method 221 iokit-external-trap 222 ) 223 ) 224 ) 225 ) 226 227 (define (IOSurfaceAcceleratorClientMessageFilter) 228 (if (equal? (param "ENABLE_SANDBOX_MESSAGE_FILTER") "YES") 229 (apply-message-filter 230 (allow (with telemetry) (with message "IOSurfaceAcceleratorClient") 231 iokit-async-external-method 232 iokit-external-method 233 iokit-external-trap 234 ) 235 ) 236 ) 237 ) 238 239 (define (IOMobileFramebufferUserClientMessageFilter) 240 (if (equal? (param "ENABLE_SANDBOX_MESSAGE_FILTER") "YES") 241 (apply-message-filter 242 (allow (with telemetry) (with message "IOMobileFramebufferUserClient") 243 iokit-async-external-method 244 iokit-external-method 245 iokit-external-trap 246 ) 206 247 ) 207 248 ) … … 307 348 (with telemetry-backtrace) 308 349 (apply-message-filter 309 ( allow(with telemetry) (with message "AppleIntelMEUserClient")350 (deny (with telemetry) (with message "AppleIntelMEUserClient") 310 351 iokit-external-method 311 352 ) … … 339 380 (with telemetry-backtrace) 340 381 (apply-message-filter 341 ( allow(with telemetry) (with message "AppleSNBFBUserClient")382 (deny (with telemetry) (with message "AppleSNBFBUserClient") 342 383 iokit-external-method 343 384 ) … … 394 435 (with telemetry-backtrace) 395 436 (apply-message-filter 396 ( allow(with telemetry) (with message "AppleGraphicsControlClient")437 (deny (with telemetry) (with message "AppleGraphicsControlClient") 397 438 iokit-async-external-method 398 439 iokit-external-method … … 451 492 (with telemetry-backtrace) 452 493 (apply-message-filter 453 ( allow(with telemetry) (with message "AppleMGPUPowerControlClient")494 (deny (with telemetry) (with message "AppleMGPUPowerControlClient") 454 495 iokit-external-method 455 496 ) … … 1040 1081 (with telemetry-backtrace) 1041 1082 (apply-message-filter 1042 ( allow(with telemetry) (with message "AppleUpstreamUserClient")1083 (deny (with telemetry) (with message "AppleUpstreamUserClient") 1043 1084 iokit-external-method 1044 1085 ) … … 1075 1116 (with telemetry-backtrace) 1076 1117 (apply-message-filter 1077 ( allow(with telemetry) (with message "RootDomainUserClient")1118 (deny (with telemetry) (with message "RootDomainUserClient") 1078 1119 iokit-external-method 1079 1120 ) … … 1107 1148 (with telemetry-backtrace) 1108 1149 (apply-message-filter 1109 ( allow(with telemetry) (with message "AudioAUUC")1150 (deny (with telemetry) (with message "AudioAUUC") 1110 1151 iokit-external-method 1111 1152 ) … … 1192 1233 (iokit-user-client-class 1193 1234 "AppleAVDUserClient" 1235 ) 1236 ) 1237 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 120000 1238 (AppleAVDUserClientMessageFilter) 1239 #endif 1240 ) 1241 (allow iokit-open 1242 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 110000 1243 (with telemetry-backtrace) 1244 #endif 1245 (require-all 1246 (extension "com.apple.webkit.extension.iokit") 1247 (iokit-user-client-class 1194 1248 "IOMobileFramebufferUserClient" 1249 ) 1250 ) 1251 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 120000 1252 (IOMobileFramebufferUserClientMessageFilter) 1253 #endif 1254 ) 1255 (allow iokit-open 1256 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 110000 1257 (with telemetry-backtrace) 1258 #endif 1259 (require-all 1260 (extension "com.apple.webkit.extension.iokit") 1261 (iokit-user-client-class 1195 1262 "IOSurfaceAcceleratorClient" ;; <rdar://problem/63696732> 1196 1263 ) 1197 1264 ) 1265 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 120000 1266 (IOSurfaceAcceleratorClientMessageFilter) 1267 #endif 1198 1268 ) 1199 1269 ) … … 2104 2174 (iokit-user-client-class 2105 2175 "AppleAVDUserClient" 2176 ) 2177 ) 2178 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 120000 2179 (AppleAVDUserClientMessageFilter) 2180 #endif 2181 ) 2182 (allow iokit-open (with report) 2183 #if __MAC_OS_X_VERSION_MIN_REQUIRED > 110000 2184 (with telemetry-backtrace) 2185 #endif 2186 (require-all 2187 (require-not (extension "com.apple.webkit.extension.iokit")) 2188 (iokit-user-client-class 2106 2189 "IOSurfaceAcceleratorClient" 2107 2190 ) 2108 2191 ) 2192 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 120000 2193 (IOSurfaceAcceleratorClientMessageFilter) 2194 #endif 2109 2195 ) 2110 2196 )
Note:
See TracChangeset
for help on using the changeset viewer.