Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2734913pxb; Mon, 31 Jan 2022 03:12:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJyiRnAF0sh02ePssb8OKawQJtYX4IVwW9SOYcQ02/75HDLCkCwxzR9tnnQY3us8JF7MxjfK X-Received: by 2002:a17:90a:15cf:: with SMTP id w15mr24062975pjd.79.1643627528636; Mon, 31 Jan 2022 03:12:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643627528; cv=none; d=google.com; s=arc-20160816; b=Y6HUEhoLcyS8KB6Tv8eXyWFUkX8fEMutyQrur0r7/97f5jBG+1TNvWvI1KufD8F92N QCQ+mpMITJ9LIsNyLZMVByLIavrNQtJAN6JXxX3pKhgOf4Lcps98TFGT3E30njKHfD9Y +wDJefVsoTtf07ufJE9LCtQjuVUh1tJpnvFzckt9Pk8u8dzLgdqYFaRMmiTayJ1NhAmJ ueOe7B5WiZiA+YQ3g8zrce9rIMyUYJpld2+3MUl0u60EIZx7s3gFN11gv+6rOWoRIrnm sJYKLMNib9IsZHXN3/p3zPfvaW3Uk+CxZW78vNjdK1i6UMsCHAkpIPGz9PWRV2w2kR99 iPeg== 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:dkim-signature; bh=F3f+nKFjcCkx7vPE/hRl6V7lq9dcKuTW80D9yE8CSto=; b=NmY5ijcdpTpfHwXVb/PxWDmgfEvQVdF31xLkluz3SI9f8JgKk0RuAbb8+Bx+QHDQyA Wcf5rAs4K40KjkQcRFxhirYNTN9E1p5RLDNeY0kkq9hGilgi4EwAqCZGbHH5x510FREL 7TzdBSiaaDowxmmTAPD6u+yyKInFR4nWZ9Jw6BSCy+rTG+RODgGK35I88gXyE8lwTw3Z gh9H9fxDqyswq44DwVP/JS/H2lye/WXGpxcg+02Ji18cx1D0kk0LqqLyotX3ANX/99bX Nuy9ZgtU+RXNKZ7yrIlPOhHZz48O1WkGRUqGtJU5dc6ocy5gQqZtRynFj/fzNKnztvdq LLGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=DTAFDsIi; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j3si13769133plx.168.2022.01.31.03.11.57; Mon, 31 Jan 2022 03:12:08 -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=pass header.i=@gmail.com header.s=20210112 header.b=DTAFDsIi; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349020AbiA1PY1 (ORCPT + 99 others); Fri, 28 Jan 2022 10:24:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245268AbiA1PY1 (ORCPT ); Fri, 28 Jan 2022 10:24:27 -0500 Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 011DAC061714; Fri, 28 Jan 2022 07:24:27 -0800 (PST) Received: by mail-io1-xd30.google.com with SMTP id d188so8121088iof.7; Fri, 28 Jan 2022 07:24:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=F3f+nKFjcCkx7vPE/hRl6V7lq9dcKuTW80D9yE8CSto=; b=DTAFDsIiD03g9kO+vUXAc3AEWeyDlatqfHYEwOuRX4RQ8OLkSFLBGZZQbNVBTrKTal P/8jAPiap4R5Tl5MRkP0FRuoE5RjMLaHYMmwOSoPbrmjlxu888P0EH+WAjqtiisAw5+A cBquXsaDLrcVJRw8bnIinEgfhreeNbO2XZMEH13zvtlaEybgUmuwzVIigwvolT72DiOE mBCmGwUpeH9w1vwayB5QlvSRTIJCW3nXjZCnySyE8Mz09In5/JfEyRdar7dAsKi3BQLe WeROjZlY/YRaFhEPb6clA2p4+Ce83AHKqwBk7Px4r5qu9YNXyK4Nn3GOp3BwutyQ6vMh kgKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=F3f+nKFjcCkx7vPE/hRl6V7lq9dcKuTW80D9yE8CSto=; b=ImWuutgtcc6CfFFQQ/KQbz1qJB7scsqXW8te+rXL90Wg7BV4r6ChXHOGR8/FUhWH93 T1kmV9mwgTpQoucFcA0XTH1ye/Kkgl0LKFHYV2CrvggtKMBEQKsBRzq7mnC7vhHUUly2 2xTBQF36m//CX+johW79gItOo4piqzeu+D9a2s0FDkwRniZTOXhME8JhszGwCMlyseAm XYhPywMJzcH7lbFhaOnMNKhPQ2hCCuEJEFRz8l2Fh8F8re+Ebzd4Jq0QJVZC8p8lMrwI xYIo850Q4NMDD1pVmYjtZ+zmRj/ILVEDs1bgNBhPb/ZhSjO2DgSrGHdKpWQtknK0Nbik dHQQ== X-Gm-Message-State: AOAM533PIXQoJfi7mVh8aBnBRGgukhQbKP78De4sJkOj2nT7LVFFkH1V GkRnJVnDqRJgWozD3EHMqYWR6FpmG7Daswi/XyU= X-Received: by 2002:a02:b0c3:: with SMTP id w3mr5129229jah.1.1643383466450; Fri, 28 Jan 2022 07:24:26 -0800 (PST) MIME-Version: 1.0 References: <20220128074731.1623738-1-hch@lst.de> <918225.1643364739@warthog.procyon.org.uk> <922909.1643369759@warthog.procyon.org.uk> In-Reply-To: From: Amir Goldstein Date: Fri, 28 Jan 2022 17:24:15 +0200 Message-ID: Subject: Re: [PATCH v2] fs: rename S_KERNEL_FILE To: Al Viro Cc: David Howells , Christoph Hellwig , Linus Torvalds , linux-fsdevel , linux-kernel , Chaitanya Kulkarni , Miklos Szeredi Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 28, 2022 at 3:17 PM Al Viro wrote: > > On Fri, Jan 28, 2022 at 11:35:59AM +0000, David Howells wrote: > > > > Whether deny rmdir should have its own flag or not I don't know, > > > but from ovl POV I *think* it should not be a problem to deny rmdir > > > for the ovl upper/work dirs as long as ovl is mounted(?). > > > > What's the consequence of someone rearranging the directories directly in the > > contributing dirs whilst there's an overlay over them? > > "Don't do it, then - presumably the kernel won't panic, but don't expect it to > try and invent nice semantics for the crap you are trying to pull" IIUC, I think that is the point Dave was trying to make. Nothing good can come out of allowing users to manipulate the overlay upper/work dirs, so denying rmdir on those dirs that are already marked with the OVL_INUSE flag is probably not a bad idea anyway, so ovl and cachefiles could potentially use the same flag with same semantics. Thanks, Amir.