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

Changeset 245822 in webkit


Ignore:
Timestamp:
May 28, 2019, 12:29:25 PM (7 years ago)
Author:
Brent Fulgham
Message:

Remove dead code from sandboxes
https://bugs.webkit.org/show_bug.cgi?id=198300

Reviewed by Alexey Proskuryakov.

SSIA.

  • 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/WebKit
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r245817 r245822  
     12019-05-28  Brent Fulgham  <bfulgham@apple.com>
     2
     3        Remove dead code from sandboxes
     4        https://bugs.webkit.org/show_bug.cgi?id=198300
     5
     6        Reviewed by Alexey Proskuryakov.
     7
     8        SSIA.
     9
     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
    1142019-05-28  Brent Fulgham  <bfulgham@apple.com>
    215
  • trunk/Source/WebKit/NetworkProcess/mac/com.apple.WebKit.NetworkProcess.sb.in

    r245817 r245822  
    4444(deny iokit-get-properties)
    4545
    46 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300 || PLATFORM(IOSMAC)
    4746(deny mach-lookup (xpc-service-name-prefix ""))
    48 #endif
    4947
    5048;; Utility functions for home directory relative path filters
     
    5856    (literal (string-append (param "HOME_DIR") home-relative-literal)))
    5957
    60 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300 || PLATFORM(IOSMAC)
    6158;; CFNetwork
    6259(allow file-read-data (path "/private/var/db/nsurlstoraged/dafsaData.bin"))
    63 #endif
    6460
    6561;; Remove when <rdar://problem/29646094> is fixed.
     
    153149    (global-name "com.apple.PowerManagement.control")
    154150    (global-name "com.apple.SystemConfiguration.configd")
    155 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300 || PLATFORM(IOSMAC)
    156151    (global-name "com.apple.analyticsd")
    157 #endif
    158152    (global-name "com.apple.cookied")
    159153    (global-name "com.apple.cfnetwork.AuthBrokerAgent")
  • trunk/Source/WebKit/PluginProcess/mac/com.apple.WebKit.plugin-common.sb.in

    r241143 r245822  
    152152)
    153153
    154 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300
    155154(deny mach-lookup (xpc-service-name-prefix ""))
    156155(allow mach-lookup
     
    166165    (xpc-service-name "com.apple.print.normalizerd")
    167166)
    168 #endif
    169167
    170168#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101400
     
    343341    (home-literal "/Library/Preferences/com.apple.lookup.shared.plist"))
    344342
    345 #if __MAC_OS_X_VERSION_MIN_REQUIRED < 101300
    346 ;; FIXME: This should be removed when <rdar://problem/10479685> is fixed.
    347 ;; Restrict AppSandboxed processes from creating /Library/Keychains, but allow access to the contents of /Library/Keychains:
    348 (allow file-read-data file-read-metadata file-write-data
    349     (subpath "/Library/Keychains"))
    350 
    351 ;; Do permit creating per-user keychains
    352 (allow file-read* file-write*
    353     (home-library-subpath "/Keychains"))
    354 
    355 ;; Except deny access to new-style iOS Keychain folders which are UUIDs.
    356 (deny file-read* file-write*
    357     (regex (string-append "/Library/Keychains/" (uuid-regex-string) "(/|$)"))
    358     (home-library-regex (string-append "/Keychains/" (uuid-regex-string) "(/|$)")))
    359 #endif
    360 
    361343;; Security framework
    362344(allow mach-lookup (global-name "com.apple.ocspd"))
     
    391373    (global-name "com.apple.SystemConfiguration.configd")
    392374    (global-name "com.apple.UNCUserNotification")
    393 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300
    394375    (global-name "com.apple.analyticsd")
    395 #endif
    396376    (global-name "com.apple.audio.audiohald")
    397377    (global-name "com.apple.audio.coreaudiod")
  • trunk/Source/WebKit/WebProcess/com.apple.WebProcess.sb.in

    r245817 r245822  
    2626(allow system-audit file-read-metadata)
    2727
    28 #if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED < 101300
    29 (import "system.sb")
    30 #else
    3128;;;
    3229;;; The following rules were originally contained in 'system.sb'. We are duplicating them here so we can
     
    8986    (literal "/dev/dtracehelper"))
    9087
    91 #if __MAC_OS_X_VERSION_MIN_REQUIRED < 101300
    92 (allow network-outbound
    93     (literal "/private/var/run/asl_input")
    94     (literal "/private/var/run/syslog"))
    95 #endif
    96 
    9788;;; Allow creation of core dumps.
    9889(allow file-write-create
    9990    (require-all (prefix "/cores/")
    10091        (vnode-type REGULAR-FILE)))
    101 
    10292
    10393;;; Allow IPC to standard system agents.
     
    156146;;; End rules originally copied from 'system.sb'
    157147;;;
    158 #endif
    159148
    160149;;; process-info* defaults to allow; deny it and then allow operations we actually need.
     
    400389)
    401390
    402 #if !PLATFORM(MAC) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300
    403391(deny mach-lookup (xpc-service-name-prefix ""))
    404392(allow mach-lookup
     
    412400    (xpc-service-name "com.apple.print.normalizerd")
    413401)
    414 #endif
    415402
    416403;; Utility functions for home directory relative path filters
     
    609596       (global-name "com.apple.PowerManagement.control")
    610597       (global-name "com.apple.SystemConfiguration.configd")
    611 #if !PLATFORM(MAC) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300
    612598       (global-name "com.apple.analyticsd")
    613599       (global-name "com.apple.audio.AudioComponentRegistrar")
    614 #endif
    615600       (global-name "com.apple.assertiond.processassertionconnection")
    616601       (global-name "com.apple.audio.SystemSoundServer-OSX")
     
    688673
    689674;; Networking
    690 #if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED < 101300
    691 (system-network)
    692 #endif
    693675(allow network-outbound
    694676       ;; Local mDNSResponder for DNS, arbitrary outbound TCP
     
    700682       (remote tcp))
    701683
    702 #if !PLATFORM(MAC) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300
    703684;; CFNetwork
    704685(allow file-read-data (path "/private/var/db/nsurlstoraged/dafsaData.bin"))
    705 #endif
    706686
    707687;; Network Extensions / VPN helper.
     
    715695       (global-name "com.apple.system.logger")
    716696       (global-name "com.apple.system.notification_center"))
    717 #if __MAC_OS_X_VERSION_MIN_REQUIRED < 101300
    718 (allow network-outbound
    719        (remote udp))
    720 #endif
    721697#endif
    722698
     
    761737    ; <rdar://problem/35509194>
    762738    (global-name "com.apple.coremedia.endpointremotecontrolsession.xpc")
    763 #if !PLATFORM(MAC) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300
    764739    (global-name "com.apple.coremedia.routediscoverer.xpc")
    765740    (global-name "com.apple.coremedia.routingcontext.xpc")
    766741    (global-name "com.apple.coremedia.volumecontroller.xpc")
    767 #endif
    768742)
    769743
Note: See TracChangeset for help on using the changeset viewer.