From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.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 MMlXBJZePmevxAAAqHPOHw:P1 (envelope-from ) for ; Wed, 20 Nov 2024 22:11:34 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id MMlXBJZePmevxAAAqHPOHw (envelope-from ) for ; Wed, 20 Nov 2024 23:11:34 +0100 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=eSm1XQfP; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=XNvvt+wA; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1732140693; a=rsa-sha256; cv=none; b=PN0igIuGy00wgzUsbJo51K9Idj62oEiwgp2SLNyW5nSAKnhwDQXaOlL0RqTCke+kZTS450 JmjEKajcELwFEmYR3zHBUEmvfU6I+J8+FKdcwh9hFcLt3W7QSVwvDJ55rAlVNddCIgXwr6 J8FMAiQnnqQjlOd9opvOww6INnuefbQWWjKMx+ISemsGEsO08iAi/eBb8WnDK8eSinzf7c Zv15saso2ZBuYJo9rZHYpqHo0Jljww+IgV2rSGdV7FZ08oXlMo9nxkYc1LOWnWMUeXp770 aLpIB7WlBiAMtLKQCfDPzmSO8hUGvsQogxiks22kSHqZWuIxoxUavOkVjGKioQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=eSm1XQfP; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=XNvvt+wA; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1732140693; 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=yYyVY9efiTXicf06W0+IIr42G3YcxsGN+vulJuV/YqQ=; b=MhrSBma38aZO17kq2hCf5i5tSafTThdFzOvm/p7sFLpCXt4iu61MqUPQZ6cAlU5fMJS3Vb CJFiXuyPUjTYu3O5FneO/pNcLn1evLJjiOmDyoCbFYrbyLAB5WmjS9bnP8NtanSwzPF+kd hFTf3f0UZB8/k+lA6nMQQYnEYJVtPTaST0nKO7VR5rSm5VFO71YUkz8bV9cdOUiecVt92m alInKRGg1uZNjl2iO/N5mq4mr+RYjrW4ird344IQFCVRcmrVAk/LFYsupTNUalhlyqGW3V rggSEEemWPW5ZCQYhY0rIG5L+0trNC16EIPAKcu1a5TV/W2SNlPhEhNJcobiNw== 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 541211ECF0 for ; Wed, 20 Nov 2024 23:11:33 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tDsuf-0002us-44; Wed, 20 Nov 2024 17:11:05 -0500 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 1tDsud-0002u8-3P for guix-patches@gnu.org; Wed, 20 Nov 2024 17:11:03 -0500 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 1tDsuc-000458-PA for guix-patches@gnu.org; Wed, 20 Nov 2024 17:11:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=yYyVY9efiTXicf06W0+IIr42G3YcxsGN+vulJuV/YqQ=; b=eSm1XQfPrq/dTdMWKkqy/7qPNt9PQQ2tTJj+2wD2Rhv84BV85ZiyAvKbJBf0XGkA5T8GTKQStscuVj7vLAeNSNzXRVSkGvCRbDMcg/dwjqhj8T/oFdmUI3iCvJ23/kJThsU5KRsgIBAmxmMt8tDMRNLt8kRVXGZ+Qp50RYDOLXvfhGE+4WNUmmZtMoPAFmQf87XYsqym1HG74vsJ9U8U/CpnwfbkFlhfX3MVkjmKUp8KB09m2FB95EGTfvhOzqoozVmz784UF5Uw3ZKLSvx6nBY6956ju3UWCVBVOqeYa98FXZ70gCQw1Uqal9ijORUp9ojT8CrqS41egNJQ3tCxGQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tDsuc-00032c-Gp for guix-patches@gnu.org; Wed, 20 Nov 2024 17:11:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74034] [PATCH v5 01/16] cve: Add cpe-vendor and lint-hidden-cpe-vendors properties. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 20 Nov 2024 22:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74034 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Nicolas Graves Cc: 74034@debbugs.gnu.org Received: via spool by 74034-submit@debbugs.gnu.org id=B74034.173214065211670 (code B ref 74034); Wed, 20 Nov 2024 22:11:02 +0000 Received: (at 74034) by debbugs.gnu.org; 20 Nov 2024 22:10:52 +0000 Received: from localhost ([127.0.0.1]:48079 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tDsuS-00032A-6e for submit@debbugs.gnu.org; Wed, 20 Nov 2024 17:10:52 -0500 Received: from eggs.gnu.org ([209.51.188.92]:59342) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tDsuQ-00031x-AD for 74034@debbugs.gnu.org; Wed, 20 Nov 2024 17:10:50 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tDsuJ-0003qv-NH; Wed, 20 Nov 2024 17:10:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=yYyVY9efiTXicf06W0+IIr42G3YcxsGN+vulJuV/YqQ=; b=XNvvt+wA5kqYFflwHgoE qGytqKGSQg5swarph3EAdvCBDXjwlUGo1owkHn0lrF+dx+ltVX9fYrmObE3tjJW/kTbCAnuhKixKO DUX1IKa6/X9iBpwztwjf0MFZDT6+NJ66r6R+kW4uZFjka+lddfHrYXXFJDqB6fdJrK/z5KK+Th7N4 iTl/SB1KIDlgoFmhBailHWCbXVyJbCpUyx8xc0a0DcyslbvTGaLJ9eI66UyW4r+XyDVniAEDZbnLY Brj2PKQY4sEjPhVVFgyBNbGUQFYPfw+RBAJyVb9/TUC56lxYktMf7+jgHqAuyRNaHkxqEPTOHW3Iy sPEby+fIbKSgSw==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= In-Reply-To: <20241119074612.19048-1-ngraves@ngraves.fr> (Nicolas Graves's message of "Tue, 19 Nov 2024 08:45:49 +0100") References: <20241026222934.25890-1-ngraves@ngraves.fr> <20241119074612.19048-1-ngraves@ngraves.fr> Date: Wed, 20 Nov 2024 23:10:40 +0100 Message-ID: <87h681v9nj.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -7.45 X-Spam-Score: -7.45 X-Migadu-Queue-Id: 541211ECF0 X-Migadu-Scanner: mx10.migadu.com X-TUID: G1l5bWwWez/R Nicolas Graves skribis: > * guix/cve.scm: Exploit cpe vendors information. > (cpe->package-name): Rename to... > (cpe->package-identifier): Renamed from cpe->package-name. Use > cpe_vendor:cpe_name in place or cpe_name. > (vulnerabily-matches?): Add helper function. > (vulnerabilities->lookup-proc): Extract cpe_name for table > hashes. Add vendor and hidden-vendor arguments. Adapt condition to > pass vulnerabilities to result in the fold. > (write-cache): Update the format version. > > * guix/lint.scm (package-vulnerabilities): Use additional arguments > from vulnerabilities->lookup-proc. > > * tests/cve.scm (%expected-vulnerabilities): Adapt variable to changes > in guix/cve.scm. [...] > (write `(vulnerabilities > - 1 ;format version > + 2 ;format version > ,(map vulnerability->sexp vulns)) > cache)))) This is good, but like I wrote, =E2=80=98fetch-vulnerabilities=E2=80=99 mus= t be update symmetrically, ideally to recognize both v1 and v2 sexps: (match sexp (('vulnerabilities 2 vulns) (map sexp->vulnerability vulns)) (('vulnerabilities 1 vulns) ;old format, lacks vendor info (map sexp-v1->vulnerability vulns))) (This is the format used in ~/.cache/guix/cve.) That=E2=80=99s the only thing missing IMO. Ludo=E2=80=99.