Files
firefox/source-files/0002-Bug-2016618-Fix-Linux-sandbox-build-breakage-on-glib.patch
T

49 lines
2.1 KiB
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Jed Davis <[email protected]>
Date: Fri, 6 Mar 2026 03:39:26 +0000
Subject: [PATCH] Bug 2016618 - Fix Linux sandbox build breakage on glibc 2.43
r=Thinker
Differential Revision: https://phabricator.services.mozilla.com/D283196
---
.../patches/54_fix_build_on_glibc_2_43.patch | 17 +++++++++++++++++
.../linux/system_headers/linux_seccomp.h | 1 +
2 files changed, 18 insertions(+)
create mode 100644 security/sandbox/chromium-shim/patches/54_fix_build_on_glibc_2_43.patch
diff --git a/security/sandbox/chromium-shim/patches/54_fix_build_on_glibc_2_43.patch b/security/sandbox/chromium-shim/patches/54_fix_build_on_glibc_2_43.patch
new file mode 100644
index 000000000000..bfba1154e5d5
--- /dev/null
+++ b/security/sandbox/chromium-shim/patches/54_fix_build_on_glibc_2_43.patch
@@ -0,0 +1,17 @@
+Author: Jed Davis <[email protected]>
+Date: Thu Feb 12 20:44:26 2026 -0800
+
+ Bug 2016618 - Fix Linux sandbox build breakage on glibc 2.43
+
+diff --git a/security/sandbox/chromium/sandbox/linux/system_headers/linux_seccomp.h b/security/sandbox/chromium/sandbox/linux/system_headers/linux_seccomp.h
+index 8690a96eb01b..981005faf06f 100644
+--- a/security/sandbox/chromium/sandbox/linux/system_headers/linux_seccomp.h
++++ b/security/sandbox/chromium/sandbox/linux/system_headers/linux_seccomp.h
+@@ -5,6 +5,7 @@
+ #ifndef SANDBOX_LINUX_SYSTEM_HEADERS_LINUX_SECCOMP_H_
+ #define SANDBOX_LINUX_SYSTEM_HEADERS_LINUX_SECCOMP_H_
+
++#include <signal.h> // for SYS_SECCOMP
+ #include <stdint.h>
+ #include <sys/ioctl.h>
+
diff --git a/security/sandbox/chromium/sandbox/linux/system_headers/linux_seccomp.h b/security/sandbox/chromium/sandbox/linux/system_headers/linux_seccomp.h
index 8690a96eb01b..981005faf06f 100644
--- a/security/sandbox/chromium/sandbox/linux/system_headers/linux_seccomp.h
+++ b/security/sandbox/chromium/sandbox/linux/system_headers/linux_seccomp.h
@@ -5,6 +5,7 @@
#ifndef SANDBOX_LINUX_SYSTEM_HEADERS_LINUX_SECCOMP_H_
#define SANDBOX_LINUX_SYSTEM_HEADERS_LINUX_SECCOMP_H_
+#include <signal.h> // for SYS_SECCOMP
#include <stdint.h>
#include <sys/ioctl.h>