From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id q3sGNeqVfGFJIgEAgWs5BA (envelope-from ) for ; Sat, 30 Oct 2021 02:46:34 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id sLssMOqVfGE0MQAA1q6Kng (envelope-from ) for ; Sat, 30 Oct 2021 00:46:34 +0000 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 964B2381F3 for ; Sat, 30 Oct 2021 02:46:34 +0200 (CEST) Received: from localhost ([::1]:44736 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mgcW0-0003nO-L7 for larch@yhetil.org; Fri, 29 Oct 2021 20:46:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34812) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgcVW-0003n1-Jm for bug-guix@gnu.org; Fri, 29 Oct 2021 20:46:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44765) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mgcVW-0004SB-Av for bug-guix@gnu.org; Fri, 29 Oct 2021 20:46:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mgcVW-0003Gp-94 for bug-guix@gnu.org; Fri, 29 Oct 2021 20:46:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#51425: file-system: validate flags Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 30 Oct 2021 00:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51425 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Tobias Geerinckx-Rice X-Debbugs-Original-Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , bug-guix@gnu.org, 51425@debbugs.gnu.org, Jonathan Brielmaier Received: via spool by 51425-submit@debbugs.gnu.org id=B51425.163555473912515 (code B ref 51425); Sat, 30 Oct 2021 00:46:02 +0000 Received: (at 51425) by debbugs.gnu.org; 30 Oct 2021 00:45:39 +0000 Received: from localhost ([127.0.0.1]:56307 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgcV8-0003Fn-Ju for submit@debbugs.gnu.org; Fri, 29 Oct 2021 20:45:38 -0400 Received: from mail-qv1-f42.google.com ([209.85.219.42]:39464) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgcV5-0003FR-AJ for 51425@debbugs.gnu.org; Fri, 29 Oct 2021 20:45:37 -0400 Received: by mail-qv1-f42.google.com with SMTP id k29so7450720qve.6 for <51425@debbugs.gnu.org>; Fri, 29 Oct 2021 17:45:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=oGDfcqo5q4B34UguQ0XhJ6BZofuTKQZ2Qvu1wn53WCY=; b=bHRk0IIKAnNhv+K7ljz547Gai5Fv4QYDU4hHQK3WIEU4h1MnUS6IV5qKDQh1Zq1J5B CRnELr4oPyM+ce830N17j7zOOdEzXWgqXq/DJgBNfhZgTafxK7MLeNfUM7NQnmwAGCq4 xLDeXX2nu4T3Z7Jb0cEjdZ95og0WDC5xK+JH78ba4JTavZcmiEf/akRUHBVajCcV7lUh dRLFqlBgLiD0SR5gYBsh0lggMwT0gsCnEqO19mmrnMefm2/Y398IESDiW5vEXQuIYtAy mGJhfmQACa8qGdVMaN4Trhw05z0dm8aTIj2eJ83KJlD9pQbowT8vaVIEIVkxF88aE0/J 5KNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=oGDfcqo5q4B34UguQ0XhJ6BZofuTKQZ2Qvu1wn53WCY=; b=6zUF143k0n26H9m9brBfrqq8bUIP83wi1wjzGtzOU81Ddf2XCySzPETeZQtcjFGkQW suOzG6sYog3gV1/GLXQr5YbLbnc7k4YS6qO3H0xd4Uh3mcMQt8ijYISqwZV9IX4MJIXl Eo2C/12riY8MIBW+L2rcui1RHrenB0bqV0AQvNV1LrZYP9psiEE+TZwGcmUwh4LL3ZEg IYSqNoOadcohTrlLWmQjmxiHtn8vfcAH44bOkUkFj7PJj9JHojY4u/VTjvrKcm7QTIw3 u+jodH7L0F8rw7bkk2XVHVblt6Cke0tH8Ie3uemauYx7n/Z/j5pAn1tnMufo0NGgea8c /nOg== X-Gm-Message-State: AOAM531nbp0uJms/LTpo8XUqbi9LhCdu59Khpat97cmEB1jK/4f29WyX myTUFgKWSkDiRnaNDmG7PK8= X-Google-Smtp-Source: ABdhPJxyyc0GePWu08P02NTIWmpBPY6KGO4bJtrZ3D5eSBrv76TfErDv4krkC1JOCy4qEtz6ePvNPg== X-Received: by 2002:a05:6214:300d:: with SMTP id ke13mr14663741qvb.54.1635554729867; Fri, 29 Oct 2021 17:45:29 -0700 (PDT) Received: from hurd (dsl-148-192.b2b2c.ca. [66.158.148.192]) by smtp.gmail.com with ESMTPSA id w15sm3410182qtn.60.2021.10.29.17.45.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Oct 2021 17:45:29 -0700 (PDT) From: Maxim Cournoyer References: <33625107-5cf9-85f8-9025-2b9f186723bc@web.de> <87zgqu9bpk.fsf@gmail.com> <87lf2bipgp.fsf@nckx> Date: Fri, 29 Oct 2021 20:45:28 -0400 In-Reply-To: <87lf2bipgp.fsf@nckx> (Tobias Geerinckx-Rice's message of "Fri, 29 Oct 2021 21:41:15 +0200") Message-ID: <87fssj8hnb.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.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: , Cc: 51425@debbugs.gnu.org, jonathan.brielmaier@web.de Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1635554794; 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=oGDfcqo5q4B34UguQ0XhJ6BZofuTKQZ2Qvu1wn53WCY=; b=WxPDRcAuek+XjrJfeJIwk4OZa8YHugLx1Z4aHneyQXzrHwAEstf98jVFqMEfKbh+4+6IKU SW5o4P6dOGsZ4XW6EZkyPYyDhoUzcE9I1BQXeVIgg706ik9ZoZ04Whn+fWsITat6BE9b1l pkQO+OtiBYkvA/CQL78wZZO9BSi1MVClZH7C+9A+9/BaoJsWoTQRFxdJzT/AxClq7DWvmY Yh12KjZgYP/z+p+yXqt29qmRGx1sTebcqED34kGydBPaDXP7C4ntfcvUBGMwv6BciohpGx Hzou881xLMOUQiAVOIHNnyGqgx3WRzEZ8QvAdrmyVIJjJOcRVg047hrSXxbCWg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635554794; a=rsa-sha256; cv=none; b=apZxxPxj0fwfD17usN6rfm9JmEqmEb749wxIYOk3KGvtclB0/xg3qEV4ljyvy9rdsvRcC/ J6Ppi3iVelvRirdaqp0YLen/RVFhK80JR7vnKeVvCELhclby0iow8s/eQrC4RzyGgX1zqa Vm5ECtrPaHKyprEwHdFgwtU3h6/TcvAa8AuB0FfuNcN7BxUIJmHyBgVv/I2u3feRej87dI ajkX3Xiqm330dg1y+Z+wH9lCqtWD/X65vp2oJBy4cnYaop7uQcSMmaGnbAIn+G2my0QxX7 qpsK75rxbZOJ9tFzLeoEi8Y5avvdOpdfrJRzVQvraaffS8mZNcab2DS+BMInmQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=bHRk0IIK; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.32 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=bHRk0IIK; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 964B2381F3 X-Spam-Score: -1.32 X-Migadu-Scanner: scn0.migadu.com X-TUID: 7vLfvIEGrfX9 Hello Tobias, Tobias Geerinckx-Rice writes: > [FTR, I'm the one who encouraged Jonathan to file a bug. Mount flags > seem ideally suited to build-time validation.] > > Maxim, > > Maxim Cournoyer =E5=86=99=E9=81=93=EF=BC=9A >> each file system may have their own flags > > Really? Huh. Interesting. How does that work? Where would these > file-system specific flags be #defined? Or maybe I'm confusing with file system options; I can't find the past discussion that I had on mind; but options are file driver specific, while flags are file system independent. So yes, flags are a good candidate for validation! Another thing that is tricky about options is that some of them are only really understood by the 'mount' command line utility, not the 'mount' system call such as used in our init RAM disk (both are thrown together in 'man 8 mount' without an easy way to discern them apart, IIRC). > Ludo', I'll take a look at =E2=80=98sanitize=E2=80=99; thanks! Neat, thank you Tobias! Maxim