From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id II6tEm1L+2QNVgAA9RJhRA:P1 (envelope-from ) for ; Fri, 08 Sep 2023 18:27:25 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id II6tEm1L+2QNVgAA9RJhRA (envelope-from ) for ; Fri, 08 Sep 2023 18:27:25 +0200 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 674EE6A358 for ; Fri, 8 Sep 2023 18:27:24 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=cfvO6N9q; 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=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1694190444; 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=wPGpzRRKaSujdxHJ7Bf4v/w76oj7K7LwiNO32zXFnxs=; b=MbQMbizwCldhkcFMT9g6WJl8IxUAPNgSBQRMBnQMU7jxo7ssvv8C9ABjGudsB9uO6jdTUv 9inxYq6AF5/CQX8kEFr3opA7qswou8Yg8kYTh0DDMZGhWzuyARiNBhm/L4FG86f1wCHvmL wevssMoA4GEdpDZJhmRWem2qxCiuwnvd567yexHcN2wXgRCZhPf2Wk9CbIfz31E/Jo5isP dT/DXnUPvd5dQWDvUtQxaK294jNVy2iAtYfSI7VAzaRzGOio/sCY/FFPgjlqUifBdiRlFc ojGasvLbS6a+f7/mcrCDHwPZJT+9gKNI4nLSnL5ZfTQyTyUp+lcjfZ01uA4EhQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=cfvO6N9q; 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=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1694190444; a=rsa-sha256; cv=none; b=ONY6fvXEInkxN/XKIW0tfnCOGPDYPHIqCCPKQBWZTAko412PY2XApQHWz5ALzzPiHAwDKr 3B1OmTMwDG9qZaNLY+OykcJMt2+b8eFukJcZA0F66Q3qi73PaU4MGbaQorWabg8Q4Xcmjz o6WWVARin7WmRwcA8oQTKqa5Bn2kuXXa/+23hxU+0BJZKYrlq5HX6FB8sz58h6Xl5w9vGk YyUtmlpHwU3hkvcU2KJ/UWiNt+Sz38Wb/Wn6Wxs5BnmzlZw2AG89Hzg2q5lE3YF3fU+8pi 7R/9ZWpdjE783qn5Tv2aqW1irUwYVROZuA7Tcg4wJf70iyySonurFuPG1QC1kQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qeeJz-0001kL-61; Fri, 08 Sep 2023 12:27:03 -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 1qeeJw-0001js-9s for guix-patches@gnu.org; Fri, 08 Sep 2023 12:27:00 -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 1qeeJw-0007Zm-22 for guix-patches@gnu.org; Fri, 08 Sep 2023 12:27:00 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qeeJy-00077D-Be for guix-patches@gnu.org; Fri, 08 Sep 2023 12:27:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#31444] 'guix health': a tool to report vulnerable packages Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 08 Sep 2023 16:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31444 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Maxim Cournoyer Cc: Ricardo Wurmus , Mathieu Othacehe , 31444@debbugs.gnu.org, 31442@debbugs.gnu.org, zimoun Received: via spool by 31444-submit@debbugs.gnu.org id=B31444.169419037027281 (code B ref 31444); Fri, 08 Sep 2023 16:27:02 +0000 Received: (at 31444) by debbugs.gnu.org; 8 Sep 2023 16:26:10 +0000 Received: from localhost ([127.0.0.1]:45327 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qeeJ8-00075s-Av for submit@debbugs.gnu.org; Fri, 08 Sep 2023 12:26:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37626) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qeeJ3-00075E-Ee; Fri, 08 Sep 2023 12:26:08 -0400 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 1qeeIv-0007PH-Ex; Fri, 08 Sep 2023 12:25:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=wPGpzRRKaSujdxHJ7Bf4v/w76oj7K7LwiNO32zXFnxs=; b=cfvO6N9qj9xjdDhIcMPd gY9aRC1WhVGDeC5udk5XHXYWMgZq0wQVvSk2kFqFWVJw2+5Sk3YwcFQRdbUgo+oBvoNOOrVEoqsKj 6SwsPsN02lJt2CoKy2o23evrRE6fH61V4xU0RjNb602P5t3JSFlz3rIVby71GO1isbw8yUOCWzSi0 Z6KMaFzrP4ro2HwCmNZV4QGCDBuZjYLJpPaj0qfI+aBxrbdm8AOj/poHIKlT31QXKEoSldyFSPVzU mZFhV+zBZ/LiNbuGxnYhD27SEn4wXKUTOuyT9N3/rozPAnt8wgkW4puevkPcKe2cbDzI0dW7P2Q0B o3Ks/gwjmS1xgg==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87fu2vjj76.fsf@gnu.org> <864knuk8nk.fsf@gmail.com> <87o7k5i59g.fsf_-_@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Duodi 22 Fructidor an 231 de la =?UTF-8?Q?R=C3=A9volution, ?= jour de la Noisette X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Fri, 08 Sep 2023 18:25:53 +0200 In-Reply-To: <87o7k5i59g.fsf_-_@gmail.com> (Maxim Cournoyer's message of "Fri, 21 Jul 2023 12:44:11 -0400") Message-ID: <87jzt04ooe.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 674EE6A358 X-Migadu-Scanner: mx1.migadu.com X-Migadu-Spam-Score: -3.20 X-Spam-Score: -3.20 X-TUID: y2IxJ3eY1pYm Hello! Maxim Cournoyer skribis: > zimoun writes: [...] >>> This =E2=80=98guix health=E2=80=99 reports information about =E2=80=9Cl= eaf=E2=80=9D packages in a >>> profile, but not about their dependencies: >> >> Well, I do not know what was the idea at the time. :-) >> (The search http://logs.guix.gnu.org/guix/search?query=3Dnick%3Adavidl >> does not list logs before 2019 for the nickname. Do I miss something?) >> >> And I do not know if the idea is to report only =E2=80=9Cleaf=E2=80=9D p= ackages. Reporting only leaf packages was a limitation, not a goal. The limitation stemmed from the fact that, to determine whether a package is vulnerable, we need to (1) map its store file name to its package name, and (2) map its package name to its CPE name. We can do #1 via manifests, but only for leaf packages (because there=E2=80= =99s no metadata available for other store items). >> Well, instead to create another new command, I think it would be better >> to include the =E2=80=9Cleaf=E2=80=9D packages to =E2=80=9Cguix graph=E2= =80=9D and then pipe to =E2=80=9Cguix >> lint=E2=80=9D. Other said, =E2=80=9Cguix graph=E2=80=9D should help to = manipulate the graph of >> packages. > > I like this idea to allow composing our already existing commands, the > UNIX way. It'd be useful not just for this use case, but to better > exploit the Guix command line API in general. I=E2=80=99m all for composition, who wouldn=E2=80=99t? :-) I think composition works best within a rich language; sending text over pipes is often too limited. [...] > Ludo, if your proposition has gone stale and you don't plan to work on > it anytime soon, feel free to close it. There=E2=80=99s been progress since I posted this patch: manifests now incl= ude provenance info, which means we can map profiles back to package definitions! So we could make a proper =E2=80=98guix health=E2=80=99 at th= is stage. I=E2=80=99d like to say I=E2=80=99ll work on it soon but reality is that I= =E2=80=99m a bit swamped. Anyhow, I think it remains a useful tool, and whether it=E2=80=99= s me or someone else working on it, we should probably aim for it at some point. Thanks, Ludo=E2=80=99.