Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1355255pxf; Fri, 12 Mar 2021 07:47:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJz5gbE4dD9x9ALrNieafY6+NyFTP4MyFI4YJPPKIo0mAdFRsFHUfxrI6NzqQt0qrZEkNZr3 X-Received: by 2002:a05:6402:1c1b:: with SMTP id ck27mr14880927edb.223.1615564026559; Fri, 12 Mar 2021 07:47:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615564026; cv=none; d=google.com; s=arc-20160816; b=h0MR2fwu9uWF7NLhBEDVRGiqlPP+XoYqzHMFaHqrL+r4iJ757ZdtULiYNI3bTka1yE 196H+0kKnwZSynrS5z4C7RjZpNW+MeRk9sHoiHHS4hASS/SPWJGS/EcOGu57zfcD6EQU SWzHIbUje4vWB8d00qd/qA+CqaWOlPb2wazXruCNGYcKAs56GqOGcYfOmZHdDbHMNuyT X3k71z/4/lcWdfMg6U6iM+uQ8qqo3Yc69wd/Df2aWXBwynkXSjvTcmF1E/7eqz3omzdH 9oCZDrwosyeQR/2FiMJ31/sP/v7VrSDvh/vwd1VzoFqw5MZ3QJH+VzzxLb8dR3LnF6Z7 A+QQ== 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; bh=X1HpxgHYTFg/Fiy9HzFnN5aYrg8PdK4Zz6eNMkByZOQ=; b=YB6hVDl9xZF77aha5jyO1epiLiqnWoigv8jyFr5XStOXminEk0ekKk/AwI24fkSdSV SAgylkCq0a2yE9eCICf6QIIIuFc3+4jNdsXTusxbx6qD2075YuFXOnEQU7DG3Zdu5jlP misRm/SlNjkfpSk6oFG6LsF0AJomgvDB4/eHuyL2A4GUFlo+vCciJLv2EGQEzz4DA0pG AosDAFV+B5SG+seX5K1MIzASLH2/n8ALZJlycTVhx0OyQyus+0q2DQHmv+fnQCVEs6vs tPw1xfZYHZ8fpZP04nAb3x6qHiHrIknbHyJgJtUNjYe/9pDrTYE2poZ/YnRwjh19v6fd tUNQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=netapp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z7si4429455ede.30.2021.03.12.07.46.43; Fri, 12 Mar 2021 07:47:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=netapp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231601AbhCLPqJ (ORCPT + 99 others); Fri, 12 Mar 2021 10:46:09 -0500 Received: from mail-ej1-f51.google.com ([209.85.218.51]:42968 "EHLO mail-ej1-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233410AbhCLPqA (ORCPT ); Fri, 12 Mar 2021 10:46:00 -0500 Received: by mail-ej1-f51.google.com with SMTP id c10so54125251ejx.9; Fri, 12 Mar 2021 07:45:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=X1HpxgHYTFg/Fiy9HzFnN5aYrg8PdK4Zz6eNMkByZOQ=; b=ZrAPaEwWBHF9ZTjyxisxeO6fCV9jOuA4NbZcM8ejc9lZsVgK/66NJ9rSn7ZHk5sWZz g4b9GEnFWtbZh+mtWkphj+bI934MoBwfUVaeX+LAQ177w7/j4j3nbQihlDVgsMXsI4ZW GRgzeHjGE41oMhGJEh4pS1TMtpg7Ahn2aDKu2pCJLzvVb9gSy5h2xF6e61latQvM9qB/ qtlNfxjDpGIQESkC2vRP16emnaQekGQmQabdJCgEKL0kyFwdWVbNLt2Y5VBtmwjkOAHS cSrcPTiwEEyix/DK8tNnhi2/id6ZWLDEFn85t6oOYgkO02MREaeNFCOeJkhl5j+/HSBF u23w== X-Gm-Message-State: AOAM531hM0dom4lp2WJsLg0VI/KiX1SMYYvo3qZLRU0VbJIm3Tbw3091 CZaOB8bZK8S8/IhQWnO+2uno6NusmF0OMyAdTltPHtjtGh8= X-Received: by 2002:a17:906:4e17:: with SMTP id z23mr9318713eju.439.1615563958756; Fri, 12 Mar 2021 07:45:58 -0800 (PST) MIME-Version: 1.0 References: <20210227033755.24460-1-olga.kornievskaia@gmail.com> In-Reply-To: From: Anna Schumaker Date: Fri, 12 Mar 2021 10:45:42 -0500 Message-ID: Subject: Re: [PATCH v4 1/3] [security] Add new hook to compare new mount to an existing mount To: Paul Moore Cc: Casey Schaufler , Olga Kornievskaia , Trond Myklebust , Linux NFS Mailing List , Linux Security Module list , SElinux list Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Thu, Mar 4, 2021 at 8:34 PM Paul Moore wrote: > > On Tue, Mar 2, 2021 at 10:53 PM Casey Schaufler wrote: > > On 3/2/2021 10:20 AM, Anna Schumaker wrote: > > > Hi Casey, > > > > > > On Fri, Feb 26, 2021 at 10:40 PM Olga Kornievskaia > > > wrote: > > >> From: Olga Kornievskaia > > >> > > >> Add a new hook that takes an existing super block and a new mount > > >> with new options and determines if new options confict with an > > >> existing mount or not. > > >> > > >> A filesystem can use this new hook to determine if it can share > > >> the an existing superblock with a new superblock for the new mount. > > >> > > >> Signed-off-by: Olga Kornievskaia > > > Do you have any other thoughts on this patch? I'm also wondering how > > > you want to handle sending it upstream. > > > > James Morris is the maintainer for the security sub-system, > > so you'll want to send this through him. He will want you to > > have an ACK from Paul Moore, who is the SELinux maintainer. > > In the past I've pulled patches such as this (new LSM hook, with only > a SELinux implementation of the new hook) in via the selinux/next tree > after the other LSMs have ACK'd the new hook. This helps limit merge > problems with other SELinux changes and allows us (the SELinux folks) > to include it in the ongoing testing that we do during the -rcX > releases. > > So Anna, if you or anyone else on the NFS side of the house want to > add your ACKs/REVIEWs/etc. please do so as I don't like merging > patches that cross subsystem boundaries without having all the > associated ACKs. Casey, James, and other LSM folks please do the > same. Sure: Acked-by: Anna Schumaker Are you also going to take patch 3/3 that uses the new hook, or should that go through the NFS tree? Patch 2/3 is a cleanup that can go through the NFS tree. Anna > > -- > paul moore > www.paul-moore.com