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

Changeset 259753 in webkit


Ignore:
Timestamp:
Apr 8, 2020, 1:15:58 PM (6 years ago)
Author:
pvollan@apple.com
Message:

[macOS] Crash under WebKit::SandboxExtension::consume
https://bugs.webkit.org/show_bug.cgi?id=210188

Reviewed by Geoffrey Garen.

Source/WebKit:

When issuing a mach lookup extension to the database mapping service in the UI process fails, the WebContent
process will crash when trying to consume the extension.

No new tests, since I am not able to reproduce the issue.

  • UIProcess/Cocoa/WebProcessPoolCocoa.mm:

(WebKit::WebProcessPool::platformInitializeWebProcess):

  • WebProcess/com.apple.WebProcess.sb.in:

LayoutTests:

  • fast/sandbox/mac/sandbox-mach-lookup-expected.txt:
  • fast/sandbox/mac/sandbox-mach-lookup.html:
Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r259749 r259753  
     12020-04-08  Per Arne Vollan  <pvollan@apple.com>
     2
     3        [macOS] Crash under WebKit::SandboxExtension::consume
     4        https://bugs.webkit.org/show_bug.cgi?id=210188
     5
     6        Reviewed by Geoffrey Garen.
     7
     8        * fast/sandbox/mac/sandbox-mach-lookup-expected.txt:
     9        * fast/sandbox/mac/sandbox-mach-lookup.html:
     10
    1112020-04-08  Jacob Uphoff  <jacob_uphoff@apple.com>
    212
  • trunk/LayoutTests/fast/sandbox/mac/sandbox-mach-lookup-expected.txt

    r259366 r259753  
    99PASS internals.hasSandboxMachLookupAccessToGlobalName("com.apple.WebKit.WebContent", "com.apple.nesessionmanager.content-filter") is false
    1010PASS internals.hasSandboxMachLookupAccessToGlobalName("com.apple.WebKit.WebContent", "com.apple.system.logger") is false
    11 PASS internals.hasSandboxMachLookupAccessToGlobalName("com.apple.WebKit.WebContent", "com.apple.lsd.mapdb") is false
    1211
  • trunk/LayoutTests/fast/sandbox/mac/sandbox-mach-lookup.html

    r259366 r259753  
    1212    shouldBeFalse("internals.hasSandboxMachLookupAccessToGlobalName(\"com.apple.WebKit.WebContent\", \"com.apple.nesessionmanager.content-filter\")");
    1313    shouldBeFalse("internals.hasSandboxMachLookupAccessToGlobalName(\"com.apple.WebKit.WebContent\", \"com.apple.system.logger\")");
    14     shouldBeFalse("internals.hasSandboxMachLookupAccessToGlobalName(\"com.apple.WebKit.WebContent\", \"com.apple.lsd.mapdb\")");
    1514}
    1615</script>
  • trunk/Source/WebKit/ChangeLog

    r259752 r259753  
     12020-04-08  Per Arne Vollan  <pvollan@apple.com>
     2
     3        [macOS] Crash under WebKit::SandboxExtension::consume
     4        https://bugs.webkit.org/show_bug.cgi?id=210188
     5
     6        Reviewed by Geoffrey Garen.
     7
     8        When issuing a mach lookup extension to the database mapping service in the UI process fails, the WebContent
     9        process will crash when trying to consume the extension.
     10
     11        No new tests, since I am not able to reproduce the issue.
     12
     13        * UIProcess/Cocoa/WebProcessPoolCocoa.mm:
     14        (WebKit::WebProcessPool::platformInitializeWebProcess):
     15        * WebProcess/com.apple.WebProcess.sb.in:
     16
    1172020-04-08  Rob Buis  <rbuis@igalia.com>
    218
  • trunk/Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm

    r259700 r259753  
    412412
    413413    SandboxExtension::Handle mapDBHandle;
    414     SandboxExtension::createHandleForMachLookup("com.apple.lsd.mapdb", WTF::nullopt, mapDBHandle, SandboxExtension::Flags::NoReport);
    415     parameters.mapDBExtensionHandle = WTFMove(mapDBHandle);
     414    if (SandboxExtension::createHandleForMachLookup("com.apple.lsd.mapdb", WTF::nullopt, mapDBHandle, SandboxExtension::Flags::NoReport))
     415        parameters.mapDBExtensionHandle = WTFMove(mapDBHandle);
    416416#endif
    417417   
  • trunk/Source/WebKit/WebProcess/com.apple.WebProcess.sb.in

    r259573 r259753  
    688688)
    689689
    690 (deny mach-lookup
    691690#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101600
    692     (with telemetry-backtrace)
     691(deny mach-lookup (with telemetry-backtrace)
     692#else
     693(allow mach-lookup
    693694#endif
    694695    (global-name "com.apple.lsd.mapdb")
Note: See TracChangeset for help on using the changeset viewer.