summaryrefslogtreecommitdiff
path: root/rb245262.patch
diff options
context:
space:
mode:
authorMartin Stransky <stransky@redhat.com>2018-05-25 15:54:43 +0200
committerMartin Stransky <stransky@redhat.com>2018-05-25 15:54:43 +0200
commitcaaf3e9d69be3c8613d6b44eaf77323318af49d3 (patch)
treefe390ff066a55e71892633d790bc766c704f2c74 /rb245262.patch
parentMerge branch 'master' into f27 (diff)
parent Added fix for mozbz#1462640 - Sandbox disables eglGetDisplay() call on Wayla... (diff)
downloadlibrewolf-fedora-ff-caaf3e9d69be3c8613d6b44eaf77323318af49d3.tar.gz
librewolf-fedora-ff-caaf3e9d69be3c8613d6b44eaf77323318af49d3.tar.bz2
librewolf-fedora-ff-caaf3e9d69be3c8613d6b44eaf77323318af49d3.zip
Merge branch 'master' into f27
Diffstat (limited to 'rb245262.patch')
-rw-r--r--rb245262.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/rb245262.patch b/rb245262.patch
new file mode 100644
index 0000000..25550b5
--- /dev/null
+++ b/rb245262.patch
@@ -0,0 +1,29 @@
+diff --git a/security/sandbox/linux/SandboxFilter.cpp b/security/sandbox/linux/SandboxFilter.cpp
+--- a/security/sandbox/linux/SandboxFilter.cpp
++++ b/security/sandbox/linux/SandboxFilter.cpp
+@@ -1048,16 +1048,24 @@ public:
+
+ case __NR_mprotect:
+ case __NR_brk:
+ case __NR_madvise:
+ // libc's realloc uses mremap (Bug 1286119); wasm does too (bug 1342385).
+ case __NR_mremap:
+ return Allow();
+
++ // Bug 1462640: Mesa libEGL uses mincore to test whether values
++ // are pointers, for reasons.
++ case __NR_mincore: {
++ Arg<size_t> length(1);
++ return If(length == getpagesize(), Allow())
++ .Else(SandboxPolicyCommon::EvaluateSyscall(sysno));
++ }
++
+ case __NR_sigaltstack:
+ return Allow();
+
+ #ifdef __NR_set_thread_area
+ case __NR_set_thread_area:
+ return Allow();
+ #endif
+
+
bgstack15