Received: by 2002:a05:6830:16d2:b0:61c:ac69:ca1b with SMTP id l18csp52690otr; Wed, 3 Aug 2022 16:50:18 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u6wSS07/UZEFZwu3oB9mQC+5mVMZGS14DJmqGDt3eJ51P3i7DaAGQSIevge0FbFCjqdTWv X-Received: by 2002:a17:906:dc8d:b0:72f:2993:ed84 with SMTP id cs13-20020a170906dc8d00b0072f2993ed84mr21814711ejc.251.1659570617910; Wed, 03 Aug 2022 16:50:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659570617; cv=none; d=google.com; s=arc-20160816; b=ZbleQlCkpWPMEQQUtsu3BYZvp5wz96m6a7XJ/P1U5VYOUej8ZREo2TZ9v+4BA7b6H1 ZXjxmVqGqDJPKGYdQECRnKAOfivowUCU6RPq4yovJh6vBY3GRBtyVDKnuQF0Ju2l+eAI rZKMbBvx9VOKuTB/XHdNwFsumocnKOqAS4TjGgESnvDF3AV7ocznC7PXXJFjsodMpPM2 fSnk9QmqJnG7MljLh0JLmQsev0rgnpeu9N1w+ygOcph1wQEAQkBpYRhDgYXg0TfI35Vq ksZqZvah9QtBPzeJ7r+6Aqvy385Fcbm1hRQ6UeVWJyFSh4pFGfjflqtMguFEveB4ncxR 7B4Q== 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=tz/OiJMvaGAcCeuq23X8LcWOcGwQofI9LN2T94BECis=; b=0BSuM2QPSB9tfWyMLWWZko4H9W1HsukVwmRxPIWmWe0EyrSoihqLljpHgj2dO4J2GG Y6cS8cZnu18JOKFzUp6ugcq0BEl/HkIhflxH4GIEhnWtbiBFG422s1h1xuKxhOzF8aGB bQxYMVt5pbrZP68WY6Q1wIepOOgacp/ONfgyrfwNFvUUGcnjmtX8/ngSIrm0ttCyZGf7 +mDP0DxBH5eG4n2Ac4YOqGFxdnAMK2hBu6lfmNW3d347cHac6kecRiyJ+k6FHv17Z67J Eb87/KGLVu/aFzTzZOj+0l4D0L2A4JxWvcBT8YFwyhPmtd5OeArvj3RYsDbJVZNs4I+8 xE3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=TrdKVNTV; 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 qf23-20020a1709077f1700b0073066172279si11103692ejc.801.2022.08.03.16.49.41; Wed, 03 Aug 2022 16:50:17 -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=TrdKVNTV; 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 S238481AbiHCXiu (ORCPT + 99 others); Wed, 3 Aug 2022 19:38:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233883AbiHCXit (ORCPT ); Wed, 3 Aug 2022 19:38:49 -0400 Received: from mail-yb1-xb2e.google.com (mail-yb1-xb2e.google.com [IPv6:2607:f8b0:4864:20::b2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E6FC5C953 for ; Wed, 3 Aug 2022 16:38:48 -0700 (PDT) Received: by mail-yb1-xb2e.google.com with SMTP id e127so29932814yba.12 for ; Wed, 03 Aug 2022 16:38:48 -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=tz/OiJMvaGAcCeuq23X8LcWOcGwQofI9LN2T94BECis=; b=TrdKVNTVmoj1qjug6322BkTsWRYmWEkRiUaGMCxrLZqf5RBZN07SDs7trA1kTCqzIF aZJZr4Kg3rR0ihX4x61zMQq58cn72dqN5seQRt0FrFAcsTRprLofL8cQqWoUgOaRF1cm LDBpubL6G7YQ02CHe6GqktddjjQOn2Z4xzO7o= 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=tz/OiJMvaGAcCeuq23X8LcWOcGwQofI9LN2T94BECis=; b=zM7VcVYlTVZ+7KFBLx5lEUIhF1FS7fNL7OVcvQcpbyLRuj8ENXeafNR5JaeqX3/ZhH AIwN6Xd1OW1HvGcF6zlzcEEnJvoLHuvOjS6wvS9J5m/OcQFeoBYlw5HdBZ1KluKpcx0v QO6ZhEREK9fGgDlzmPIiHbhScjNSvInYdMX5uk49CTfJPBLLwlCjhJqCsGFw1hj1CQIN AwjvI66P5hc/lQc/HA+D5yJfYGZJm5xzPkkDLOm3BdF6TqP3vRlr78YNCR8i3D3lWA2s 5DAjWGCcSR5rwO/tgGCxczCI5Nj5kz4oK1kjVDktsgXlJWx77BKEZsNdD5vwwug0gZFU IZ6g== X-Gm-Message-State: ACgBeo3xuJtMa8b0GPp2ea9iGx0toUAEsyU9KU+G+3jJfh8h1UACvnkb ThVBcvN242nOQb+0Edc3hMY5f6TVUq3Xrymi9iLF5g== X-Received: by 2002:a25:6908:0:b0:67a:6cf9:52e0 with SMTP id e8-20020a256908000000b0067a6cf952e0mr4348359ybc.62.1659569927631; Wed, 03 Aug 2022 16:38:47 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Daniil Lunev Date: Thu, 4 Aug 2022 09:38:36 +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 > I thought you were trying to defend against path traversal attacks, not > arbitrary code execution? If your threat model includes arbitrary code > execution by root, you really need to be using SELinux. Hm, this is actually a very good point which we somehow missed, hm. Thanks for pointing that out, let me think on that