Changeset 245822 in webkit
- Timestamp:
- May 28, 2019, 12:29:25 PM (7 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 4 edited
-
ChangeLog (modified) (1 diff)
-
NetworkProcess/mac/com.apple.WebKit.NetworkProcess.sb.in (modified) (3 diffs)
-
PluginProcess/mac/com.apple.WebKit.plugin-common.sb.in (modified) (4 diffs)
-
WebProcess/com.apple.WebProcess.sb.in (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r245817 r245822 1 2019-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 1 14 2019-05-28 Brent Fulgham <bfulgham@apple.com> 2 15 -
trunk/Source/WebKit/NetworkProcess/mac/com.apple.WebKit.NetworkProcess.sb.in
r245817 r245822 44 44 (deny iokit-get-properties) 45 45 46 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300 || PLATFORM(IOSMAC)47 46 (deny mach-lookup (xpc-service-name-prefix "")) 48 #endif49 47 50 48 ;; Utility functions for home directory relative path filters … … 58 56 (literal (string-append (param "HOME_DIR") home-relative-literal))) 59 57 60 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300 || PLATFORM(IOSMAC)61 58 ;; CFNetwork 62 59 (allow file-read-data (path "/private/var/db/nsurlstoraged/dafsaData.bin")) 63 #endif64 60 65 61 ;; Remove when <rdar://problem/29646094> is fixed. … … 153 149 (global-name "com.apple.PowerManagement.control") 154 150 (global-name "com.apple.SystemConfiguration.configd") 155 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300 || PLATFORM(IOSMAC)156 151 (global-name "com.apple.analyticsd") 157 #endif158 152 (global-name "com.apple.cookied") 159 153 (global-name "com.apple.cfnetwork.AuthBrokerAgent") -
trunk/Source/WebKit/PluginProcess/mac/com.apple.WebKit.plugin-common.sb.in
r241143 r245822 152 152 ) 153 153 154 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300155 154 (deny mach-lookup (xpc-service-name-prefix "")) 156 155 (allow mach-lookup … … 166 165 (xpc-service-name "com.apple.print.normalizerd") 167 166 ) 168 #endif169 167 170 168 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101400 … … 343 341 (home-literal "/Library/Preferences/com.apple.lookup.shared.plist")) 344 342 345 #if __MAC_OS_X_VERSION_MIN_REQUIRED < 101300346 ;; 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-data349 (subpath "/Library/Keychains"))350 351 ;; Do permit creating per-user keychains352 (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 #endif360 361 343 ;; Security framework 362 344 (allow mach-lookup (global-name "com.apple.ocspd")) … … 391 373 (global-name "com.apple.SystemConfiguration.configd") 392 374 (global-name "com.apple.UNCUserNotification") 393 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300394 375 (global-name "com.apple.analyticsd") 395 #endif396 376 (global-name "com.apple.audio.audiohald") 397 377 (global-name "com.apple.audio.coreaudiod") -
trunk/Source/WebKit/WebProcess/com.apple.WebProcess.sb.in
r245817 r245822 26 26 (allow system-audit file-read-metadata) 27 27 28 #if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED < 10130029 (import "system.sb")30 #else31 28 ;;; 32 29 ;;; The following rules were originally contained in 'system.sb'. We are duplicating them here so we can … … 89 86 (literal "/dev/dtracehelper")) 90 87 91 #if __MAC_OS_X_VERSION_MIN_REQUIRED < 10130092 (allow network-outbound93 (literal "/private/var/run/asl_input")94 (literal "/private/var/run/syslog"))95 #endif96 97 88 ;;; Allow creation of core dumps. 98 89 (allow file-write-create 99 90 (require-all (prefix "/cores/") 100 91 (vnode-type REGULAR-FILE))) 101 102 92 103 93 ;;; Allow IPC to standard system agents. … … 156 146 ;;; End rules originally copied from 'system.sb' 157 147 ;;; 158 #endif159 148 160 149 ;;; process-info* defaults to allow; deny it and then allow operations we actually need. … … 400 389 ) 401 390 402 #if !PLATFORM(MAC) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300403 391 (deny mach-lookup (xpc-service-name-prefix "")) 404 392 (allow mach-lookup … … 412 400 (xpc-service-name "com.apple.print.normalizerd") 413 401 ) 414 #endif415 402 416 403 ;; Utility functions for home directory relative path filters … … 609 596 (global-name "com.apple.PowerManagement.control") 610 597 (global-name "com.apple.SystemConfiguration.configd") 611 #if !PLATFORM(MAC) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300612 598 (global-name "com.apple.analyticsd") 613 599 (global-name "com.apple.audio.AudioComponentRegistrar") 614 #endif615 600 (global-name "com.apple.assertiond.processassertionconnection") 616 601 (global-name "com.apple.audio.SystemSoundServer-OSX") … … 688 673 689 674 ;; Networking 690 #if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED < 101300691 (system-network)692 #endif693 675 (allow network-outbound 694 676 ;; Local mDNSResponder for DNS, arbitrary outbound TCP … … 700 682 (remote tcp)) 701 683 702 #if !PLATFORM(MAC) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300703 684 ;; CFNetwork 704 685 (allow file-read-data (path "/private/var/db/nsurlstoraged/dafsaData.bin")) 705 #endif706 686 707 687 ;; Network Extensions / VPN helper. … … 715 695 (global-name "com.apple.system.logger") 716 696 (global-name "com.apple.system.notification_center")) 717 #if __MAC_OS_X_VERSION_MIN_REQUIRED < 101300718 (allow network-outbound719 (remote udp))720 #endif721 697 #endif 722 698 … … 761 737 ; <rdar://problem/35509194> 762 738 (global-name "com.apple.coremedia.endpointremotecontrolsession.xpc") 763 #if !PLATFORM(MAC) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300764 739 (global-name "com.apple.coremedia.routediscoverer.xpc") 765 740 (global-name "com.apple.coremedia.routingcontext.xpc") 766 741 (global-name "com.apple.coremedia.volumecontroller.xpc") 767 #endif768 742 ) 769 743
Note:
See TracChangeset
for help on using the changeset viewer.