Received: by 2002:ab2:7a09:0:b0:1f8:46dc:890e with SMTP id k9csp142742lqo; Wed, 15 May 2024 09:50:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXahcXwAmm3VzKEjgNjtHGlWM5VHA92rl0CIvbvsH2Fjp2/FoTjwkRIHz012x/cZBk7QoR/bogkC8Wd7S00WEC1SYS5hlWTuWVd1BDZBQ== X-Google-Smtp-Source: AGHT+IEI7UftmYike1rBwyze/FLsVgRFAzKcAg+BdDViFeyLyVU1m6IBW7oa+SmPmU3AAN5x4Jg1 X-Received: by 2002:ae9:e10a:0:b0:790:99d8:e6a with SMTP id af79cd13be357-792c75f0fb3mr1619999785a.58.1715791804809; Wed, 15 May 2024 09:50:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715791804; cv=pass; d=google.com; s=arc-20160816; b=O3mBXiZhuUoKd3ArpqSPH9Z/2/6giZ9fG0D9fmrXI5ggfOILjMyzjoUcmFup9E6yho VY3WHXk51MV/XnAgg8VkqcPwcK8AEVOHJ/TFIg1XQemrf2R3yKZd5VXavN7SWzKptimb RDD2XysuAzUmkmYd+UmkJT71fMh5M/oPma89LFZH+UqHPAbRwTYX638OuYn9KxCsApJd 9WvizIoZBve2KeR1igWm5QCB7J0EF3RRMT4X4irn4gS3gyWPidj5UZ4FilHczWgNK1kb fdUHbjqryvcgPopZDvYf5BXmsJmEH7o8nnNeCveMkWZ6bekCACSV9U+qGInACoXrgw/k HS4Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=F42uflM5qShUO1F3P/1tLpT50uhOhKM4TnB3rvUC4jE=; fh=qwYZ2PLkM2hBJ1yjJUQaHnP4v2A+GxIOWtlQ5Wh7+9E=; b=v0RKtYdkb8ZRdBBvZaM77GY7W+LCDbZRdge2ro+Ml3iel9sD1PXBs0SqCD6Iz9JvLl br788Uxv5yAZmNtfa+PZrkFOljMkRrNT2sTXBqDhhGbuJ3hljvffyXwzsc3N2VBq7XYz 3pKVnr0ehpE0cwOkcHd6cIsb14Hdm0gcqdjFPssRqJfbMSO/GRJJWO5nqNBgJ8DBhTkZ T2ZwLfYL7+OsoaZzS+LBuZI6I9THk1GaxjfRNyZNdQChVfFkO3WglxkkEOrdyUIxPb/m h9O8xTuz8z3b8COWkiPIp+/OwuhDAEB5w+WeQD0Uz9gNz3RbxKbzxHf0BPwkKriz6zoR NgiQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=O4zNcT7i; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-ext4+bounces-2528-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-ext4+bounces-2528-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-792bf361f60si955823485a.556.2024.05.15.09.50.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 09:50:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4+bounces-2528-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=O4zNcT7i; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-ext4+bounces-2528-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-ext4+bounces-2528-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 85E361C20E02 for ; Wed, 15 May 2024 16:50:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D5BDD4CB36; Wed, 15 May 2024 16:49:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="O4zNcT7i" X-Original-To: linux-ext4@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 559DB482D8; Wed, 15 May 2024 16:49:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715791776; cv=none; b=lPQC9le7oYvt4H69G3xSkBhaqwUKoWy3J6qjWX5SilLuS04eJUPL3uOvaUhBLGufl84kNrTxoqxd+Pg0VKRWykI5jl3ANM4CnWE2Gbi88HPkLivgKkbdTPZXqW4VRy0q5DSOguVceBmBhpaGUEI8mC8/oaxttVw8pWKm2ybZv2k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715791776; c=relaxed/simple; bh=Sy7fg6sLde1LrN5LpXaaDz61xTRkcMNqUiWkoxLXcsw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=efM7k0w/udJEcOBVWhPMTZKQ4POG9PvtJKNKcucQtl6XxnLgUinDCZkC2edx8TL+05O9X9xAR0xjj+EUP/2Mcrqt+PprwSLF8DLQ0Vk3OcKxYwlZW+mtS7QYTwmrYcjxVmWZEr4/xBU9b176Jss8Z5i599rmlHhAQjGUNQh2rgk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=O4zNcT7i; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D6C8FC32786; Wed, 15 May 2024 16:49:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715791776; bh=Sy7fg6sLde1LrN5LpXaaDz61xTRkcMNqUiWkoxLXcsw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=O4zNcT7iz5HQtbHar/FHncoQJ1YmnSfN8JyU1zdQD6MG/3HUUNLFSCrwB/4L9+dXj 2q/GS2QvOkMiMharQ3pMK9LB6UE7eT0TH7Nm3TABVe6lBmQAUJS/IHnW717Sl4icQj H8eAeIyqz7fWCTCRgLP/lng9YbA2F8E0S8lrr3i6HILYpn+4fHulc79NpFFSBIolxu oyj383gmKAJ5j6VeaJML9Ao/OWlKCwlJarLVKS5umJpSNQebl20sb++LjVNZVLQ0Sa ad8AtGuB5hrvFaTMlgk3UxPzx33UQHEuq0DB1Q26pMAuKDjXCHCQdebjYpq/FPlLBT ym8lvekjPKPzg== Date: Wed, 15 May 2024 18:49:30 +0200 From: Christian Brauner To: David Howells Cc: Max Kellermann , Jan Kara , Miklos Szeredi , linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] ext4: Don't reduce symlink i_mode by umask if no ACL support Message-ID: <20240515-unbeschadet-wehrlos-64401692a4eb@brauner> References: <1586868.1715341641@warthog.procyon.org.uk> Precedence: bulk X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1586868.1715341641@warthog.procyon.org.uk> On Fri, May 10, 2024 at 12:47:21PM +0100, David Howells wrote: > > If CONFIG_EXT4_FS_POSIX_ACL=n then the fallback version of ext4_init_acl() > will mask off the umask bits from the new inode's i_mode. This should not > be done if the inode is a symlink. If CONFIG_EXT4_FS_POSIX_ACL=y, then we > go through posix_acl_create() instead which does the right thing with > symlinks. > > However, this is actually unnecessary now as vfs_prepare_mode() has already > done this where appropriate, so fix this by making the fallback version of > ext4_init_acl() do nothing. > > Fixes: 484fd6c1de13 ("ext4: apply umask if ACL support is disabled") > Suggested-by: Miklos Szeredi > Signed-off-by: David Howells > cc: Max Kellermann > cc: Jan Kara > cc: Christian Brauner > cc: linux-ext4@vger.kernel.org > cc: linux-fsdevel@vger.kernel.org > --- Reviewed-by: Christian Brauner