Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp777898rdg; Wed, 11 Oct 2023 05:27:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE8emPnZiBGuZAg45jSvnUVrBYftQJXx5eUAl+VKh3qt1JppB+Zegkyz7WBQOHPOn0IpStM X-Received: by 2002:a17:90b:3b92:b0:27c:e21b:725d with SMTP id pc18-20020a17090b3b9200b0027ce21b725dmr5377500pjb.32.1697027269152; Wed, 11 Oct 2023 05:27:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697027269; cv=none; d=google.com; s=arc-20160816; b=iBX/tBYUiMMIYdAH6SxssrxfwQkclB2ufxQ0Ki9m3zOzxadva/504bnyy4x0H0gHr4 sK9zpPf+ET0b0su0kto8aVkcGvp6gsJPUv5EjKHA9hoUigLXDExlrbX95Pc8HqST/BVs i/qayfaR8Z4iPqbQARaO/89lGJeWBtnDeFcxxZ+iWuTGlLDyec/WX4xVCIzg5M0r+kZM +Jtmi70T/2D2MlLujyApsOql7TrmNhDCGoWf1kmRWGH4USzvHwCAGf+7X2kQNP/xkssI tg1wAIUjnLxKDpY691tnjULNbbRJRhi3o9YTGAacICXNQCL7zZgypWPJuT8pufa6AdCl LQUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature; bh=XLGYNIpBGTpFoman1F31pR+A7u+/GIIcO6T6txA/HVQ=; fh=L/CT3DlwAf4FBuHkpx3rhtZ70jQMEjcY7oV78sto2tA=; b=WaBTn48irPAv7zpHZDgspxOtjycYcf5znoFfzY2lZG3xi2q6C29VEQsrJqcMpD3Ioj W+adsNuZbMfEg2jMRa4AwwDA64bY6yZF0/0SdR58T174mWC0ur88/GTQ8UikQ0g1Qf2b Pd+WjfFL60Y6bZTSn8uxpsLm5Wy0MHn4jgb2Dsa+GaZafZIQnzmnTgMV5wsSpPI+g5Uz 8IH2BqkUx+BOChLRjt5/o1cGfd586nu9AORqA3RBzI61iNvipstwH4zkCWcbCFZWeveh HAcClDbRpViJsmP5pGNE2Gm/WvHNlfuOq7GLrejjqjwJmvA1e0Rgj7SlaehwQPPkZHfW 4RVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=d1ouo4ys; dkim=neutral (no key) header.i=@suse.cz header.b=KNdLDwJc; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id lr6-20020a17090b4b8600b0027779681be6si15561900pjb.70.2023.10.11.05.27.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 05:27:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=d1ouo4ys; dkim=neutral (no key) header.i=@suse.cz header.b=KNdLDwJc; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 7AF86836E259; Wed, 11 Oct 2023 05:27:46 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234974AbjJKM1p (ORCPT + 99 others); Wed, 11 Oct 2023 08:27:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346870AbjJKM1f (ORCPT ); Wed, 11 Oct 2023 08:27:35 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C379DB; Wed, 11 Oct 2023 05:27:33 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 04C211FEAA; Wed, 11 Oct 2023 12:27:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1697027252; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=XLGYNIpBGTpFoman1F31pR+A7u+/GIIcO6T6txA/HVQ=; b=d1ouo4yssFmMN4hXj7YbQ1/bxrm535wo+ovssb3YHlZbR9cXMgnQOp+JhjK+IePE4+qlqj 8zBlPV09rDCPNnimAInT+7TBIrkCZLcKlaQ7NnFWt7HNxWPySd9+tivCWbsAG0HQOcTHKq KiZqbYGPvk/dt/LL76CA3TPCmXGVm00= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1697027252; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=XLGYNIpBGTpFoman1F31pR+A7u+/GIIcO6T6txA/HVQ=; b=KNdLDwJcimYu5q45lemc7ttQM9SKBG6AuDTAgenwRrOrrOKp8yr3lxkef5StxJdndiKa6b oQ5saYsh2tXbveAw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id E6128138EF; Wed, 11 Oct 2023 12:27:31 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id JxQdOLOUJmWvKQAAMHmgww (envelope-from ); Wed, 11 Oct 2023 12:27:31 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id 5C882A05BC; Wed, 11 Oct 2023 14:27:31 +0200 (CEST) Date: Wed, 11 Oct 2023 14:27:31 +0200 From: Jan Kara To: Max Kellermann Cc: Jan Kara , Xiubo Li , Ilya Dryomov , Jeff Layton , Jan Kara , Dave Kleikamp , ceph-devel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-ext4@vger.kernel.org, jfs-discussion@lists.sourceforge.net, Christian Brauner , Yang Xu , linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v2] fs/{posix_acl,ext2,jfs,ceph}: apply umask if ACL support is disabled Message-ID: <20231011122731.qhxvdvzfub53t5v2@quack3> References: <69dda7be-d7c8-401f-89f3-7a5ca5550e2f@oracle.com> <20231009144340.418904-1-max.kellermann@ionos.com> <20231010131125.3uyfkqbcetfcqsve@quack3> <20231011100541.sfn3prgtmp7hk2oj@quack3> <20231011120655.ndb7bfasptjym3wl@quack3> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Wed, 11 Oct 2023 05:27:46 -0700 (PDT) X-Spam-Level: ** On Wed 11-10-23 14:18:45, Max Kellermann wrote: > On Wed, Oct 11, 2023 at 2:07 PM Jan Kara wrote: > > Indeed, *that* looks like a bug. Good spotting! I'd say posix_acl_create() > > defined in include/linux/posix_acl.h for the !CONFIG_FS_POSIX_ACL case > > should be stripping mode using umask. Care to send a patch for this? > > You mean like the patch you're commenting on right now? ;-) Yeah, OK, that was a bit silly ;) I was too concentrated on the filesystem bits. > But without the other filesystems. I'll resend it with just the > posix_acl.h hunk. Yup, and a bit massaged changelog... Thanks a lot! Honza -- Jan Kara SUSE Labs, CR