Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp756975pxf; Wed, 24 Mar 2021 15:27:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwEgZbEHSUy7IFlAV0zcrhCxKOci8OPfEH3rXTDoIDSNA1dVGdGl/OsFuGgW9QWBMExC4fa X-Received: by 2002:a05:6402:95b:: with SMTP id h27mr5836171edz.93.1616624864611; Wed, 24 Mar 2021 15:27:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616624864; cv=none; d=google.com; s=arc-20160816; b=aHNeE4Oco+gpJG5wEXvtiu+3nHVgGR4ZPtSFvCxnKwYOgVPDm0EoFbWT1+RQqcVfO2 3ok/AUbdeNiehEeM4IqNSZ+APo8qQo1IVKhfowRzJxBXHYC3Kx7dTA0+wttNO7/rCp0k lSuwLfzs4gr4xkVoNektmYbBGMnsEwvTEqJ8xF6YPEydIKqHn90JnI6t85bCyvfSn1zd ECUzZHRDGqa5B6fHWEuO4x0kxHsb6/Hkdp44BaFLbopdTf2MblnJwKiWj6+JaKRehAlV yKGMN2JkLb4hAX4EQIG3eadEYA4AXHy/NmCCVBsn7MiF3PWsqsTUbVpFN4GiLDoG0TgH n8ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=tPqqCK7YsPTDVikPpYbGxQ+9TFkP2R9/zz0bNKUE6oE=; b=XoXL1FDbLZxEcwmkUhGWd3wX6yDI9Yk6cLTYK0YvqHMagaCgvHNGAzdEVFO4bxXAJY rO3AaT+azi3ISAN3GxFf7j9GHCKE4tl2HKne62FBMOwLS3pg0WpNPfsav9KuYwhZcVJ9 M0dkZWhw+KtV/PJ0M6+8QgbodLNqGelesQjuyKpSPkITMTd6MqdEUHE6QKf7uILnURLw wKwpApljG1CHr6Y7Om56iAeyFD76IUPlfAQsNUrdj7VzI1b2vtS4gStpWtnaKFA02oRp 5EsLu6DhuCNqzEWI00pb/btCt694+db2KpDydYoyleECKQQyEvSMtV459rvRSETt5+1L MQzQ== ARC-Authentication-Results: i=1; mx.google.com; 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 f12si2904814ejc.552.2021.03.24.15.27.20; Wed, 24 Mar 2021 15:27:44 -0700 (PDT) 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; 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 S232862AbhCXFS7 (ORCPT + 99 others); Wed, 24 Mar 2021 01:18:59 -0400 Received: from zeniv-ca.linux.org.uk ([142.44.231.140]:41042 "EHLO zeniv-ca.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232648AbhCXFS6 (ORCPT ); Wed, 24 Mar 2021 01:18:58 -0400 Received: from viro by zeniv-ca.linux.org.uk with local (Exim 4.94 #2 (Red Hat Linux)) id 1lOvuz-008kp0-6V; Wed, 24 Mar 2021 05:18:57 +0000 Date: Wed, 24 Mar 2021 05:18:57 +0000 From: Al Viro To: Miklos Szeredi Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Christoph Hellwig Subject: Re: [PATCH v2 03/18] ovl: stack miscattr ops Message-ID: References: <20210322144916.137245-1-mszeredi@redhat.com> <20210322144916.137245-4-mszeredi@redhat.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-kernel@vger.kernel.org On Wed, Mar 24, 2021 at 05:09:59AM +0000, Al Viro wrote: > On Mon, Mar 22, 2021 at 03:49:01PM +0100, Miklos Szeredi wrote: > Umm... No equivalents of > /* > * Prevent copy up if immutable and has no CAP_LINUX_IMMUTABLE > * capability. > */ > ret = -EPERM; > if (!ovl_has_upperdata(inode) && IS_IMMUTABLE(inode) && > !capable(CAP_LINUX_IMMUTABLE)) > goto unlock; > Nevermind, you take care of that in the caller...