Changeset 258894 in webkit
- Timestamp:
- Mar 23, 2020 6:31:38 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r258892 r258894 1 2020-03-23 Commit Queue <commit-queue@webkit.org> 2 3 Unreviewed, reverting r258891. 4 https://bugs.webkit.org/show_bug.cgi?id=209459 5 6 Introduced layout test failures (Requested by perarne on 7 #webkit). 8 9 Reverted changeset: 10 11 "[Cocoa] Deny access to database mapping service" 12 https://bugs.webkit.org/show_bug.cgi?id=209339 13 https://trac.webkit.org/changeset/258891 14 1 15 2020-03-23 David Kilzer <ddkilzer@apple.com> 2 16 -
trunk/LayoutTests/fast/sandbox/ios/sandbox-mach-lookup-expected.txt
r258891 r258894 26 26 PASS internals.hasSandboxMachLookupAccessToGlobalName("com.apple.WebKit.WebContent", "com.apple.mobileassetd.v2") is false 27 27 PASS internals.hasSandboxMachLookupAccessToGlobalName("com.apple.WebKit.WebContent", "com.apple.iconservices") is false 28 PASS internals.hasSandboxMachLookupAccessToGlobalName("com.apple.WebKit.WebContent", "com.apple.lsd.mapdb") is false -
trunk/LayoutTests/fast/sandbox/ios/sandbox-mach-lookup.html
r258891 r258894 29 29 shouldBeFalse("internals.hasSandboxMachLookupAccessToGlobalName(\"com.apple.WebKit.WebContent\", \"com.apple.mobileassetd.v2\")"); 30 30 shouldBeFalse("internals.hasSandboxMachLookupAccessToGlobalName(\"com.apple.WebKit.WebContent\", \"com.apple.iconservices\")"); 31 shouldBeFalse("internals.hasSandboxMachLookupAccessToGlobalName(\"com.apple.WebKit.WebContent\", \"com.apple.lsd.mapdb\")");32 31 } 33 32 </script> -
trunk/Source/WTF/ChangeLog
r258891 r258894 1 2020-03-23 Commit Queue <commit-queue@webkit.org> 2 3 Unreviewed, reverting r258891. 4 https://bugs.webkit.org/show_bug.cgi?id=209459 5 6 Introduced layout test failures (Requested by perarne on 7 #webkit). 8 9 Reverted changeset: 10 11 "[Cocoa] Deny access to database mapping service" 12 https://bugs.webkit.org/show_bug.cgi?id=209339 13 https://trac.webkit.org/changeset/258891 14 1 15 2020-03-23 Per Arne Vollan <pvollan@apple.com> 2 16 -
trunk/Source/WTF/wtf/PlatformUse.h
r258891 r258894 322 322 #endif 323 323 324 #define USE_UTTYPE_SWIZZLER 0 324 #if PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 140000 325 #define USE_UTTYPE_SWIZZLER 1 326 #endif -
trunk/Source/WebKit/ChangeLog
r258891 r258894 1 2020-03-23 Commit Queue <commit-queue@webkit.org> 2 3 Unreviewed, reverting r258891. 4 https://bugs.webkit.org/show_bug.cgi?id=209459 5 6 Introduced layout test failures (Requested by perarne on 7 #webkit). 8 9 Reverted changeset: 10 11 "[Cocoa] Deny access to database mapping service" 12 https://bugs.webkit.org/show_bug.cgi?id=209339 13 https://trac.webkit.org/changeset/258891 14 1 15 2020-03-23 Per Arne Vollan <pvollan@apple.com> 2 16 -
trunk/Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb
r258891 r258894 538 538 ) 539 539 540 (deny mach-lookup (with telemetry -backtrace)540 (deny mach-lookup (with telemetry) 541 541 (global-name "com.apple.distributed_notifications@1v3")) 542 542 … … 544 544 (ipc-posix-name-prefix "apple.cfprefs.")) 545 545 546 ( denymach-lookup (with telemetry-backtrace)546 (allow mach-lookup (with telemetry-backtrace) 547 547 (global-name "com.apple.lsd.mapdb")) 548 548 -
trunk/Source/WebKit/Shared/WebProcessCreationParameters.cpp
r258891 r258894 170 170 encoder << neHelperExtensionHandle; 171 171 encoder << neSessionManagerExtensionHandle; 172 encoder << mapDBExtensionHandle;173 172 encoder << systemHasBattery; 174 173 encoder << mimeTypesMap; … … 458 457 parameters.neSessionManagerExtensionHandle = WTFMove(*neSessionManagerExtensionHandle); 459 458 460 Optional<Optional<SandboxExtension::Handle>> mapDBExtensionHandle;461 decoder >> mapDBExtensionHandle;462 if (!mapDBExtensionHandle)463 return false;464 parameters.mapDBExtensionHandle = WTFMove(*mapDBExtensionHandle);465 466 459 Optional<bool> systemHasBattery; 467 460 decoder >> systemHasBattery; -
trunk/Source/WebKit/Shared/WebProcessCreationParameters.h
r258891 r258894 214 214 Optional<SandboxExtension::Handle> neHelperExtensionHandle; 215 215 Optional<SandboxExtension::Handle> neSessionManagerExtensionHandle; 216 Optional<SandboxExtension::Handle> mapDBExtensionHandle;217 216 bool systemHasBattery { false }; 218 217 Optional<HashMap<String, Vector<String>, ASCIICaseInsensitiveHash>> mimeTypesMap; -
trunk/Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm
r258891 r258894 381 381 static const char* services[] = { 382 382 "com.apple.lsd.open", 383 "com.apple.lsd.mapdb", 383 384 "com.apple.mobileassetd", 384 385 "com.apple.iconservices", … … 415 416 parameters.mimeTypesMap = commonMimeTypesMap(); 416 417 parameters.mapUTIFromMIMEType = createUTIFromMIMETypeMap(); 417 418 SandboxExtension::Handle mapDBHandle;419 SandboxExtension::createHandleForMachLookup("com.apple.lsd.mapdb", WTF::nullopt, mapDBHandle, SandboxExtension::Flags::NoReport);420 parameters.mapDBExtensionHandle = WTFMove(mapDBHandle);421 418 #endif 422 419 -
trunk/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm
r258891 r258894 105 105 #import "UserInterfaceIdiom.h" 106 106 #import "WKAccessibilityWebPageObjectIOS.h" 107 #import <MobileCoreServices/MobileCoreServices.h>108 107 #import <UIKit/UIAccessibility.h> 109 108 #import <WebCore/UTTypeRecordSwizzler.h> … … 276 275 SandboxExtension::consumePermanently(*parameters.neSessionManagerExtensionHandle); 277 276 NetworkExtensionContentFilter::setHasConsumedSandboxExtensions(parameters.neHelperExtensionHandle.hasValue() && parameters.neSessionManagerExtensionHandle.hasValue()); 278 279 if (parameters.mapDBExtensionHandle) {280 auto extension = SandboxExtension::create(WTFMove(*parameters.mapDBExtensionHandle));281 bool ok = extension->consume();282 ASSERT_UNUSED(ok, ok);283 // Perform API calls which will communicate with the database mapping service, and map the database.284 auto uti = adoptCF(UTTypeCreatePreferredIdentifierForTag(kUTTagClassMIMEType, CFSTR("text/html"), 0));285 auto mimeType = adoptCF(UTTypeCopyPreferredTagWithClass(CFSTR("public.png"), kUTTagClassMIMEType));286 ok = extension->revoke();287 ASSERT_UNUSED(ok, ok);288 }289 290 277 setSystemHasBattery(parameters.systemHasBattery); 291 278 -
trunk/Source/WebKit/WebProcess/com.apple.WebProcess.sb.in
r258891 r258894 680 680 (global-name "com.apple.cfprefsd.daemon") 681 681 (global-name "com.apple.coreservices.launchservicesd") 682 (global-name "com.apple.lsd.mapdb") 682 683 (global-name "com.apple.trustd.agent") 683 684 ) … … 887 888 "com.apple.cfprefsd.daemon" 888 889 "com.apple.tccd" 889 "com.apple.lsd.mapdb"890 890 891 891 ;;; FIXME(207716): The following should be removed when the GPU process is complete
Note: See TracChangeset
for help on using the changeset viewer.