Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp519238imn; Wed, 3 Aug 2022 13:53:31 -0700 (PDT) X-Google-Smtp-Source: AA6agR4ytKHPlbC4jFY9Y12tYwiw8rOQ1m/YjP+mk3XZwipJEexDLDgSPwH1tAlQyyJqx0qQIldV X-Received: by 2002:a17:907:2c47:b0:730:6dfb:b32c with SMTP id hf7-20020a1709072c4700b007306dfbb32cmr14003146ejc.284.1659560011151; Wed, 03 Aug 2022 13:53:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659560011; cv=none; d=google.com; s=arc-20160816; b=zOBcAWLl/OR6ctyMmK6sHFTSHPd2x1a5WRsqP7o/xcbpGfMp3Yp7NY3cx1XS5O0qxQ Bm8vcSlHBFIJtJaJvOjaRm6eEVDb8dnEmCGYkXGzP5WU8sgS+rNCEaNsKQbgxa8itLSD GQEf8z8urBjUlk7JYlZWaIduOIXHti5peuUaOY6YnGqWLSnKlbQrwgpWFj+EnNQxA3u+ r+pd0zEiXyCGvZWmGVAsgOikNPtuxjZTqzOat/JvDvzaZ7RIWIHkt1NOAhf2Wlo7fJ1x 0l8TXR2I0qCRSniYaLN6v5NlIbV4sm4Yio710A8ldSR0YjcuF88yE7p2NQSqadRREqqk dGVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=nbc6TTtXlc6VfBsVBN6Hr/kOw1BsZ/pBPw82z6wXqKA=; b=qCxeyl5TB4myL7v1Fe25tCj1aRL89EkPAJn4IyL5fRtNH7qVgPlb9OZk1V8Uoo2R5x 0LGkoxs6ZAKPmd0fqMyYnXBuziwfUzC6Q9h5eIROukazIjfk4Wvcxd2auXF3v/VVd4JH 9BRzJ+Ya1eeTQ10tsKRypixFsxKOBAJcj6T00dYxG5yfoESDHiTOoaSscAjD6JEnCSYj tYwIhM7YcMCtLqCTTDUPtNLRtcSDW/Hu+fB9F51oKtklpfIPBSnLEc6pneeR26oLNBd+ eFH+9DlZReVmUuX7uGYD1lQ7pwN0svetDJS3K4Ne+w5stURgp4oUDCJa4D7tw8pTJfzp T8Qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=fO2tHm5E; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oq19-20020a170906cc9300b0072b33601f36si4807478ejb.250.2022.08.03.13.53.06; Wed, 03 Aug 2022 13:53:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=fO2tHm5E; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238551AbiHCUpI (ORCPT + 99 others); Wed, 3 Aug 2022 16:45:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238428AbiHCUpH (ORCPT ); Wed, 3 Aug 2022 16:45:07 -0400 Received: from mail-yw1-x1129.google.com (mail-yw1-x1129.google.com [IPv6:2607:f8b0:4864:20::1129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 969D25C94E for ; Wed, 3 Aug 2022 13:45:04 -0700 (PDT) Received: by mail-yw1-x1129.google.com with SMTP id 00721157ae682-31f661b3f89so182642767b3.11 for ; Wed, 03 Aug 2022 13:45:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=nbc6TTtXlc6VfBsVBN6Hr/kOw1BsZ/pBPw82z6wXqKA=; b=fO2tHm5E31xgxyP5jV7YZutad8Ksce6Uw5qsAclptP3H0tjfYjncfphQKdonwZNos6 qZeJwsh0Ff5hfhh8808UPJ9O2EXBGdlPEBUkSS/DFe8puDHOLGnVoNy7DS/DdYG39cgc BREMvgUsOTB3QhHfilSrPB5KeC+oA8dDlFKPE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=nbc6TTtXlc6VfBsVBN6Hr/kOw1BsZ/pBPw82z6wXqKA=; b=nSkTD2VZX2TwCMedmL1SJKLb44dDEmr7dwwXMheYUjXoZZFp8VTpjoPivG0EG2bNYX tuMTXDzF5v10yFnFED0z9M5RvtXo8c35cFQ6+aXjDYmdYve3d801Xe83AtKov24LmLVF KKcuqESeYWnoXgY2HIVrYlqdV/DleZFwZdThhKqsxd6kkCfnIPfAhKCBXQKItddYVgDV iXbdCM+fB5szVnLELYVEdtkWdhiZVDif+sDFBrV6mmMrB+KKMl0PH8C65a2S8Vhi57Kx WbeIwtR83Jp2hRLpEKR035xjbGlI0+bmSULHHmpc+uTNARdhP1q0oXY4dRMRckxg1u0r 1Zog== X-Gm-Message-State: ACgBeo3q7vc6qWDCuwOE6H66gC78BakQd06543IPltuk12yPUttcs5d+ XdXrWHKrqoo9qdmt1hf31MQZXwRiO2bz8GVlUKRJFg== X-Received: by 2002:a81:55c2:0:b0:31f:645b:9858 with SMTP id j185-20020a8155c2000000b0031f645b9858mr26357883ywb.296.1659559503829; Wed, 03 Aug 2022 13:45:03 -0700 (PDT) MIME-Version: 1.0 References: <20220704000225.345536-1-dlunev@chromium.org> <20220704100221.1.I15b3f7a84ba5a97fde9276648e391b54957103ff@changeid> In-Reply-To: From: Daniil Lunev Date: Thu, 4 Aug 2022 06:44:53 +1000 Message-ID: Subject: Re: [dm-devel] [PATCH 1/1] dm: add message command to disallow device open To: Eric Biggers Cc: Zdenek Kabelac , Brian Geffon , Mike Snitzer , linux-kernel@vger.kernel.org, dm-devel@redhat.com, Mikulas Patocka , Alasdair Kergon Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Have you also considered unlinking the device node (/dev/dm-$idx) from the > filesystem after it has been set up for swap? Yes, the node can be re-linked with mknod, thus is not a suitable solution.