Changeset 216941 in webkit


Ignore:
Timestamp:
May 16, 2017 12:09:05 PM (7 years ago)
Author:
Brent Fulgham
Message:

[WK2][macOS] Adopt a whitelist for XPC services
https://bugs.webkit.org/show_bug.cgi?id=172151
<rdar://problem/31916325>

Reviewed by Alex Christensen.

  • DatabaseProcess/mac/com.apple.WebKit.Databases.sb.in:
  • NetworkProcess/mac/com.apple.WebKit.NetworkProcess.sb.in:
  • PluginProcess/mac/com.apple.WebKit.plugin-common.sb.in:
  • WebProcess/com.apple.WebProcess.sb.in:
Location:
trunk/Source/WebKit2
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r216935 r216941  
     12017-05-16  Brent Fulgham  <bfulgham@apple.com>
     2
     3        [WK2][macOS] Adopt a whitelist for XPC services
     4        https://bugs.webkit.org/show_bug.cgi?id=172151
     5        <rdar://problem/31916325>
     6
     7        Reviewed by Alex Christensen.
     8
     9        * DatabaseProcess/mac/com.apple.WebKit.Databases.sb.in:
     10        * NetworkProcess/mac/com.apple.WebKit.NetworkProcess.sb.in:
     11        * PluginProcess/mac/com.apple.WebKit.plugin-common.sb.in:
     12        * WebProcess/com.apple.WebProcess.sb.in:
     13
    1142017-05-16  Timothy Horton  <timothy_horton@apple.com>
    215
  • trunk/Source/WebKit2/DatabaseProcess/mac/com.apple.WebKit.Databases.sb.in

    r216779 r216941  
    4444
    4545(deny iokit-get-properties)
     46#endif
     47
     48#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300
     49(deny mach-lookup (xpc-service-name-prefix ""))
    4650#endif
    4751
     
    103107(allow system-fsctl (fsctl-command (_IO "h" 47)))
    104108
    105 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300
    106109;; Various services required by CFNetwork and other frameworks
    107110(allow mach-lookup
    108     (global-name "com.apple.analyticsd"))
     111#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300
     112    (global-name "com.apple.analyticsd")
    109113#endif
     114#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101100
     115    (global-name "com.apple.lsd.mapdb")
     116#endif
     117)
    110118
    111119;; Sandbox extensions
  • trunk/Source/WebKit2/NetworkProcess/mac/com.apple.WebKit.NetworkProcess.sb.in

    r216877 r216941  
    4646#endif
    4747
     48#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300
     49(deny mach-lookup (xpc-service-name-prefix ""))
     50#endif
     51
    4852;; Utility functions for home directory relative path filters
    4953(define (home-regex home-relative-regex)
     
    150154    (global-name "com.apple.cfnetwork.AuthBrokerAgent")
    151155#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101100
     156    (global-name "com.apple.lsd.mapdb")
    152157    (global-name "com.apple.nesessionmanager.flow-divert-token")
    153158#endif
  • trunk/Source/WebKit2/PluginProcess/mac/com.apple.WebKit.plugin-common.sb.in

    r216893 r216941  
    7575#endif
    7676
     77#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300
     78(deny mach-lookup (xpc-service-name-prefix ""))
     79#endif
     80
    7781;; Utility functions
    7882(define (home-literal home-relative-literal)
     
    308312    (global-name "com.apple.coreservices.launchservicesd")
    309313    (global-name "com.apple.fonts")
     314#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101100
     315    (global-name "com.apple.lsd.mapdb")
     316#endif
    310317    (global-name "com.apple.ocspd")
    311318    (global-name "com.apple.pasteboard.1")
  • trunk/Source/WebKit2/WebProcess/com.apple.WebProcess.sb.in

    r216779 r216941  
    130130#endif
    131131
     132#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300
     133(deny mach-lookup (xpc-service-name-prefix ""))
     134(allow mach-lookup
     135    (xpc-service-name "com.apple.accessibility.mediaaccessibilityd")
     136    (xpc-service-name "com.apple.audio.SandboxHelper")
     137    (xpc-service-name "com.apple.coremedia.videodecoder")
     138    (xpc-service-name-regex #"\.apple-extension-service$")
     139)
     140#endif
     141
    132142;; Utility functions for home directory relative path filters
    133143(define (home-regex home-relative-regex)
     
    341351#endif
    342352#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101100
     353       (global-name "com.apple.lsd.mapdb")
    343354       (global-name "com.apple.nesessionmanager.flow-divert-token")
    344355#endif
Note: See TracChangeset for help on using the changeset viewer.