Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp147333imn; Tue, 2 Aug 2022 21:39:01 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uyjST/rbJdEph7B9V+RLas6qFMYfYABEIIKJOKEvVgv6hmJ79e0PoHP4pkLibHVBs+l06D X-Received: by 2002:a17:907:6096:b0:72f:1d74:b71b with SMTP id ht22-20020a170907609600b0072f1d74b71bmr19275469ejc.272.1659501541607; Tue, 02 Aug 2022 21:39:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659501541; cv=none; d=google.com; s=arc-20160816; b=YWULMeMYneN1jfOGXJYGM+UA5ym82LMjGtBQ7AsmQUozE0oPX2H2KERrIsE8uAAJHn JgM/rfx03qRy0Jz8IgVUW9d/o51kXjyeFnoSZqjwcbe5PAxGHAVjAVvu6njEHC36bgXO 4fGymfx/1MSD2Hfw0iNAqE0CQgHIheCsISiWM/czS1t7YF/aPIOD4zHkbHbbv4sN0Ij4 a+i6ID6427N3ylFMdUKXUNs4W05N0WYm5WmPcHOWE/aGOH8wdwjVZWQ3cuXoR2ehRtcl v5e+GJm+kdHKC1bRKKBeSu2/2Cqxc5ZtMRX6dEjjtlDLe+NR1QkqgFcjP782MC/n35+z GJDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=BJqv8eqryi1OCSAKzljQQ/MNAt5fXdPzVxFTcVl8HAc=; b=YA3NNGWVYz4D2GMG3cQMnGY0rEDVnZ1MR4TZ7VVkCC4VSf757DT4eBWyntRjaODhy1 nEx1o2FJIerZ1epbxg6Far2IrLERkeSB1uZv7gJHwovn0JZdF+VL5PLDDGmDRYQDeGNC X65ae23kUBCmp9h/XwVZ6YVLuhWOZloOxRHYIukWv4k77OEE8evqz23bQetw3uYYVmI3 HDGV+Kur1wZLLZFYtAGTyWpAXm3m8Xa/Pvk0/37knB2/0V8TQ/pyilQlXTbUB1gPSNnu UI/yClSdiLdjLa6OeNkXa9yIonYnFBGxrqz0mcFDhgvH4cBX9GATAv3UHyt8Z6+1DUZP AIjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="UUU/An0T"; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hp8-20020a1709073e0800b0072ac7a2727asi15009229ejc.959.2022.08.02.21.38.36; Tue, 02 Aug 2022 21:39:01 -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=@kernel.org header.s=k20201202 header.b="UUU/An0T"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234626AbiHCEXO (ORCPT + 99 others); Wed, 3 Aug 2022 00:23:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232299AbiHCEXN (ORCPT ); Wed, 3 Aug 2022 00:23:13 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DCAD56B89 for ; Tue, 2 Aug 2022 21:23:12 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 51B1EB82185 for ; Wed, 3 Aug 2022 04:23:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C5ADBC433C1; Wed, 3 Aug 2022 04:23:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1659500590; bh=57FYgrDA5JTLKEQSQAnXzMDnK8vQIpejERMWzMtvXwY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UUU/An0TCvdPWFwdAQAwh0U3zulXQTYzGW/6gFuOr+TkqvZwYn/facOQN3ef+9QKx r9lg9R0ZrZOVwdlVnWeRrD4pj5glg34O7ZjrqvPwDvbNioFqtZXLvJzWk6gQYHRyeH HM3sgIznkuTPHQJCpszkO0Q0/c21RJohQq3K5W7xrN1hVEEgQQT+39lNPDE0tGA6G8 oyYzSLjApnancZ4ZZPp0ApcOQkiTHHwo/7op0FT957ctE/GiutL1Ng3ehfqAgXirP4 +aSAVjkqonIkZlTcAUgtGL0bG6Pyw6qbsHBk8NY+GmYcqN3fQGHcj6E/MHfa/u2jVG 2Ef+IUBfZyETg== Date: Tue, 2 Aug 2022 21:23:08 -0700 From: Eric Biggers To: Daniil Lunev Cc: Zdenek Kabelac , Brian Geffon , Mike Snitzer , linux-kernel@vger.kernel.org, dm-devel@redhat.com, Mikulas Patocka , Alasdair Kergon Subject: Re: [dm-devel] [PATCH 1/1] dm: add message command to disallow device open Message-ID: References: <20220704000225.345536-1-dlunev@chromium.org> <20220704100221.1.I15b3f7a84ba5a97fde9276648e391b54957103ff@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 On Wed, Aug 03, 2022 at 02:12:26PM +1000, Daniil Lunev wrote: > Hello all > To signal boost here. What can we do to advance the discussion on this > topic? Can we move forward with the approach or are there any > alternative suggestions how the desired behaviour can be achieved? > Thanks, > --Daniil > > On Tue, Jul 19, 2022 at 9:42 AM Daniil Lunev wrote: > > > > We understand that if someone acquires root it is a game over. The intent of > > this mechanism is to reduce the attack surface. The exposure might be a > > certain system daemon that is exploited into accessing a wrong node in > > the filesystem. And exposing modifiable system memory is a pathway for > > further escalation and leaks of secrets. This is a defense in depth mechanism, > > that is intended to make attackers' lives harder even if they find an > > exploitable > > vulnerability. > > We understand that in regular situations people may not want the behaviour, > > that is why the mechanism is controlled via a side channel - if a message is > > never sent - the behaviour is not altered. > > --Daniil This seems like an access control policy, which the Linux kernel already has a lot of mechanisms for. Chrome OS already uses SELinux. Couldn't this be solved by giving the device node an SELinux label that no one has permission to open? - Eric