aboutsummaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-content_common_sandbox__linux_sandbox__debug__handling__linux.cc
blob: c9de08759266557bf093ecdc1128e24a12e2e7e4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- content/common/sandbox_linux/sandbox_debug_handling_linux.cc.orig	2016-03-25 13:04:48 UTC
+++ content/common/sandbox_linux/sandbox_debug_handling_linux.cc
@@ -7,7 +7,9 @@
 #include <errno.h>
 #include <signal.h>
 #include <stddef.h>
+#if 0 // no OS_FREEBSD here?
 #include <sys/prctl.h>
+#endif
 #include <unistd.h>
 
 #include "base/command_line.h"
@@ -69,12 +71,16 @@ bool SandboxDebugHandling::SetDumpableSt
     return true;
   }
 
+#if 0 // no OS_FREEBSD here?
   if (prctl(PR_SET_DUMPABLE, 0) != 0) {
     PLOG(ERROR) << "Failed to set non-dumpable flag";
     return false;
   }
 
   return prctl(PR_GET_DUMPABLE) == 0;
+#else
+  return false;
+#endif
 }
 
 }  // namespace content