summarylogtreecommitdiffstats
path: root/chromium-unset-madv_free.patch
diff options
context:
space:
mode:
authorJonas Heinrich2017-11-28 22:19:37 +0100
committerJonas Heinrich2017-11-28 22:19:37 +0100
commitbe249aa85007b8d48a4eab7dfe38e2404f70034c (patch)
tree56dc099158b510b348ec5f734434eea8a2f74f90 /chromium-unset-madv_free.patch
downloadaur-electron-wayland.tar.gz
first commit
Diffstat (limited to 'chromium-unset-madv_free.patch')
-rw-r--r--chromium-unset-madv_free.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/chromium-unset-madv_free.patch b/chromium-unset-madv_free.patch
new file mode 100644
index 000000000000..33f5a30420be
--- /dev/null
+++ b/chromium-unset-madv_free.patch
@@ -0,0 +1,14 @@
+--- a/third_party/WebKit/Source/wtf/allocator/PageAllocator.cpp
++++ b/third_party/WebKit/Source/wtf/allocator/PageAllocator.cpp
+@@ -41,6 +41,11 @@
+ #include <errno.h>
+ #include <sys/mman.h>
+
++#if OS(LINUX) && defined(MADV_FREE)
++// Added in Linux 4.5, but it breaks the sandbox.
++#undef MADV_FREE
++#endif
++
+ #ifndef MADV_FREE
+ #define MADV_FREE MADV_DONTNEED
+ #endif