Changeset 291806 in webkit


Ignore:
Timestamp:
Mar 24, 2022 11:15:40 AM (2 years ago)
Author:
pvollan@apple.com
Message:

[macOS] Remove reports for some sandbox violations on process launch
https://bugs.webkit.org/show_bug.cgi?id=238324

Reviewed by Geoffrey Garen.

Remove reports for some sandbox violations on process launch on macOS. These violations are not critical,
and are slowing down process launch. This patch also adds access to a mach syscall observed being in use.

  • NetworkProcess/mac/com.apple.WebKit.NetworkProcess.sb.in:
  • WebProcess/com.apple.WebProcess.sb.in:
Location:
trunk/Source/WebKit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r291800 r291806  
     12022-03-24  Per Arne Vollan  <pvollan@apple.com>
     2
     3        [macOS] Remove reports for some sandbox violations on process launch
     4        https://bugs.webkit.org/show_bug.cgi?id=238324
     5
     6        Reviewed by Geoffrey Garen.
     7
     8        Remove reports for some sandbox violations on process launch on macOS. These violations are not critical,
     9        and are slowing down process launch. This patch also adds access to a mach syscall observed being in use.
     10
     11        * NetworkProcess/mac/com.apple.WebKit.NetworkProcess.sb.in:
     12        * WebProcess/com.apple.WebProcess.sb.in:
     13
    1142022-03-24  Chris Dumez  <cdumez@apple.com>
    215
  • trunk/Source/WebKit/NetworkProcess/mac/com.apple.WebKit.NetworkProcess.sb.in

    r291563 r291806  
    307307(allow mach-lookup (global-name "org.webkit.webpushtestdaemon.service"))
    308308
     309(deny mach-lookup (with no-log)
     310    (global-name "com.apple.DiskArbitration.diskarbitrationd"))
    309311(with-filter (uid 0)
    310312    (allow mach-lookup
    311         (global-name "com.apple.DiskArbitration.diskarbitrationd")
    312     )
    313 )
     313        (global-name "com.apple.DiskArbitration.diskarbitrationd")))
    314314
    315315(deny mach-lookup
     
    450450(allow mach-lookup
    451451    (global-name "com.apple.tccd"))
     452
     453(deny mach-lookup (with no-log)
     454    (global-name "com.apple.tccd.system")
     455    (global-name "com.apple.CoreServices.coreservicesd")
     456    (global-name-prefix "com.apple.distributed_notifications"))
    452457
    453458;; <rdar://89031731>
     
    605610            MSC__kernelrpc_mach_port_guard_trap
    606611            MSC__kernelrpc_mach_port_insert_member_trap
     612            MSC__kernelrpc_mach_port_insert_right_trap
    607613            MSC__kernelrpc_mach_port_mod_refs_trap
    608614            MSC__kernelrpc_mach_port_request_notification_trap
  • trunk/Source/WebKit/WebProcess/com.apple.WebProcess.sb.in

    r291630 r291806  
    962962#if __MAC_OS_X_VERSION_MIN_REQUIRED <= 110000
    963963(allow mach-lookup
    964     (xpc-service-name "com.apple.audio.SandboxHelper")
    965 )
     964    (xpc-service-name "com.apple.audio.SandboxHelper"))
     965#else
     966(deny mach-lookup (with no-log)
     967    (xpc-service-name "com.apple.audio.SandboxHelper"))
    966968#endif
    967969
     
    13911393#if __MAC_OS_X_VERSION_MIN_REQUIRED < 120000
    13921394(allow mach-lookup
    1393     (global-name "com.apple.tccd.system")
    1394 )
     1395    (global-name "com.apple.tccd.system"))
     1396#else
     1397(deny mach-lookup (with no-log)
     1398    (global-name "com.apple.tccd.system"))
    13951399#endif
    13961400
     
    15111515
    15121516#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 120000
    1513 (deny mach-lookup
    1514     (global-name-prefix "com.apple.distributed_notifications")
    1515 )
     1517(deny mach-lookup (with no-log)
     1518    (global-name-prefix "com.apple.distributed_notifications"))
    15161519#else
    15171520(allow mach-lookup
    1518     (global-name-prefix "com.apple.distributed_notifications")
    1519 )
     1521    (global-name-prefix "com.apple.distributed_notifications"))
    15201522#endif
    15211523
     
    17891791        (require-not (extension "com.apple.webkit.extension.mach"))
    17901792        (global-name "com.apple.audio.AudioComponentRegistrar")))
     1793#else
     1794(deny mach-lookup (with no-log)
     1795    (global-name "com.apple.audio.AudioComponentRegistrar"))
    17911796#endif
    17921797
Note: See TracChangeset for help on using the changeset viewer.