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.8 required=3.0 tests=BAYES_00, 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 856EDC432BE for ; Fri, 27 Aug 2021 10:26:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 583DD6101C for ; Fri, 27 Aug 2021 10:26:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244708AbhH0K1d (ORCPT ); Fri, 27 Aug 2021 06:27:33 -0400 Received: from zeniv-ca.linux.org.uk ([142.44.231.140]:32804 "EHLO zeniv-ca.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233220AbhH0K1c (ORCPT ); Fri, 27 Aug 2021 06:27:32 -0400 Received: from viro by zeniv-ca.linux.org.uk with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mJZ05-00GToP-0I; Fri, 27 Aug 2021 10:22:17 +0000 Date: Fri, 27 Aug 2021 10:22:16 +0000 From: Al Viro To: Amir Goldstein Cc: Paul Moore , Gabriel Krisman Bertazi , Jan Kara , linux-fsdevel , Matthew Bobrowski , Greg Kroah-Hartman , Tejun Heo Subject: Re: audit watch and kernfs Message-ID: References: <20210812214010.3197279-1-krisman@collabora.com> <20210812214010.3197279-10-krisman@collabora.com> <87tujdz7u7.fsf@collabora.com> <87mtp5yz0q.fsf@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Al Viro Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Fri, Aug 27, 2021 at 12:36:23PM +0300, Amir Goldstein wrote: > I did not check if it is possible or easy to d_instantiate() in kernfs > mkdir() etc like other filesystems do and I do not know if it would be > possible to enforce that as a strict vfs API rather than a recommendation. For the second question: it would not. E.g. a network filesystem has every right not to give you the data you would need to set an inode up - just "your mkdir had been successful".