Include the error if we fail to initialize the web process sandbox
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 13 Apr 2012 18:49:39 +0000 (18:49 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 13 Apr 2012 18:49:39 +0000 (18:49 +0000)
https://bugs.webkit.org/show_bug.cgi?id=83927

Reviewed by Alexey Proskuryakov.

* WebProcess/mac/WebProcessMac.mm:
(WebKit::initializeSandbox):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@114152 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit2/ChangeLog
Source/WebKit2/WebProcess/mac/WebProcessMac.mm

index 9347eb8..16d0174 100644 (file)
@@ -1,3 +1,13 @@
+2012-04-13  Anders Carlsson  <andersca@apple.com>
+
+        Include the error if we fail to initialize the web process sandbox
+        https://bugs.webkit.org/show_bug.cgi?id=83927
+
+        Reviewed by Alexey Proskuryakov.
+
+        * WebProcess/mac/WebProcessMac.mm:
+        (WebKit::initializeSandbox):
+
 2012-04-13  Brady Eidson  <beidson@apple.com>
 
         <rdar://problem/11176921> and https://bugs.webkit.org/show_bug.cgi?id=83600
index 396e895..c5f939f 100644 (file)
@@ -215,7 +215,7 @@ static void initializeSandbox(const WebProcessCreationParameters& parameters)
 
     char* errorBuf;
     if (sandbox_init_with_parameters(profilePath, SANDBOX_NAMED_EXTERNAL, sandboxParameters.data(), &errorBuf)) {
-        WTFLogAlways("WebProcess: couldn't initialize sandbox profile [%s]\n", profilePath);
+        WTFLogAlways("WebProcess: couldn't initialize sandbox profile [%s] error '%s'\n", profilePath, errorBuf);
         for (size_t i = 0; sandboxParameters[i]; i += 2)
             WTFLogAlways("%s=%s\n", sandboxParameters[i], sandboxParameters[i + 1]);
         exit(EX_NOPERM);