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

Changeset 277218 in webkit


Ignore:
Timestamp:
May 7, 2021, 6:04:02 PM (5 years ago)
Author:
Brent Fulgham
Message:

[iOS] [GPU] Silence warning about com.apple.audio.AudioComponentRegistrar in the WebContent process
​https://bugs.webkit.org/show_bug.cgi?id=225547
<rdar://problem/77334436>

Reviewed by Per Arne Vollan.

We block access to various media things (like 'com.apple.audio.AudioComponentRegistrar') when the GPU Process is being used.
Some AudioToolbox code continues to try to connect even though we are not activating relevant parts of the audio subsystem.
AudioToolbox doesn't care about this blocked connection when running in this mode, but they have not had a chance to modify
the framework to avoid attempting to connect.

To avoid spurious logging and telemetry, silence the sandbox violation when the GPU Process is active.

  • Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb:
Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r277217 r277218  
     12021-05-07  Brent Fulgham  <bfulgham@apple.com>
     2
     3        [iOS] [GPU] Silence warning about com.apple.audio.AudioComponentRegistrar in the WebContent process
     4        https://bugs.webkit.org/show_bug.cgi?id=225547
     5        <rdar://problem/77334436>
     6
     7        Reviewed by Per Arne Vollan.
     8
     9        We block access to various media things (like 'com.apple.audio.AudioComponentRegistrar') when the GPU Process is being used.
     10        Some AudioToolbox code continues to try to connect even though we are not activating relevant parts of the audio subsystem.
     11        AudioToolbox doesn't care about this blocked connection when running in this mode, but they have not had a chance to modify
     12        the framework to avoid attempting to connect.
     13
     14        To avoid spurious logging and telemetry, silence the sandbox violation when the GPU Process is active.
     15
     16        * Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb:
     17
    1182021-05-07  Brent Fulgham  <bfulgham@apple.com>
    219
  • trunk/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb

    r277052 r277218  
    11421142            ;;; FIXME(207716): End services to remove.
    11431143)))
     1144
     1145;; Silence warnings about these connections if we have decided not to extend access to them:
     1146(deny mach-lookup (with no-report)
     1147    (require-all
     1148        (require-not (extension "com.apple.webkit.extension.mach"))
     1149        (global-name
     1150            "com.apple.audio.AudioComponentRegistrar"
     1151        )
     1152    )
     1153)
    11441154
    11451155(allow mach-lookup
Note: See TracChangeset for help on using the changeset viewer.