mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-02 10:52:57 +02:00
firefox: allow SYS_membarrier in sandbox
needed for musl-1.1.22 [ci skip]
This commit is contained in:
parent
041b0af236
commit
69a2cf2719
2 changed files with 53 additions and 1 deletions
52
srcpkgs/firefox/patches/fix-sandbox-membarrier.patch
Normal file
52
srcpkgs/firefox/patches/fix-sandbox-membarrier.patch
Normal file
|
@ -0,0 +1,52 @@
|
||||||
|
allow usage of SYS_membarrier, needed since musl-1.1.22
|
||||||
|
|
||||||
|
--- security/sandbox/linux/SandboxFilter.cpp
|
||||||
|
+++ security/sandbox/linux/SandboxFilter.cpp
|
||||||
|
@@ -283,6 +283,8 @@
|
||||||
|
case __NR_set_tid_address:
|
||||||
|
return Allow();
|
||||||
|
#endif
|
||||||
|
+ case __NR_membarrier:
|
||||||
|
+ return Allow();
|
||||||
|
|
||||||
|
// prctl
|
||||||
|
case __NR_prctl: {
|
||||||
|
|
||||||
|
--- security/sandbox/chromium/sandbox/linux/system_headers/arm_linux_syscalls.h
|
||||||
|
+++ security/sandbox/chromium/sandbox/linux/system_headers/arm_linux_syscalls.h
|
||||||
|
@@ -1385,6 +1385,10 @@
|
||||||
|
#define __NR_memfd_create (__NR_SYSCALL_BASE+385)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
+#if !defined(__NR_membarrier)
|
||||||
|
+#define __NR_membarrier (__NR_SYSCALL_BASE+389)
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
// ARM private syscalls.
|
||||||
|
#if !defined(__ARM_NR_BASE)
|
||||||
|
#define __ARM_NR_BASE (__NR_SYSCALL_BASE + 0xF0000)
|
||||||
|
|
||||||
|
--- security/sandbox/chromium/sandbox/linux/system_headers/x86_64_linux_syscalls.h
|
||||||
|
+++ security/sandbox/chromium/sandbox/linux/system_headers/x86_64_linux_syscalls.h
|
||||||
|
@@ -1290,5 +1290,9 @@
|
||||||
|
#define __NR_memfd_create 319
|
||||||
|
#endif
|
||||||
|
|
||||||
|
+#if !defined(__NR_membarrier)
|
||||||
|
+#define __NR_membarrier 324
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
#endif // SANDBOX_LINUX_SYSTEM_HEADERS_X86_64_LINUX_SYSCALLS_H_
|
||||||
|
|
||||||
|
--- security/sandbox/chromium/sandbox/linux/system_headers/x86_32_linux_syscalls.h
|
||||||
|
+++ security/sandbox/chromium/sandbox/linux/system_headers/x86_32_linux_syscalls.h
|
||||||
|
@@ -1490,5 +1490,9 @@
|
||||||
|
#define __NR_shutdown 373
|
||||||
|
#endif
|
||||||
|
|
||||||
|
+#if !defined(__NR_membarrier)
|
||||||
|
+#define __NR_membarrier 375
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
#endif // SANDBOX_LINUX_SYSTEM_HEADERS_X86_32_LINUX_SYSCALLS_H_
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
#
|
#
|
||||||
pkgname=firefox
|
pkgname=firefox
|
||||||
version=66.0.3
|
version=66.0.3
|
||||||
revision=1
|
revision=2
|
||||||
build_helper="rust"
|
build_helper="rust"
|
||||||
short_desc="Mozilla Firefox web browser"
|
short_desc="Mozilla Firefox web browser"
|
||||||
maintainer="Johannes <johannes.brechtmann@gmail.com>"
|
maintainer="Johannes <johannes.brechtmann@gmail.com>"
|
||||||
|
|
Loading…
Add table
Reference in a new issue