From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id CGPoBhqE8GbspAAA62LTzQ:P1 (envelope-from ) for ; Sun, 22 Sep 2024 20:54:50 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id CGPoBhqE8GbspAAA62LTzQ (envelope-from ) for ; Sun, 22 Sep 2024 22:54:50 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=Bd8o0Uhz; dkim=fail ("headers rsa verify failed") header.d=retrospec.tv header.s=fm1 header.b=Nh0dr5gP; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b="n E3l7Rc"; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1727038490; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Se5sRY5hOt4Sq4kNr0gj47GHaUtS/JrbyjVubxY5WxQ=; b=HBiPgV9D0zRHamrohZ4N5n9PxOtf5KNsShd++1Og0X3FpCtPNyTt5mZE1yuioszGMQVEIv l8savN2+l8utESyBzyGer51WyXkkuIDSqLTws0a2qNlrBMEgZ4ECbLU010Uxigdd92LByt WW64bnKOXZb4WCOVlYnZWfrGyOgvIwkY1ePKRQNBRq1I4V9dP89oLWw0DRp61elDn3feKR vUkZnv/v1naV9+TtQPLmagyKm3NG5od6mn8ydQH4TVUc7nPx3dkRABK2OzqsKYvMzw+Iy/ ETucsxVejfqorIPTOeGpjGnZv1kgwcFEoQyUEIJP2lu6pCXVLYG7+DhLZOB16Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=Bd8o0Uhz; dkim=fail ("headers rsa verify failed") header.d=retrospec.tv header.s=fm1 header.b=Nh0dr5gP; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b="n E3l7Rc"; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1727038490; a=rsa-sha256; cv=none; b=l1JJkKMWzG15gpPfu/ENw4QGPltROOMJ3szVSGyzxFgrdaeqe0wacHKC8w5Ec2uUESoTXt sMP54AHs9UeKPLu0RX4H6rDRgstGJjbV4DBwRkIkBIlvz+AW9AzuwYb1J2cf9Uy+pv2gxe oOilzROBX3EBo9Qx7/HwYKVNpe/ewfLIEmX8Fvpc2I2nPNLDwu0lGXGDIHkLSa/h0B8TO+ 63IEn0iO6MPpqrAz0Y28OUF5QgGgJrZnXcWPpsDspBJvx4kGKQFKWebKG45TGDDQAMnvuK L8QJw/SCOURoTvMFv6DyDxfg2CeYyQSG4pp3C9XrMm44hndmLK/9sD5DWssRtA== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3BCF37DD9D for ; Sun, 22 Sep 2024 22:54:49 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ssTbO-0006K2-W9; Sun, 22 Sep 2024 16:54:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ssTbN-0006IY-0s for guix-patches@gnu.org; Sun, 22 Sep 2024 16:54:41 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ssTbM-0007J1-N8 for guix-patches@gnu.org; Sun, 22 Sep 2024 16:54:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=Se5sRY5hOt4Sq4kNr0gj47GHaUtS/JrbyjVubxY5WxQ=; b=Bd8o0UhzoNdzZRomYd/mMSUetDvGpT+PboIkIolcQhO5r3VmDoZ7HaQnyRMGUFch+CTpKqVjmhnaOruuk/IsxxXACS5+DA2SGHxuvYpPwcBgKW1IRli+Id2W9YIc3GuXVNgOInBxDiTdrt7UVYbuNluMgiyEzlRkfeWQ/NO1ohK1JnzEpwwqpHWcKG6nvmR9W/PEJc89BSnu+CSwreCDpUY461TwFH9yqOx2XQQUM7qg4dd3buEIMY6s7ioykJBPSJ/R190U9MgRyqWGz8zJ5Dr9IyElKYWYwJZURJ3uwQ8bnudmhX3sbSn/2zYnJuo+WUkEqK65Ywqu+9Ck5x5hLg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ssTbi-0001fb-MU for guix-patches@gnu.org; Sun, 22 Sep 2024 16:55:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#73429] [PATCH 2/3] gnu: librewolf: Update to 130.0.1-1. [security fixes] Resent-From: Ian Eure Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 22 Sep 2024 20:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73429 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 73429@debbugs.gnu.org Cc: =?UTF-8?Q?Andr=C3=A9?= Batista , mhw@netris.org, jonathan.brielmaier@web.de, Ian Eure Received: via spool by 73429-submit@debbugs.gnu.org id=B73429.17270384696350 (code B ref 73429); Sun, 22 Sep 2024 20:55:02 +0000 Received: (at 73429) by debbugs.gnu.org; 22 Sep 2024 20:54:29 +0000 Received: from localhost ([127.0.0.1]:42827 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ssTbA-0001eG-RR for submit@debbugs.gnu.org; Sun, 22 Sep 2024 16:54:29 -0400 Received: from fhigh1-smtp.messagingengine.com ([103.168.172.152]:51403) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ssTb8-0001do-4J for 73429@debbugs.gnu.org; Sun, 22 Sep 2024 16:54:27 -0400 Received: from phl-compute-10.internal (phl-compute-10.phl.internal [10.202.2.50]) by mailfhigh.phl.internal (Postfix) with ESMTP id BCE2E1140120; Sun, 22 Sep 2024 16:53:58 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-10.internal (MEProxy); Sun, 22 Sep 2024 16:53:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=retrospec.tv; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1727038438; x=1727124838; bh=Se5sRY5hOt4Sq4kNr0gj47GHaUtS/JrbyjVubxY5WxQ=; b= Nh0dr5gPlZ4RCfEOZg9chLxoy+pNH6QonnTkCB13nXv8FFiJ2BU4WmFVf//xgxXY c59BjXN+BULbi9wWsmQ2oo8GQgv3FDyxg/x2PyXoRYjzr/iWOkqVmgs+BQ2jGie7 bAG7fqujrhNequ0TUCu5PNhEYwDFepCq61W2Ahwqw+cu+7hYTSFKPk+mjKEvKkD/ uWVe82WOSwBb6MxK4Y/SAek3NnOfzG2Rh4bsvivlM0wffjDOYgn1Z+r9dDQ1iZ48 Z5h2zqYt8D0V0qICr3IRg+8UJ3kTH12aq6q+3SNv7e3PBgiCZ9OQN3fEgEtoQyGS NR50bkUve/onIXWTOl+iQA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1727038438; x= 1727124838; bh=Se5sRY5hOt4Sq4kNr0gj47GHaUtS/JrbyjVubxY5WxQ=; b=n E3l7RcpipZpUriGf/i1GeQ2gR5YYLy2wMWojlsKTO3mz5VScFcsYihX1/yH5+Wih ecqSJM6XYY9oaASmniR8XzSTtgKclMm41zRQ0b+45JPY0e2enZZ5rbb9nbsyO6S8 lMB3KoSNWmnZr2lKzm5TsXLugebDo+bufo9GXszjMGHggBJ8Ov+PgpiWRYs5HQmj ISVOL2QXvuLcE4aQIUKwGrcroHdPJvMtU92hLO/qyGCXvttJKQLkWoLJWo5Nofy+ sf/94w0RxN5pwStn5KRolFcl6Hl7QL4wNKzoNLojoAdrIkZY2YPCONA55KWYUYIb jHl9J9omjD1T6ybZwu15w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrudeljedgudehhecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefhvfevufffkffojghfgggtgfesthekredtredt jeenucfhrhhomhepkfgrnhcugfhurhgvuceoihgrnhesrhgvthhrohhsphgvtgdrthhvqe enucggtffrrghtthgvrhhnpedvjeelhfehgfdufeevteeikeduieejvefgvdetgfelvdei tdefleefueffjeeugeenucffohhmrghinheptghouggvsggvrhhgrdhorhhgpdhgihhthh husgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhr ohhmpehirghnsehrvghtrhhoshhpvggtrdhtvhdpnhgspghrtghpthhtohephedpmhhoug gvpehsmhhtphhouhhtpdhrtghpthhtohepjeefgedvleesuggvsggsuhhgshdrghhnuhdr ohhrghdprhgtphhtthhopehnrghnughrvgesrhhishgvuhhprdhnvghtpdhrtghpthhtoh epjhhonhgrthhhrghnrdgsrhhivghlmhgrihgvrhesfigvsgdruggvpdhrtghpthhtohep mhhhfiesnhgvthhrihhsrdhorhhgpdhrtghpthhtohepihgrnhesrhgvthhrohhsphgvtg drthhv X-ME-Proxy: Feedback-ID: id9014242:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 22 Sep 2024 16:53:57 -0400 (EDT) From: Ian Eure Date: Sun, 22 Sep 2024 13:53:42 -0700 Message-ID: <20240922205343.21437-2-ian@retrospec.tv> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240922205343.21437-1-ian@retrospec.tv> References: <20240922205343.21437-1-ian@retrospec.tv> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -5.21 X-Spam-Score: -5.21 X-Migadu-Queue-Id: 3BCF37DD9D X-Migadu-Scanner: mx10.migadu.com X-TUID: 6uI5IAJmMQLG This patch: - Updates LibreWolf to the latest version - Removes the code which disabled encoding_rs.patch from upstream. It’s no longer in the repo, so the code did nothing, and the underlying issue (Guix being stuck with an old Rust version) has been fixed. - Integrates changes from #72265 with some slight tweaks. This should allow LibreWolf to use accelerated video decoding on supported hardware. - Neuters the GenAI chat feature, which direcly integrates with non-free services, by excluding it from the build and locking the preferences which would enable it. Fixes: CVE-2024-8385: WASM type confusion involving ArrayTypes CVE-2024-8381: Type confusion when looking up a property name in a "with" block CVE-2024-8388: Fullscreen notice on Android could be hidden under various panels and OS prompts CVE-2024-8382: Internal event interfaces were exposed to web content when browser EventHandler listener callbacks ran CVE-2024-8383: Firefox did not ask before openings news: links in an external application CVE-2024-8384: Garbage collection could mis-color cross-compartment objects in OOM conditions CVE-2024-8386: SelectElements could be shown over another site if popups are allowed CVE-2024-8387: Memory safety bugs fixed in Firefox 130, Firefox ESR 128.2, and Thunderbird 128.2 CVE-2024-8389: Memory safety bugs fixed in Firefox 130 * gnu/packages/librewolf.scm (librewolf): Update to 130.0.1-1. Change-Id: I764e6e66c5bfdc14a87b7ea59c29780a1f16769a --- gnu/packages/librewolf.scm | 55 ++++++++++++++++++++------------------ 1 file changed, 29 insertions(+), 26 deletions(-) diff --git a/gnu/packages/librewolf.scm b/gnu/packages/librewolf.scm index 21f73f799d..bade479656 100644 --- a/gnu/packages/librewolf.scm +++ b/gnu/packages/librewolf.scm @@ -117,9 +117,11 @@ (define (librewolf-source-origin version hash) (define computed-origin-method (@@ (guix packages) computed-origin-method)) (define librewolf-source - (let* ((ff-src (firefox-source-origin "129.0.1" "0wy0fn0pavlhlkdybr59hhbn5ng0zn56mxa7gsknf8f2whiyipwx")) - (version "129.0.1-1") - (lw-src (librewolf-source-origin version "0pvv3v23q31hdjvqi1f3cqfyjrb8dbrrbfwxj2wacak1g0mzbxf4"))) + (let* ((ff-src (firefox-source-origin "130.0" + "0w4z3fq5zhm63a0wmhvmqrj263bvy962dir25q3z0x5hx6hjawh2")) + (lw-src (librewolf-source-origin + "130.0.1-1" + "0f80pihn375bdjhjmmg2v1w96wpn76zb60ycy39wafwh1dnzybrd"))) (origin (method computed-origin-method) @@ -164,11 +166,6 @@ (define librewolf-source (("^ff_source_tarball:=.*") (string-append "ff_source_tarball:=" #+ff-src))) - ;; Remove encoding_rs patch, it doesn't build with Rust 1.75. - (substitute* '("assets/patches.txt") - (("patches/encoding_rs.patch\\\n$") - "")) - ;; Stage locales. (begin (format #t "Staging locales...~%") @@ -215,13 +212,17 @@ (define rust-librewolf rust) ; 1.75 is the default in Guix, 1.65 is the minimum. ;; Update this id with every update to its release date. ;; It's used for cache validation and therefore can lead to strange bugs. ;; ex: date '+%Y%m%d%H%M%S' -(define %librewolf-build-id "20240817075827") +(define %librewolf-build-id "20240922110507") (define-public librewolf (package (name "librewolf") - (version "129.0.1-1") - (source librewolf-source) + (version "130.0.1-1") + (source + (origin + (inherit librewolf-source) + (patches + (search-patches "librewolf-add-paths-to-rdd-allowlist.patch")))) (build-system gnu-build-system) (arguments (list @@ -318,6 +319,22 @@ (define (write-setting key value) (substitute* "dom/media/platforms/ffmpeg/FFmpegRuntimeLinker.cpp" (("libavcodec\\.so") libavcodec))))) + (add-after 'unpack 'neuter-genai + (lambda* _ + ;; Don't compile the code in. + (substitute* "browser/components/moz.build" + (("\"genai\",") "")) + ;; Lock the preferences so they can't be enabled. + (substitute* "lw/librewolf.cfg" + (("defaultPref\\(\"browser\\.ml\\.") + "lockPref(\"browser.ml.")) + ;; Correct a preference typo + ;; see https://codeberg.org/librewolf/issues/issues/1919#issuecomment-2325954 + ;; Remove this in the next update. + (substitute* "lw/librewolf.cfg" + (("browser\\.ml\\.enabled") + "browser.ml.enable")) + )) (add-after 'patch-source-shebangs 'patch-cargo-checksums (lambda _ (use-modules (guix build cargo-utils)) @@ -575,26 +592,12 @@ (define (runpaths-of-input label) ;; For U2F and WebAuthn "eudev"))) - ;; VA-API is run in the RDD (Remote Data Decoder) sandbox - ;; and must be explicitly given access to files it needs. - ;; Rather than adding the whole store (as Nix had - ;; upstream do, see - ;; and - ;; linked upstream patches), we can just follow the - ;; runpaths of the needed libraries to add everything to - ;; LD_LIBRARY_PATH. These will then be accessible in the - ;; RDD sandbox. - (rdd-whitelist (map (cut string-append <> "/") - (delete-duplicates (append-map - runpaths-of-input - '("mesa" - "ffmpeg"))))) (gtk-share (string-append (assoc-ref inputs "gtk+") "/share"))) (wrap-program (car (find-files lib "^librewolf$")) `("LD_LIBRARY_PATH" prefix - (,@libs ,@rdd-whitelist)) + ,libs) `("XDG_DATA_DIRS" prefix (,gtk-share)) `("MOZ_LEGACY_PROFILES" = -- 2.46.0