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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B557EEB64DD for ; Thu, 13 Jul 2023 12:10:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234072AbjGMMKc (ORCPT ); Thu, 13 Jul 2023 08:10:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230514AbjGMMKa (ORCPT ); Thu, 13 Jul 2023 08:10:30 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33486269F; Thu, 13 Jul 2023 05:10:30 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B86C561045; Thu, 13 Jul 2023 12:10:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 94DDEC433C7; Thu, 13 Jul 2023 12:10:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689250229; bh=D9pkBgTJsVy9wzntreGQ5cEydaCWdRG9KOblpsQ7xB4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YcmrqQv3iQdWLMkTHd9dOPjOAsbBikoQ+YES48c69vtY1FnAvWHaf4WlhuKspY+LJ fJWdjOAC+jY4ka5L92La5JYLModBtoMcEEcULA+EucC9+kHMMgZQTjlvfbidO4CCUO DYweMkfShgmSB92/ornA5omva5HXPvJZjnuOi+OSSVf3LnBFDLLlIkOXnucizMiERd N1eH/LHhwC5yzshcyfPbi/TP/9KkYT8yXmaEB4bL8nDquhjMGO+ITDqlgtBz6gFEEB bORNE8N4sjIrbbkayMFUhHsVI3Jpn4IC5OduJ982v0WAUm95KLeotKBlvHkx7psyJC og7OOVduvDJBg== Date: Thu, 13 Jul 2023 14:10:24 +0200 From: Christian Brauner To: Christoph Hellwig Cc: Linus Torvalds , Florian Weimer , Aleksa Sarai , linux-fsdevel@vger.kernel.org, Al Viro , stable@vger.kernel.org Subject: Re: [PATCH v2] attr: block mode changes of symlinks Message-ID: <20230713-kennen-randvoll-a55bd59550ea@brauner> References: <20230712-vfs-chmod-symlinks-v2-1-08cfb92b61dd@kernel.org> <20230713114029.GA23375@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230713114029.GA23375@lst.de> Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Thu, Jul 13, 2023 at 01:40:29PM +0200, Christoph Hellwig wrote: > Looks good: > > Reviewed-by: Christoph Hellwig > > one minor nitpick below: > > > if ((ia_valid & ATTR_MODE)) { > > + if (S_ISLNK(inode->i_mode)) > > + return -EOPNOTSUPP; > > Maybe some of the rationale on why we have this check from the commit > log should go here? I'll add a comment to the patch.