diff options
Diffstat (limited to 'community/chromium/unset-madv_free.patch')
-rw-r--r-- | community/chromium/unset-madv_free.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/community/chromium/unset-madv_free.patch b/community/chromium/unset-madv_free.patch new file mode 100644 index 0000000000..80e62e854c --- /dev/null +++ b/community/chromium/unset-madv_free.patch @@ -0,0 +1,16 @@ +https://bugzilla.redhat.com/show_bug.cgi?id=1361157 + +--- 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 |