Changeset 229093 in webkit
- Timestamp:
- Feb 28, 2018 9:17:12 AM (6 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r229081 r229093 1 2018-02-28 Brent Fulgham <bfulgham@apple.com> 2 3 Remove network access from the WebContent process sandbox 4 https://bugs.webkit.org/show_bug.cgi?id=183192 5 <rdar://problem/35369115> 6 7 Reviewed by Alex Christensen. 8 9 Remove the 'system-network', 'allow-network-common', and 'network-client' access from the WebContent process. 10 That's why we have a Network Process! 11 12 * Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb: 13 * WebProcess/com.apple.WebProcess.sb.in: 14 1 15 2018-02-27 Tim Horton <timothy_horton@apple.com> 2 16 -
trunk/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb
r228419 r229093 230 230 (home-literal "/Library/Caches/com.apple.DictionaryServices")) 231 231 232 (allow-network-common)233 234 232 ; <rdar://problem/8548856> Sub-TLF: Sandbox change for apps for read-only access to the dictionary directory/data 235 233 (allow file-read* … … 383 381 (awd-log-directory "com.apple.WebKit.WebContent") 384 382 385 (network-client (remote tcp) (remote udp))386 387 383 ;; Allow ManagedPreference access 388 384 (allow file-read* (literal "/private/var/Managed Preferences/mobile/com.apple.webcontentfilter.plist")) -
trunk/Source/WebKit/WebProcess/com.apple.WebProcess.sb.in
r228964 r229093 1 ; Copyright (C) 2010-201 7Apple Inc. All rights reserved.1 ; Copyright (C) 2010-2018 Apple Inc. All rights reserved. 2 2 ; 3 3 ; Redistribution and use in source and binary forms, with or without … … 79 79 (literal "/dev/dtracehelper")) 80 80 81 #if __MAC_OS_X_VERSION_MIN_REQUIRED < 101300 81 82 (allow network-outbound 82 83 (literal "/private/var/run/asl_input") 83 84 (literal "/private/var/run/syslog")) 84 85 #endif 85 86 86 87 ;;; Allow creation of core dumps. … … 140 141 (iokit-property "ggcs") 141 142 (iokit-property "bgcs"))))) 142 143 144 ;;; (system-network) - Allow access to the network.145 (define (system-network)146 (allow file-read*147 (literal "/Library/Preferences/com.apple.networkd.plist"))148 (allow mach-lookup149 (global-name "com.apple.SystemConfiguration.PPPController")150 (global-name "com.apple.SystemConfiguration.SCNetworkReachability")151 (global-name "com.apple.nehelper")152 (global-name "com.apple.networkd")153 (global-name "com.apple.nsurlstorage-cache")154 (global-name "com.apple.symptomsd")155 (global-name "com.apple.usymptomsd"))156 (allow network-outbound157 (control-name "com.apple.netsrc")158 (control-name "com.apple.network.statistics"))159 (allow system-socket160 (require-all (socket-domain AF_SYSTEM)161 (socket-protocol 2)) ; SYSPROTO_CONTROL162 (socket-domain AF_ROUTE)))163 143 164 144 ;;; … … 646 626 647 627 ;; Networking 628 #if __MAC_OS_X_VERSION_MIN_REQUIRED < 101300 648 629 (system-network) 649 630 (allow network-outbound … … 651 632 (literal "/private/var/run/mDNSResponder") 652 633 (remote tcp)) 634 #endif 653 635 654 636 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300 … … 663 645 (global-name "com.apple.system.logger") 664 646 (global-name "com.apple.system.notification_center")) 647 #if __MAC_OS_X_VERSION_MIN_REQUIRED < 101300 665 648 (allow network-outbound 666 649 (remote udp)) 650 #endif 667 651 (allow user-preference-read 668 652 (preference-domain
Note: See TracChangeset
for help on using the changeset viewer.