Changeset 294814 in webkit


Ignore:
Timestamp:
May 25, 2022 11:55:19 AM (2 years ago)
Author:
pvollan@apple.com
Message:

[iOS] Remove obsolete graphics message filters
https://bugs.webkit.org/show_bug.cgi?id=240736
<rdar://93527356>

Reviewed by Geoffrey Garen.

Remove obsolete graphics filters in the WebContent process' sandbox on iOS, since this filtering is
now done in other parts of the system.

  • Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb.in:

Canonical link: https://commits.webkit.org/250967@main

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb.in

    r294397 r294814  
    221221        (require-all
    222222            (extension "com.apple.webkit.extension.iokit")
    223             (iokit-connection "IOGPU")
    224         )
    225         (when (defined? 'iokit-external-method)
    226             (apply-message-filter
    227                 (deny (with telemetry)
    228                     iokit-external-trap)
    229                 (allow (with telemetry) (with message "IOGPU")
    230                     iokit-async-external-method
    231                     iokit-external-method)
    232             )
    233         )
    234     )
     223            (iokit-connection "IOGPU")))
    235224
    236225    (allow iokit-open
    237226        (require-all
    238227            (extension "com.apple.webkit.extension.iokit")
    239             (iokit-user-client-class "AGXDeviceUserClient") ;; Used by WebGL
    240         )
    241         (when (defined? 'iokit-external-method)
    242             (apply-message-filter
    243                 (deny (with telemetry)
    244                     iokit-external-trap)
    245                 (deny (with telemetry) (with message "AGXDeviceUserClient")
    246                     iokit-async-external-method
    247                     iokit-external-method
    248                 )
    249                 (allow iokit-async-external-method)
    250                 (allow iokit-external-method)
    251             )
    252         )
    253     )
     228            (iokit-user-client-class "AGXDeviceUserClient"))) ;; Used by WebGL
    254229
    255230    (allow iokit-get-properties
     
    366341        (home-subpath "/Library/VoiceServices/Assets")
    367342        (home-subpath "/Library/Assets/com_apple_MobileAsset_VoiceServicesVocalizerVoice"))
    368 )
    369 
    370 (define (IOSurfaceRootUserClientMethodFilter)
    371     (when (defined? 'iokit-external-method)
    372         (apply-message-filter
    373             (deny (with telemetry)
    374                 iokit-async-external-method
    375                 iokit-external-trap)
    376             (allow iokit-async-external-method)
    377             (deny (with telemetry) (with message "IOSurfaceRootUserClient")
    378                 iokit-external-method)
    379             (allow iokit-external-method)
    380         )
    381     )
    382343)
    383344
     
    430391        (require-all
    431392            (extension "com.apple.webkit.extension.iokit")
    432             (iokit-user-client-class "IOSurfaceRootUserClient") ;; Needed by Tiled Grid code.
    433         )
    434         (IOSurfaceRootUserClientMethodFilter)
    435     )
     393            (iokit-user-client-class "IOSurfaceRootUserClient"))) ;; Needed by Tiled Grid code.
    436394
    437395    ;; Silence sandbox violations from apps trying to create the empty plist if it doesn't exist.
     
    977935    (require-all
    978936        (require-not (extension "com.apple.webkit.extension.iokit"))
    979         (iokit-user-client-class
    980             "IOSurfaceRootUserClient"
    981         )
    982     )
    983     (IOSurfaceRootUserClientMethodFilter)
    984 )
     937        (iokit-user-client-class "IOSurfaceRootUserClient")))
    985938
    986939(deny iokit-open (with telemetry)
Note: See TracChangeset for help on using the changeset viewer.