From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id WB1XKau1mGRVBQEASxT56A (envelope-from ) for ; Sun, 25 Jun 2023 23:46:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id EC5xKKu1mGRkdwAAG6o9tA (envelope-from ) for ; Sun, 25 Jun 2023 23:46:19 +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 6CDDE256C9 for ; Sun, 25 Jun 2023 23:46:19 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=DrBVksNc; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1687729579; 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-to: 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=4ZF/uLy7I7/o5ecYjRfh7C4edyJ0UuKr4gA0UYpjzCo=; b=QaBllsePtrMFZRd2C6i1HunehCHd/4PSkEebC38PLx3OU0hcUrd3e9aB7VIfc9uHnVHIXC UA1w3fcWxO+HgyGKpjihSI6r7D7CBMvNznwuZ++GedjJHzJ69IDJ3/HlqpAQZ0lL37mWWR bdc1zfGGsrG+HcbDTi9BW6TYXIO+izKZ4jCk0Aqt3kWWRh9sPwhzL09M2HmzUC3cmF60HA azrRmqTZLDX7zzl6Yc3IA7XsprwivhVimOyXYylqGjY7Hy/dRs8wtb+rMOYMvJU8aK2r9N W8ltHkJXGFYP/EUdhKUychjM6NA0JiUgQu/wq3UdII2XK9O0RDShRo1w/zxHIw== 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=DrBVksNc; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1687729579; a=rsa-sha256; cv=none; b=mp45UrnNiSBQxQNsEb3ck1dhWSmAK6reo7GHRgt2YiosAPzuRp+Z/GzvhA6N+osEXp5Fq/ +aoA0CfQ2nbL6DlhPOrlaGkpGAJSMPLaU0FBmS3cQTwebXlwRPLM4pB0EVFVSzaslS7AD1 VdOcDBufs4Vdlu1HtNXzxCvjgrYmXeEwdKHevtraibuIcxFGcc0ESysg5oPGSJAZdGpTr9 rIYGusHQU34vpNQaEzAlRux56mdyMsNzYmLq618Es9KTuUpSqMPa7Te+gjGzPeUc7z8qCK vvRv+4BMneO+A6VYgcE9irwr2nWci+rKd9z3V9zxLbZY4zsfB+vdoEKqndQkZg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qDXYa-00074I-Oa; Sun, 25 Jun 2023 17:46:04 -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 1qDXYY-00073R-Qu for bug-guix@gnu.org; Sun, 25 Jun 2023 17:46:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qDXYY-0008HS-IG for bug-guix@gnu.org; Sun, 25 Jun 2023 17:46:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qDXYY-0007rC-EG for bug-guix@gnu.org; Sun, 25 Jun 2023 17:46:02 -0400 Subject: bug#63979: bug#64119: [PATCH] services: shepherd: Sanitize 'provision' field. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Date: Sun, 25 Jun 2023 21:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 63979 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Bruno Victal Cc: attila@lendvai.name, 64119@debbugs.gnu.org, 63979-done@debbugs.gnu.org Mail-Followup-To: 63979@debbugs.gnu.org, ludo@gnu.org, attila@lendvai.name Received: via spool by 63979-done@debbugs.gnu.org id=D63979.168772951322937 (code D ref 63979); Sun, 25 Jun 2023 21:46:02 +0000 Received: (at 63979-done) by debbugs.gnu.org; 25 Jun 2023 21:45:13 +0000 Received: from localhost ([127.0.0.1]:43906 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qDXXl-0005wj-CQ for submit@debbugs.gnu.org; Sun, 25 Jun 2023 17:45:13 -0400 Received: from eggs.gnu.org ([209.51.188.92]:49352) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qDXXj-0005YE-36; Sun, 25 Jun 2023 17:45:11 -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 1qDXXc-0007z9-Pf; Sun, 25 Jun 2023 17:45:04 -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=4ZF/uLy7I7/o5ecYjRfh7C4edyJ0UuKr4gA0UYpjzCo=; b=DrBVksNcVqKnxS6IjAeh VpCzCN78pgduXI/wD/51J08KEK0Pqs9Fl3RpKdJ7c5fDy6IUPK3eADXR8aDtQmGi8QnsOOYzII3vf rzjdJNtjcCDLKE//nYVq6O84pGtPwsFYQPYsxA9gNQSKWGXs4JuVRQIPU+Nnlj0BV9Vhn3n0bChPb G5BAe7yHrSw5R2r5xsJwXNMiUAwZD/ejDW/vNllew7lqFc03m0imKgkTb3DGSlxpEncD6YBd/rpif hAOe21HaBZqLKAtkPK4Lp118n+gx8uzQ3GvrGwTrIhxPyZ2KmQBRq+XWBrX8k+Mrrpk9Yhq6AtMLB 4r2qofWn+r3hfg==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qDXXY-00018w-5k; Sun, 25 Jun 2023 17:45:03 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <9770a88a008fd1d087e829a6ad57b556346be9c0.1686947093.git.mirai@makinata.eu> Date: Sun, 25 Jun 2023 23:44:53 +0200 In-Reply-To: <9770a88a008fd1d087e829a6ad57b556346be9c0.1686947093.git.mirai@makinata.eu> (Bruno Victal's message of "Fri, 16 Jun 2023 21:25:24 +0100") Message-ID: <87o7l3w71m.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: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -4.65 X-Spam-Score: -4.65 X-Migadu-Queue-Id: 6CDDE256C9 X-TUID: MBsKJ2DGrD8H Bruno Victal skribis: > +(define (sanitize-shepherd-service-provision expr) > + (match expr > + (((? symbol?) ..1) expr) > + (_ > + (raise > + (formatted-message > + (G_ "'provision' must be a non-empty list of symbols")))))) Actually I figured we could do as in other areas of the code in a way that reports error location, so I came up with a different patch. Ludo=E2=80=99.