From a69e2e825dc9b0bc4fdce69726b45e0aa2096a78 Mon Sep 17 00:00:00 2001 From: John Date: Wed, 27 Aug 2025 12:52:02 +0200 Subject: [PATCH] firefox: update to 142.0.1. --- .../patches/sandbox-sched_setscheduler.patch | 45 +++++++++++++++++++ srcpkgs/firefox/template | 4 +- 2 files changed, 47 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/firefox/patches/sandbox-sched_setscheduler.patch diff --git a/srcpkgs/firefox/patches/sandbox-sched_setscheduler.patch b/srcpkgs/firefox/patches/sandbox-sched_setscheduler.patch new file mode 100644 index 00000000000..5b3598f3f1c --- /dev/null +++ b/srcpkgs/firefox/patches/sandbox-sched_setscheduler.patch @@ -0,0 +1,45 @@ +upstream bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1657849 +diff --git a/security/sandbox/linux/SandboxFilter.cpp b/security/sandbox/linux/SandboxFilter.cpp +index ed958bc..9824433 100644 +--- firefox-142.0.1/security/sandbox/linux/SandboxFilter.cpp 2025-08-27 05:19:55.000000000 +0200 ++++ - 2025-08-27 13:34:45.154107444 +0200 +@@ -1884,10 +1884,16 @@ + return Allow(); + case __NR_sched_get_priority_min: + case __NR_sched_get_priority_max: ++#ifndef __GLIBC__ ++ case __NR_sched_setscheduler: ++#endif + return Allow(); + case __NR_sched_getparam: + case __NR_sched_getscheduler: +- case __NR_sched_setscheduler: { ++#ifdef __GLIBC__ ++ case __NR_sched_setscheduler: ++#endif ++ { + Arg pid(0); + return If(pid == 0, Allow()).Else(Trap(SchedTrap, nullptr)); + } +@@ -2077,13 +2083,21 @@ + case __NR_sched_getparam: + case __NR_sched_setparam: + case __NR_sched_getscheduler: ++#ifdef __GLIBC__ + case __NR_sched_setscheduler: ++#endif + case __NR_sched_getattr: + case __NR_sched_setattr: { + Arg pid(0); + return If(pid == 0, Allow()).Else(Trap(SchedTrap, nullptr)); + } + ++#ifndef __GLIBC__ ++ // sched_setscheduler gets special treatment here (bug 1657849): ++ case __NR_sched_setscheduler: ++ return Allow(); ++#endif ++ + // The priority bounds are also used, sometimes (bug 1838675): + case __NR_sched_get_priority_min: + case __NR_sched_get_priority_max: diff --git a/srcpkgs/firefox/template b/srcpkgs/firefox/template index 320c67c8311..bbe4af70929 100644 --- a/srcpkgs/firefox/template +++ b/srcpkgs/firefox/template @@ -3,7 +3,7 @@ # THIS PKG MUST BE SYNCHRONIZED WITH "srcpkgs/firefox-i18n". # pkgname=firefox -version=142.0 +version=142.0.1 revision=1 build_helper="rust" short_desc="Mozilla Firefox web browser" @@ -12,7 +12,7 @@ license="MPL-2.0, GPL-2.0-or-later, LGPL-2.1-or-later" homepage="https://www.mozilla.org/firefox/" changelog="https://www.mozilla.org/en-US/firefox/${version}/releasenotes/" distfiles="${MOZILLA_SITE}/firefox/releases/${version/beta/b}/source/firefox-${version/beta/b}.source.tar.xz" -checksum=2808e1f10f3b6c593f96f3745a55d12c98107886daef00f1e354c24203a64b0f +checksum=b0adb44ed4c3383e752a5947adbfb0d03f24172cb468831bd49978de25e810c0 lib32disabled=yes _llvmver=19 # needs to match rust