From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8837BC433E0 for ; Thu, 7 Jan 2021 02:43:17 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id D05BC206F6 for ; Thu, 7 Jan 2021 02:43:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D05BC206F6 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=dancol.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id C20548D0113; Wed, 6 Jan 2021 21:43:15 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id BD0CD8D0090; Wed, 6 Jan 2021 21:43:15 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id AE48E8D0113; Wed, 6 Jan 2021 21:43:15 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0178.hostedemail.com [216.40.44.178]) by kanga.kvack.org (Postfix) with ESMTP id 98F148D0090 for ; Wed, 6 Jan 2021 21:43:15 -0500 (EST) Received: from smtpin10.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 4C973180AD80F for ; Thu, 7 Jan 2021 02:43:15 +0000 (UTC) X-FDA: 77677432350.10.foot70_160d080274e6 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin10.hostedemail.com (Postfix) with ESMTP id 2462F16A0D1 for ; Thu, 7 Jan 2021 02:43:15 +0000 (UTC) X-HE-Tag: foot70_160d080274e6 X-Filterd-Recvd-Size: 3784 Received: from dancol.org (dancol.org [96.126.100.184]) by imf34.hostedemail.com (Postfix) with ESMTP for ; Thu, 7 Jan 2021 02:43:14 +0000 (UTC) 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 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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.