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

Changeset 283323 in webkit


Ignore:
Timestamp:
Sep 30, 2021, 12:53:27 PM (5 years ago)
Author:
pvollan@apple.com
Message:

[macOS] Reduce sandbox telemetry
https://bugs.webkit.org/show_bug.cgi?id=231026
<rdar://83694937>

Reviewed by Brent Fulgham.

Remove sandbox telemetry for resources that we already see are in use.

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

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r283320 r283323  
     12021-09-30  Per Arne  <pvollan@apple.com>
     2
     3        [macOS] Reduce sandbox telemetry
     4        https://bugs.webkit.org/show_bug.cgi?id=231026
     5        <rdar://83694937>
     6
     7        Reviewed by Brent Fulgham.
     8
     9        Remove sandbox telemetry for resources that we already see are in use.
     10
     11        * GPUProcess/mac/com.apple.WebKit.GPUProcess.sb.in:
     12        * NetworkProcess/mac/com.apple.WebKit.NetworkProcess.sb.in:
     13
    1142021-09-30  Eddy Wong  <eddy_wong@apple.com>
    215
  • trunk/Source/WebKit/GPUProcess/mac/com.apple.WebKit.GPUProcess.sb.in

    r283187 r283323  
    2626(deny nvram*)
    2727(deny system-privilege)
    28 (allow system-audit file-read-metadata (with telemetry))
     28(allow system-audit file-read-metadata)
    2929
    3030;; Silence spurious logging due to rdar://20117923 and rdar://72366475
     
    4242
    4343;;; Allow read access to standard system paths.
     44(allow file-read*
     45    (require-all
     46        (file-mode #o0004)
     47        (subpath "/System")))
     48
    4449(allow file-read* (with telemetry)
    4550    (require-all (file-mode #o0004)
     
    4752    (subpath "/Library/Apple/System")
    4853    (subpath "/Library/Preferences/Logging")      ; Logging Rethink
    49     (subpath "/System")
    5054    (subpath "/private/var/db/dyld")
    5155    (subpath "/private/var/db/timezone")
     
    6973)
    7074
     75(allow file-read-metadata
     76    (literal "/var"))
    7177(allow file-read-metadata (with telemetry)
    7278    (literal "/etc")
    7379    (literal "/tmp")
    74     (literal "/var")
    7580    (literal "/private/etc/localtime"))
    7681
     
    9095
    9196(allow file-read*
    92        file-write-data
     97    (literal "/dev/dtracehelper"))
     98(allow file-write-data
    9399       file-ioctl (with telemetry)
    94100    (literal "/dev/dtracehelper"))
     
    512518    (if path
    513519        (begin
    514             (allow file-read* (with telemetry) (subpath path))
     520            (allow file-read* (subpath path))
    515521            (allow file-issue-extension (require-all (extension-class "com.apple.app-sandbox.read") (subpath path))))))
    516522
     
    662668    (ipc-posix-name-regex #"^AudioIO"))
    663669
     670(allow mach-lookup
     671    (global-name "com.apple.audio.AudioComponentRegistrar"))
     672
     673#if !ENABLE(CFPREFS_DIRECT_MODE)
    664674(allow mach-lookup (with telemetry)
    665     (global-name "com.apple.audio.AudioComponentRegistrar")
    666 #if !ENABLE(CFPREFS_DIRECT_MODE)
    667675    (global-name "com.apple.cfprefsd.agent")
    668 #endif
    669 )
     676)
     677#endif
    670678
    671679(with-filter (system-attribute apple-internal)
     
    681689
    682690;; Various services required by AppKit and other frameworks
     691(allow mach-lookup
     692       (global-name "com.apple.audio.audiohald")
     693#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101400 || PLATFORM(MACCATALYST)
     694       (global-name "com.apple.CARenderServer") ; Needed for [CAContext remoteContextWithOptions]
     695#else
     696       (global-name "com.apple.windowserver.active")
     697#endif
     698       (global-name "com.apple.lsd.mapdb")
     699       (global-name "com.apple.fonts")
     700       (global-name "com.apple.PowerManagement.control")
     701       (global-name "com.apple.trustd.agent")
     702       (global-name "com.apple.logd.events"))
     703
    683704(allow mach-lookup (with telemetry)
    684705#if __MAC_OS_X_VERSION_MIN_REQUIRED < 101400
    685706       (global-name "com.apple.FontObjectsServer")
    686707#endif
    687        (global-name "com.apple.PowerManagement.control")
    688708       (global-name "com.apple.SystemConfiguration.configd")
    689709       (global-name "com.apple.assertiond.processassertionconnection")
    690710       (global-name "com.apple.audio.toolbox.reporting.service")
    691711       (global-name "com.apple.audio.SystemSoundServer-OSX")
    692        (global-name "com.apple.audio.audiohald")
    693712#if !ENABLE(CFPREFS_DIRECT_MODE)
    694713       (global-name "com.apple.cfprefsd.daemon")
    695714#endif
    696715       (global-name "com.apple.coreservices.launchservicesd")
    697        (global-name "com.apple.fonts")
    698716       (global-name "com.apple.mediaremoted.xpc")
    699717       (global-name "com.apple.logd")
    700        (global-name "com.apple.logd.events")
    701        (global-name "com.apple.lsd.mapdb")
    702718       (global-name "com.apple.lskdd") ;; <rdar://problem/49123855>
    703719       (global-name "com.apple.tccd")
    704720       (global-name "com.apple.tccd.system")
    705        (global-name "com.apple.trustd.agent")
    706 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101400 || PLATFORM(MACCATALYST)
    707        (global-name "com.apple.CARenderServer") ; Needed for [CAContext remoteContextWithOptions]
    708 #else
    709        (global-name "com.apple.windowserver.active")
    710 #endif
    711721)
    712722
     
    779789#if PLATFORM(MAC)
    780790;; FIXME should be removed when <rdar://problem/9347205> + related radar in Safari is fixed
     791(allow mach-lookup
     792       (global-name "com.apple.system.logger"))
    781793(allow mach-lookup (with telemetry)
    782        (global-name "com.apple.system.logger")
    783794       (global-name "com.apple.system.notification_center"))
    784795#endif
     
    818829
    819830;; AirPlay
     831(allow mach-lookup
     832    (global-name "com.apple.coremedia.routingcontext.xpc"))
    820833(allow mach-lookup (with telemetry)
    821834    (global-name "com.apple.coremedia.endpoint.xpc")
     
    826839    (global-name "com.apple.coremedia.endpointremotecontrolsession.xpc")
    827840    (global-name "com.apple.coremedia.routediscoverer.xpc")
    828     (global-name "com.apple.coremedia.routingcontext.xpc")
    829841    (global-name "com.apple.coremedia.volumecontroller.xpc")
    830842)
  • trunk/Source/WebKit/NetworkProcess/mac/com.apple.WebKit.NetworkProcess.sb.in

    r283253 r283323  
    6363)
    6464
     65(allow file-read-metadata
     66       (literal "/var"))
    6567(allow file-read-metadata (with telemetry)
    6668       (literal "/etc")
    6769       (literal "/tmp")
    68        (literal "/var")
    6970       (literal "/private/etc/localtime"))
    7071
    7172(allow file-read-metadata (with telemetry) (path-ancestors "/System/Volumes/Data/private"))
    7273
    73 (allow file-read* (with telemetry) (literal "/"))
     74(allow file-read* (literal "/"))
     75
     76(allow file-read*
     77       (subpath "/System"))
    7478
    7579(allow file-read* (with telemetry)
     
    7781       (subpath "/Library/Filesystems/NetFSPlugins")
    7882       (subpath "/Library/Preferences/Logging")      ; Logging Rethink
    79        (subpath "/System")
    8083       (subpath "/private/var/db/dyld")
    8184       (subpath "/private/var/db/timezone")
Note: See TracChangeset for help on using the changeset viewer.