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

Changeset 100033 in webkit


Ignore:
Timestamp:
Nov 11, 2011, 3:06:35 PM (15 years ago)
Author:
ap@apple.com
Message:

WebProcess should use AppSandbox style quarantine
https://bugs.webkit.org/show_bug.cgi?id=72168
<rdar://problem/10434292>

Reviewed by Darin Adler.

  • WebProcess/mac/WebProcessMac.mm: (WebKit::initializeSandbox): Just enable it.
Location:
trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r100018 r100033  
     12011-11-11  Alexey Proskuryakov  <ap@apple.com>
     2
     3        WebProcess should use AppSandbox style quarantine
     4        https://bugs.webkit.org/show_bug.cgi?id=72168
     5        <rdar://problem/10434292>
     6
     7        Reviewed by Darin Adler.
     8
     9        * WebProcess/mac/WebProcessMac.mm: (WebKit::initializeSandbox): Just enable it.
     10
    1112011-11-11  Darin Adler  <darin@apple.com>
    212
  • trunk/Source/WebKit2/WebProcess/mac/WebProcessMac.mm

    r99483 r100033  
    212212    for (size_t i = 0; sandboxParameters[i]; i += 2)
    213213        fastFree(const_cast<char*>(sandboxParameters[i + 1]));
     214
     215    // This will override LSFileQuarantineEnabled from Info.plist unless sandbox quarantine is globally disabled.
     216    OSStatus error = WKEnableSandboxStyleFileQuarantine();
     217    if (error) {
     218        fprintf(stderr, "WebProcess: couldn't enable sandbox style file quarantine: %d\n", error);
     219        exit(EX_NOPERM);
     220    }
    214221#endif
    215222}
  • trunk/WebKitLibraries/ChangeLog

    r99118 r100033  
     12011-11-11  Alexey Proskuryakov  <ap@apple.com>
     2
     3        WebProcess should use AppSandbox style quarantine
     4        https://bugs.webkit.org/show_bug.cgi?id=72168
     5        <rdar://problem/10434292>
     6
     7        Reviewed by Darin Adler.
     8
     9        * WebKitSystemInterface.h:
     10        * libWebKitSystemInterfaceLion.a:
     11        Added WKEnableSandboxStyleFileQuarantine().
     12
     13        * libWebKitSystemInterfaceLeopard.a:
     14        * libWebKitSystemInterfaceSnowLeopard.a:
     15        Not sure why these also changed, but updating to match most recent build.
     16
    1172011-11-02  Dean Jackson  <dino@apple.com>
    218
  • trunk/WebKitLibraries/WebKitSystemInterface.h

    r98256 r100033  
    430430WKSandboxExtensionRef WKSandboxExtensionCreateFromSerializedFormat(const char* serializationFormat, size_t length);
    431431
     432OSStatus WKEnableSandboxStyleFileQuarantine(void);
     433
    432434int WKRecommendedScrollerStyle(void);
    433435
Note: See TracChangeset for help on using the changeset viewer.