Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp10351pxu; Wed, 6 Jan 2021 19:17:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJys9HvefwN6mFeGjmVkCkbgAT1JB4xPNvnL8g3gO8qCspmC0ES3He+pi6qA/ShydC8LzNjg X-Received: by 2002:a17:906:351a:: with SMTP id r26mr4625291eja.409.1609989467946; Wed, 06 Jan 2021 19:17:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609989467; cv=none; d=google.com; s=arc-20160816; b=rfFZ8C2lhBmj5JvlSuBWlHCzQe65xPI7k8EqCZ+p3Ckqc6smjz/HKmwZOUTntE2B+M lSgfX2zWmwd4sfq+CYall1DZ90cmpFw2FUeE+O//I9DNM4gDzj+ZT9U2jYI+GqEaVIHz Q8IKWNPGYjR2BodbAlFI8fHdlDbowAJvdIseUVnfYIRNi5hpunRaYEtKgNDzeExMWtlr WQTIQUcQw782mWhFIMRypwGzXhpqzJtHpcoEnUyg5ZdPnm5g6qQ9aboJ6k/H8lwLZVZK ma9yPaW42CTC83SLDmCBCDAkvnRiDk6QBdBrxI/wsMycP3oRnnnOppU/hvfjiAajTeNX O0zA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :dkim-signature; bh=JnlQnHhx2b5xdhpAiAME0OFrhEsB0VJN8KeeeZquzsQ=; b=GnQdXdjl2xKVBv3rppx94eZBVwdJNkoOPM41m5wFfRkm8lB8B3prJUJ47PyHRyW3DC 1Pwq5SmzEsh0PQ+siN9EXz+aKtg7eMzjoIDKe4cZ8HhsVMiYovs3EqwEogypVZFf9HO+ XBQyWNhDzlEk82DpsYNBopGO140D+jsLWuFhRa5pu2XoAlBOXK6NjbhCAW0yvl3VkPTJ TByasa5SJY4VfbBxZqLaHRPI90YcdOY3Gn1K/F1cI6YaHS+EyEegqzUxQDkoGCnMFoM5 DZp8DuF+e4ox5H3ch1Zfy9SNN9Lrjb0Zl5oiLPr8ftFudaVHvqtTlbyleOsbdqLyb/Ye TgCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@dancol.org header.s=x header.b=F1JnKxld; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f26si1562814ejd.704.2021.01.06.19.17.22; Wed, 06 Jan 2021 19:17:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@dancol.org header.s=x header.b=F1JnKxld; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726254AbhAGDQp (ORCPT + 99 others); Wed, 6 Jan 2021 22:16:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725803AbhAGDQp (ORCPT ); Wed, 6 Jan 2021 22:16:45 -0500 X-Greylist: delayed 1972 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 06 Jan 2021 19:16:05 PST Received: from dancol.org (dancol.org [IPv6:2600:3c01::f03c:91ff:fedf:adf3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4DD90C0612F0; Wed, 6 Jan 2021 19:16:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dancol.org; s=x; h=Message-ID:References:In-Reply-To:Subject:Cc:To:From:Date: Content-Transfer-Encoding:Content-Type:MIME-Version:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=JnlQnHhx2b5xdhpAiAME0OFrhEsB0VJN8KeeeZquzsQ=; b=F1JnKxldsbMpLgyuQhr06+ON8y hfuDQ7Qg1WSpHoE8BZjsBZugCrN3usRSfaQ2FPlak31Iesh1rYN6U1RlsboEKl3A2lK9PqCvfh1PR mLjOK7gcvd75e6UDOJrpf2HgaseIhPxNMEmmgG79gzwRql+5V6d0LLUpdUhN4fMIgwU8GVqWyXVie ekOA3zikq8x0O2FTKKJboEX0Kx0vaXh8sgDTgVhV3e24a/87KMPNGDav6SQYxVCj0OvOnGpo4MEtP trF3AOJVmSU47zzhuABT9Df6aq38An4qH80V+/i9NhMzVYJad0JRzIu0B6EbAwl8kod4cEB4In+xb 96df383w==; Received: from dancol.org ([2600:3c01::f03c:91ff:fedf:adf3]:53614) by dancol.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1kxLFl-0003na-DZ; Wed, 06 Jan 2021 18:42:21 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 06 Jan 2021 21:42:20 -0500 From: dancol To: Paul Moore Cc: Lokesh Gidra , Andrea Arcangeli , Alexander Viro , James Morris , Stephen Smalley , Casey Schaufler , Eric Biggers , "Serge E. Hallyn" , Eric Paris , Kees Cook , "Eric W. Biederman" , KP Singh , David Howells , Anders Roxell , Sami Tolvanen , Matthew Garrett , Aaron Goidel , Randy Dunlap , "Joel Fernandes (Google)" , YueHaibing , Christian Brauner , Alexei Starovoitov , Alexey Budankov , Adrian Reber , Aleksa Sarai , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, selinux@vger.kernel.org, kaleshsingh@google.com, calin@google.com, surenb@google.com, jeffv@google.com, kernel-team@android.com, linux-mm@kvack.org, Andrew Morton , hch@infradead.org, Daniel Colascione , Eric Biggers Subject: Re: [PATCH v13 2/4] fs: add LSM-supporting anon-inode interface In-Reply-To: References: <20201112015359.1103333-1-lokeshgidra@google.com> <20201112015359.1103333-3-lokeshgidra@google.com> Message-ID: X-Sender: dancol@dancol.org User-Agent: Roundcube Webmail/1.2.3 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-01-06 21:09, Paul Moore wrote: > Is it necessary to pass both the context_inode pointer and the secure > boolean? It seems like if context_inode is non-NULL then one could > assume that a secure anonymous inode was requested; is there ever > going to be a case where this is not true? The converse isn't true though: it makes sense to ask for a secure inode with a NULL context inode.