Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2041041rdb; Tue, 3 Oct 2023 08:32:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGl+XUl2TrPCTWVkSbOwIrZVEMDPgkJOgom2Rsb5PWd6B7atKgUV8X172z2KfK68JEPDvy6 X-Received: by 2002:a17:90b:1d08:b0:274:84f3:d73a with SMTP id on8-20020a17090b1d0800b0027484f3d73amr12917016pjb.28.1696347163846; Tue, 03 Oct 2023 08:32:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1696347163; cv=pass; d=google.com; s=arc-20160816; b=f6HqMeoCa/415q3yNyjgp6/7acN6WU6+wHRjtV+dNbXmPWbZpF/fpjJOZJZrZAU/7T rjewpe2FVB6yT6pc4I4b+oajawgGFyYlAYZeEymWMGK2jaQZ4lS0CU+7ruOzuSPgmx5a Eie4QAANyaZ1w1aiNUtx//uvFzJ6Yla3mPpAj0rvWixcvPDJRChgPK+CpElON+mQhofs rMPJ490KbqiKGy/d1/GNWWCOVJ+YaRpaMP4k7xYVzPwZR4rze9F5oAZ2pbOawoNPhYV+ atcCvhfERUm//eCVN2Ge0GQND0mGlWfUiDhGdvECmhRdo4WIMZTlV/Yjt22q/e9MyV+T FJzQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature:dkim-signature; bh=wfJPmEVc2goe+u1Bm1OpxS0ARFXCIp8Rt2rrMdUITSY=; fh=AVv/EBseKiGbN0jh1i++lmpToZk+SGcEjFpQg96c7Rg=; b=hvuJaFKIt+G1XPQCS4VFIfwLkDWaQUTcH91HR1woTlHvXrV+uAWmBNAdr9ZXAIoSQ3 mZkUJn7E6tHeZSlwyVSa9wLVzI6tFET7vsz81peoiLiopTBfpDMXbhhEq2rBiInMbBQ2 CUHdCLg+KqCxN4gFIPyyY8r0QLplDDXzC43k2Ffc3TG/X3gMZrvvp6ldbEhmQBp76XPi d3lQAG4wKSIVx3Fs55PH1jYyhNkIzjAdQ4dlmz+P8OtrSnOx+wxxAZRmQajqteoS8Nld P+vsJ/oiwJY1wQ14ezs/UId5POpJQUVMniG6zZjskfiI6a/uKMk9ZYVH3i1OrYz3oirL wXfQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=V5+K7E1v; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=kK46OhYM; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id w8-20020a63f508000000b00584a4a74243si1634341pgh.771.2023.10.03.08.32.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 08:32:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=V5+K7E1v; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=kK46OhYM; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id A363280236F8; Tue, 3 Oct 2023 08:32:42 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232513AbjJCPcn (ORCPT + 99 others); Tue, 3 Oct 2023 11:32:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231590AbjJCPcm (ORCPT ); Tue, 3 Oct 2023 11:32:42 -0400 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E14283; Tue, 3 Oct 2023 08:32:39 -0700 (PDT) Received: from pps.filterd (m0333521.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 393DtiOi017796; Tue, 3 Oct 2023 15:32:15 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=message-id : date : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2023-03-30; bh=wfJPmEVc2goe+u1Bm1OpxS0ARFXCIp8Rt2rrMdUITSY=; b=V5+K7E1vd2ZHIailo/+8KZrT83prk75WifwVYFoop5TCgazEwMb9vTLmLmZTikBB6Kig J14Mu979yk9LplAplASg+Q8c8ZrQmD6RYovEyYUIITwOhnQpBTYEYyxH3fC/pvu8wyS0 jFH1WOuxwSFuj635hX+PXqIiYP1MokdXbfX5kfdFcoqVpVPMtFtFfUCAQ/65/laDD0xZ Fmih0okWSAsIgFKUZURsMQGuROZJL6gJNPGO+s93eig06BYpGNXABjJNdR+s1Oa2/ET4 //zUrMPYtnIaUjeyltaM7EpDWJf92jNR6vjjLVhIRuxQw5R50zntrtOS7sLP3hqhJzMw BQ== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3teakcd3b6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 03 Oct 2023 15:32:14 +0000 Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 393F4dT6002846; Tue, 3 Oct 2023 15:32:13 GMT Received: from nam02-bn1-obe.outbound.protection.outlook.com (mail-bn1nam02lp2040.outbound.protection.outlook.com [104.47.51.40]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3tea465r42-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 03 Oct 2023 15:32:13 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Vifhe59R8iZHf+Zwgd2yt5NQsRnct/H17ylcYfq6T6/VRCgeSPXcS3UKXyOL0J9O3iqdOEmU9Wt2lfcRC0ic+8gJPhVB6BNq0FnUyYXofknwtl0ppPv1ksM0sGmCLNEEKfDj1JcRqpryzdS9Et5U7UKoBVLaeva4ZxS7FUG47ura84zDY9R/Ofk0wft4NpJG3Alk43XoNzAKMJc/hcRYGbjZhcJYYZDWVH+3BOqWCZE8wAkf/L0XB5j+3UWpUtkjGkmznLKF8dHFbBKMrUFErab7na/5agRnkK5hIXkmuAN/Or+XjLh3vbYi7ri0o1x/FpcfsOhOBngcXbx23AeMGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=wfJPmEVc2goe+u1Bm1OpxS0ARFXCIp8Rt2rrMdUITSY=; b=XMM6BPVzls5+d+gzYGR+7cqlUkOhXhet/R+UshP33qV9zZq8OwbUFCCaeg9DxqpsuwgbE5/fU2asYEwQw/QIp9AsoMZvLMwqbjMsFoYg3qoNhN9Zc+IuIQ9Ewo3JYKvjY3JYzmSjqJq9hEsSBPavkCAPKmjdu4sjfgyirXUrOBNwXfJIha/s/LqySdXzLJT0spf4sDm7nb/0BJtqbU/5a8CdLFTjJd8w6Sqc/9VMf1ZV60pZkm73MtznX8zAOj2RQ0l+Tj7Kz/3f/aGJdpAv3jKhSBWTk/pglpLxvZCyz5N8f3tg0vt4/fdVMuj9tS3ak/S1795Jk58JFVEYP1DG0A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wfJPmEVc2goe+u1Bm1OpxS0ARFXCIp8Rt2rrMdUITSY=; b=kK46OhYMy+2eAYc4fNsYJ1PT3y8X0XUCCExKeIaHE0d5uR6Ygs0NL4WpFuNWnDkPe9S6xxrjdX0Bdi24OEHd7feek61m0jG6Z/SjBg0sOo8+wn17GnYrO+bR0uk2FI7+JFg19b1TsyrQioGlizpx/qGQtP4dxJsn1MGqKoEg7vU= Received: from MW5PR10MB5738.namprd10.prod.outlook.com (2603:10b6:303:19b::14) by MW5PR10MB5691.namprd10.prod.outlook.com (2603:10b6:303:19c::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.30; Tue, 3 Oct 2023 15:32:10 +0000 Received: from MW5PR10MB5738.namprd10.prod.outlook.com ([fe80::5943:cf66:5683:21be]) by MW5PR10MB5738.namprd10.prod.outlook.com ([fe80::5943:cf66:5683:21be%4]) with mapi id 15.20.6792.024; Tue, 3 Oct 2023 15:32:10 +0000 Message-ID: <69dda7be-d7c8-401f-89f3-7a5ca5550e2f@oracle.com> Date: Tue, 3 Oct 2023 10:32:07 -0500 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] fs: apply umask if POSIX ACL support is disabled Content-Language: en-US To: Max Kellermann , Xiubo Li , Ilya Dryomov , Jeff Layton , Jan Kara Cc: ceph-devel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-ext4@vger.kernel.org, jfs-discussion@lists.sourceforge.net References: <20230919081900.1096840-1-max.kellermann@ionos.com> From: Dave Kleikamp In-Reply-To: <20230919081900.1096840-1-max.kellermann@ionos.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: CH2PR07CA0030.namprd07.prod.outlook.com (2603:10b6:610:20::43) To MW5PR10MB5738.namprd10.prod.outlook.com (2603:10b6:303:19b::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MW5PR10MB5738:EE_|MW5PR10MB5691:EE_ X-MS-Office365-Filtering-Correlation-Id: 15d25adf-1463-47a3-1167-08dbc425e8ea X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: dkjmPolcGH9svYH5kmzoBYbYF3siRj3kUT8t11om61VuJ26JItGvxZKreNpYGP6oYB/J5W0tAfiiUqwSmLOKXbuyeu36hl7MwIs/BZr+azrfKzpr1bAGiRlbsMwdCfF5kme58CvaHqZ/YNtqoyeFj/2zmffzoWOcf8TBgvV4vsMplQHkB7JWLEHj59M/LgGYOPoSlZILIxApgwozJSSraV0QMIwwNi9VTejEPN0vQzyYKQ6pF3Icml8oHjfxUkQ29anyBHFDKIVaOzTUB4tDD2toebu/5GVdv6ONhlQxyU+vXK9VP7wppKxHGatFC+Q3BnbK3pgolcP8skIeWQ9KyQNZ6TmeCWqONyeRio9x8giclbIWKD86zfNjXSGObC35ttWRkDqVTHBnXuFWpNU20EMwf2XN5OrQ0yF9DeIkSox2Yg6WX/E5bPN3Ck0QoUhZh6cwYPItc4fhIGSSP29RbZpEq+YQK8pvNZmQgfNuwTJWznXEbEOa3UceNYrsmDPyN2Hncc7n743zdZQK4K7RMe8xRul/wTwzO0WPinG9zqFmnoznThI480/HHr240B9sX4Vdlq1k/m8ft/tF4gfwU1x1zzBvitb7UjBuDgGvHekYTwGJNRXj/hpRwmgoo2hE51pt4M8Vs1CiDV2UKLcQKQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MW5PR10MB5738.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(39860400002)(376002)(136003)(346002)(366004)(396003)(230922051799003)(64100799003)(451199024)(1800799009)(186009)(26005)(6512007)(86362001)(31696002)(36756003)(38100700002)(66476007)(66556008)(478600001)(31686004)(316002)(2616005)(5660300002)(66946007)(44832011)(6486002)(8936002)(110136005)(4326008)(6506007)(41300700001)(8676002)(6666004)(2906002)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?NzRITkVUWkZyYTIxWml6clFNT2RzRGZRaEtQS3pndmRWMGkzcmdReHliUzU1?= =?utf-8?B?aDY1YWJiZEhrOGlqWG9HYXY0UVZCMlV5TXQwUGxMSk9ZT2gzRi9BOTlJRXJk?= =?utf-8?B?bUtLNnR4bkxlODZUMXkzWTJZMEQzVDlpMFlXTjdaMGxSdVBIaEoxaCs3ZGwy?= =?utf-8?B?YWtMc09Pa3Rad2dQWjltWmdDZUdNVzNoaW9SWUxsU3lWdFBLTXhRRlk0SFIz?= =?ut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8?B?UEJORHRTdGJ5VkVJN2hhSDhudjFMZHZBSDFMeHNOQk15N1ZkYldhdnlEdXk2?= =?utf-8?B?UzdVWjhuMXBVUGFLSXRBdEZwOVJadG8raHo5T3o3SzQzYkc3N3ZGYURDN0pZ?= =?utf-8?B?YXhiVWRrWWFtbHNEaExsb0tJZzRsZWRkNzJET3k3VGpLbkY5T2k4V0t3WTVG?= =?utf-8?B?RUZMMEVCZmZQQkErWncxOUhzd0RTNitwT3c1c2V1WTYrWnhDRzJwU3dQZUtN?= =?utf-8?B?aEZ3SGV5WGliKzVJTVRPRzlVR3hvMXZUUGVsTU8wYWhFa1lTVDQ3TUptNDQ3?= =?utf-8?B?Nmo2N3ZaUXF4K3M1QTk0bi9aL01kVVNjaWhrbHBEUXJiUXNJSUVmcFp4Zk9k?= =?utf-8?B?SGZoQ09NUGswVkxia3g0TnlnRXBJakp4SmtFRzk1ZHBDNTlYL013T2czVy80?= =?utf-8?B?U0tiUnY3SWlvM2JBOXFKLzRQc3BDNFFseFMyUXcvUDlVNkxjR1pjRWpxQ21j?= =?utf-8?B?YXI3RzdhMWNWeUczKzltYkUxdk1TTVlCMUlKTXl3REtocFNTc2hYTTBzVzRO?= =?utf-8?B?S21Ba3hBY0tJWDkvZTRWbllSR2tlV1RQWmVQMTQxM3dLTUJRbXhFZ2M1NHh5?= =?utf-8?B?ZGtodVNnQlJ4OExiRWRmcWtFS0hPdTlvcjd0Y1o3WTZ2Mzg1dz09?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 15d25adf-1463-47a3-1167-08dbc425e8ea X-MS-Exchange-CrossTenant-AuthSource: MW5PR10MB5738.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Oct 2023 15:32:10.4890 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: YPAzYSCwFzURUO4pp5z2QY2S4NAc03Kxo8qQt5Ni3xxcuP1boNHqB7n3IfHwl6TgYmvsjM+OscCw66F5Cliy/xAX9R8jp/BkeByPT47n5o4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW5PR10MB5691 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-03_12,2023-10-02_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 mlxlogscore=701 mlxscore=0 spamscore=0 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2310030116 X-Proofpoint-GUID: IVcy5QIRTvzRAKsNGbCHLqEbFuVZXQwb X-Proofpoint-ORIG-GUID: IVcy5QIRTvzRAKsNGbCHLqEbFuVZXQwb X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Tue, 03 Oct 2023 08:32:42 -0700 (PDT) I think this is sane, but the patch needs a description of why this is necessary for these specific file systems. Thanks, Shaggy On 9/19/23 3:18AM, Max Kellermann wrote: > Signed-off-by: Max Kellermann > --- > fs/ceph/super.h | 1 + > fs/ext2/acl.h | 1 + > fs/jfs/jfs_acl.h | 1 + > include/linux/posix_acl.h | 1 + > 4 files changed, 4 insertions(+) > > diff --git a/fs/ceph/super.h b/fs/ceph/super.h > index 51c7f2b14f6f..e7e2f264acf4 100644 > --- a/fs/ceph/super.h > +++ b/fs/ceph/super.h > @@ -1194,6 +1194,7 @@ static inline void ceph_forget_all_cached_acls(struct inode *inode) > static inline int ceph_pre_init_acls(struct inode *dir, umode_t *mode, > struct ceph_acl_sec_ctx *as_ctx) > { > + *mode &= ~current_umask(); > return 0; > } > static inline void ceph_init_inode_acls(struct inode *inode, > diff --git a/fs/ext2/acl.h b/fs/ext2/acl.h > index 4a8443a2b8ec..694af789c614 100644 > --- a/fs/ext2/acl.h > +++ b/fs/ext2/acl.h > @@ -67,6 +67,7 @@ extern int ext2_init_acl (struct inode *, struct inode *); > > static inline int ext2_init_acl (struct inode *inode, struct inode *dir) > { > + inode->i_mode &= ~current_umask(); > return 0; > } > #endif > diff --git a/fs/jfs/jfs_acl.h b/fs/jfs/jfs_acl.h > index f892e54d0fcd..10791e97a46f 100644 > --- a/fs/jfs/jfs_acl.h > +++ b/fs/jfs/jfs_acl.h > @@ -17,6 +17,7 @@ int jfs_init_acl(tid_t, struct inode *, struct inode *); > static inline int jfs_init_acl(tid_t tid, struct inode *inode, > struct inode *dir) > { > + inode->i_mode &= ~current_umask(); > return 0; > } > > diff --git a/include/linux/posix_acl.h b/include/linux/posix_acl.h > index 0e65b3d634d9..54bc9b1061ca 100644 > --- a/include/linux/posix_acl.h > +++ b/include/linux/posix_acl.h > @@ -128,6 +128,7 @@ static inline void cache_no_acl(struct inode *inode) > static inline int posix_acl_create(struct inode *inode, umode_t *mode, > struct posix_acl **default_acl, struct posix_acl **acl) > { > + *mode &= ~current_umask(); > *default_acl = *acl = NULL; > return 0; > }