Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp490760pxb; Wed, 24 Feb 2021 07:27:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJwklduu3WSDy/HZvd23lIBcQ2MmMx2uEu8yVN9px/8rN9YOXcExiX/yW+Fr46O2uoz7fqix X-Received: by 2002:a05:6402:1445:: with SMTP id d5mr4351105edx.174.1614180447211; Wed, 24 Feb 2021 07:27:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1614180447; cv=pass; d=google.com; s=arc-20160816; b=B41S8qogleZXjQoVVGh24QKwcrmP+yBs1FX3GxzEXFTfoztE/Nm2L370wy+9/LCy1S 9eKVylORwxeDHaDshf08I8u67wY5I6hM1nWmuySGxZZXfYMjm7xLZGugp2JgJB99IMOw IoUuFnBX5drPX5z+Vu03CWnuxDlernlOaUDYwo86BD2On8YQlV23YD+O/Sfevy51JhA7 q6JovXNxDpKBlc2JxgOPBE+ZrOGt2RbiBWRtlkBeYLtg4LEljYyA2RLkypW9Whbonn2u A1fkNC0FrntTVAWstNatyx65ZA6yTwTAgM05SGuhK8JnAlUwUHFmzQ6tvVUvZqITvKED tAxw== 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 :msip_labels:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=ib+n3nDui+eVVFoX20SX4f4vIrBJPdHWHEzS3IOnEiI=; b=IvL0neGvNqYsuSypltQxu/OkzyBQP8Au48dN0rXOH+fQn66zsQ6aAq9Y80urTGU4Sa k+ntd/3Qj8fM1e3BdiewBKYR0+SgFMVnoSiK4qlvGrFE2b7wYs88soQ5g59/kyZzJV4b B2CnbbD2tIPCKJ4FlI66IcTtreOwOy7mTpG+H23y41LKvgqb82ZKJ4/W5+xCuNa1wlTw P0PH3Sn/R/tP0thJVVTMRBRs2DApcSg23/9yfCWGhfDgG/fL7KdOQsheET8JnoqlhfLN L6iYE933mfbM7VCagPlbQpkPPoa9ngGWtnT61+QU2mjUrQD2Gq39S/VHEEGDIR2+AK/j ienQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=HVlcWtBA; arc=pass (i=1 spf=pass spfdomain=microsoft.com dkim=pass dkdomain=microsoft.com dmarc=pass fromdomain=microsoft.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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e2si1338902ejh.579.2021.02.24.07.26.41; Wed, 24 Feb 2021 07:27:27 -0800 (PST) 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; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=HVlcWtBA; arc=pass (i=1 spf=pass spfdomain=microsoft.com dkim=pass dkdomain=microsoft.com dmarc=pass fromdomain=microsoft.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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238523AbhBXPTg (ORCPT + 99 others); Wed, 24 Feb 2021 10:19:36 -0500 Received: from mail-eopbgr1320108.outbound.protection.outlook.com ([40.107.132.108]:34213 "EHLO APC01-PU1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S238133AbhBXOlW (ORCPT ); Wed, 24 Feb 2021 09:41:22 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Z5ZLxX9Iz7FFeuybohmIinwWlChmekDwvrFGz9quMw+PkKNVMaP+LlzPQPhm3IZCZIrpc+XvLqXZvQKGGZs1oHS8SqGcBeFK7+2hG6rrWR5HjIs7qxV/uUwb2JPLZuD52LxlhB/VijEigEXaYiy3wNxjCVP9WUEB3MlBwKaq1DbmdaatHqtEbpzkbjKLceEkZ8cThaty/Byh6LoOE41MXGjWsD8QT6OrLfWOuAp2c1RnhQiogwaaxJP9uZg80U9gZadW1zf8EgyXPt6L3stFl/SjQ/U96D77qylhdVKsYXBPELExLjpvsVAWRH+IXZB2QZhZhKJ+e/5Kr0nEt+CNUA== 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-SenderADCheck; bh=ib+n3nDui+eVVFoX20SX4f4vIrBJPdHWHEzS3IOnEiI=; b=c5iGNdcj3J0YKin8TA2M7rZjvrsrryee4RxE8b7RgByOuAV+4CJbRi0q9ASk/vYqvkW//dut9cVNjxX9Wjus5xw5ahqJpxgE8YUjeO5uGuyT//0B+cwHhaOCYBzxsV1Q03SQuALDMWXyEEpEHfT97KC+qE7TBUSdHNk3Qn9y3pzZCa99eWsd9fr1o9JZeR1GK70HBsSrnwNiNpSnpjRZbjuo1BAx3bXljmoOxBnq/cKpXCiDWWTzGna8VeuakTvLJ+qS0cjj9dyBEdHZiEpxt3yw8zW9WbSFEpYizOZh5P13x46bxOA2LM5J+0pNP++XhmL+rXa+eYKNS6DzF4usJA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microsoft.com; dmarc=pass action=none header.from=microsoft.com; dkim=pass header.d=microsoft.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ib+n3nDui+eVVFoX20SX4f4vIrBJPdHWHEzS3IOnEiI=; b=HVlcWtBAjW8Gb8KuunQnAMWJiVOGm7Om3G0xbLybNI8gdDWnK3Ocm3mYP/ULx8JXj/LiJ1+piYTFm3RaRgM8IhiPjKHgaz7gcgmDh6d6HrwkRg3R7DZH1nS+hXze/Owp2ej9vIgW7ZBfZp621mzO4MEKA3+oLzh74WCS72ALcwI= Received: from SG2P15301MB0063.APCP153.PROD.OUTLOOK.COM (2603:1096:3:10::19) by SG2P153MB0271.APCP153.PROD.OUTLOOK.COM (2603:1096:4:ad::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3912.4; Wed, 24 Feb 2021 14:39:49 +0000 Received: from SG2P15301MB0063.APCP153.PROD.OUTLOOK.COM ([fe80::5d0e:cc2a:fa6d:fa05]) by SG2P15301MB0063.APCP153.PROD.OUTLOOK.COM ([fe80::5d0e:cc2a:fa6d:fa05%6]) with mapi id 15.20.3912.009; Wed, 24 Feb 2021 14:39:49 +0000 From: Shyam Prasad To: Colin Ian King CC: Steve French , "linux-cifs@vger.kernel.org" , "samba-technical@lists.samba.org" , "linux-kernel@vger.kernel.org" Subject: RE: [EXTERNAL] re: cifs: Retain old ACEs when converting between mode bits and ACL. Thread-Topic: [EXTERNAL] re: cifs: Retain old ACEs when converting between mode bits and ACL. Thread-Index: AQHXCqrIw9zDZtQZXUOLyaxc7/KTFqpnYEZA Date: Wed, 24 Feb 2021 14:39:49 +0000 Message-ID: References: <1ca0f87e-83b3-b4dd-4448-b44f2a9d1698@canonical.com> In-Reply-To: <1ca0f87e-83b3-b4dd-4448-b44f2a9d1698@canonical.com> Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ActionId=91c84b95-1c93-4685-afa3-63f144f4b2d5;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ContentBits=0;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=true;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Method=Standard;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Name=Internal;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2021-02-24T14:39:06Z;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47; authentication-results: canonical.com; dkim=none (message not signed) header.d=none;canonical.com; dmarc=none action=none header.from=microsoft.com; x-originating-ip: [2404:f801:8028:3:60f4:ca47:5dfc:b1d0] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 3c9aa288-99da-4e23-84c0-08d8d8d20a18 x-ms-traffictypediagnostic: SG2P153MB0271: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3044; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: k05JOo1msoBzmhjefV8aFR/YoostyGt2UZTjfuGfCcYr00R7b4fbgpWqoaLuwmcRv9F1agAPu7PMoBG1o9YDpmTK2/PW646dURZWiuB1ipLZWzm9b/ykKGydNqcrPDdn7VKySmD6zvp0Bo0CZMG7IV5MCRDKnZlPPfKD8LmvAIZAYwhWALqbTE1fAJfB28aca93AgXFrTYRvDmYdQWhpbT5mQg9zp0VXL0ymyZiE38vdHhwXn2G5t0EnWFyewEyeheTUvSs0FEcwPSIRvI3yjIDIvpsAKVokAdWBReMuZ3BsYc2MXZskPfMCkbnlA61V75UXljD0UshzRkHVTfw5tsP4TGoRK4vr13ycS5zXQgd5eQp4R20rJMMyp1luXmAszUId/P+GihJt0lARdkon+fq4IKQhqwtcG3nM6lO2itVuAPGlbLvYFR+rEExx1fA++/71ecnUgfbizgbW4qa3cLiqu8U7HLHyNXL3b3E95p8rKC5O1hkk+sSOgSf6p5ZvVKg6FnNyM1mY/jbkHAu/pA== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SG2P15301MB0063.APCP153.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(4636009)(346002)(396003)(366004)(376002)(39860400002)(136003)(186003)(6916009)(7696005)(4326008)(8990500004)(8936002)(55016002)(316002)(71200400001)(6506007)(53546011)(8676002)(54906003)(5660300002)(82950400001)(2906002)(9686003)(82960400001)(52536014)(86362001)(478600001)(83380400001)(76116006)(33656002)(66476007)(66446008)(10290500003)(64756008)(66556008)(66946007);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: =?utf-8?B?QXZhMUFYVjRXWVFCMzNsY0Z5d3QvU1BNYlNFTVU3K0lOeHhQL29MdEJIazcv?= =?utf-8?B?aEZvSGFsSXM0Q2NyWkRrbTZ0S253Yis3WXRJQW9FdVlWVFdyTkliS3hJVy8r?= =?utf-8?B?S0s1RWtaZkkwaU8rL1JrUE9kaldCMm85Mk9Qb0tsMWxuU0ZnYUJiYlN4ZlBl?= =?utf-8?B?N1o1aTBDRTdYOUFtUDVHNklzNzRDbWRYNk1CLzBWRnRrY09SVE11VWNPb0J0?= =?utf-8?B?OHpRbWR5MnAvS0VVdHdOSThhdnovc0hXa2ZaWnRBQUZNNXliM21wbW1yQlhO?= =?utf-8?B?clloR2Vxc09lUmZ1YW4wbU1mM3d0OTM2WHMyNXRXMERRRzZKbUd1U3VvQ3ZG?= =?utf-8?B?YzV1RktIUzJ3UUdlYTlXRHhBdVI0eXFYZ2lzRC9OWmFBYjlrS3VmK1NodVNH?= =?utf-8?B?V0ZCZ1lwdjZOZkxVOVdYRFkzbmUvdUFxOWZkV1lhemw3anhiQlJnRVFvYUtT?= =?utf-8?B?SzFmaHZTMjAxb3lnM1ZERkNkcGJoZCtWdCtHaWxVNXB4Q1lvQUxyNS9ld2N4?= =?utf-8?B?MkFvSkgvemR3SlBxaGZUUU9Ga0ZtcWdBWFNmK3ZPSUhBTWQyTzJYaU8yc2Qz?= =?utf-8?B?dGdq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?B?R1QrN3VaNHIrM1VIWFVCYURLWkRFS1NuSklHYVhnNG1nd29mUlJQSXBuYjZu?= =?utf-8?B?TzBYZWRPcHRUbWk0Y3huc3hDWGVsUUZoZ0g0VUYrS2dqaG9QdCtHRTdkOGJT?= =?utf-8?B?eWZYeEtnWlhyNlp4bER6eEdya0tWdllFU3BhVTJIL05COGFBT2pweVM3aW1s?= =?utf-8?B?M0lDKzBtaTdTSXJtTzlRa2R0SFdSRGtrM0RROEpFYzNUVm5EeEMxVVgxdzd0?= =?utf-8?B?TjI3R2ozbFhkVnNYb3FWTmFmTjc5cWtSTEJIT1RYZ2p0SktTejRtczlUMmI4?= =?utf-8?Q?oRI30mFLIoDG7k/F9HR3HCMTPbg0NL/nLlytQ=3D?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SG2P15301MB0063.APCP153.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 3c9aa288-99da-4e23-84c0-08d8d8d20a18 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Feb 2021 14:39:49.4357 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Ga3dhjW/iNryqii41SZVEY01L6Ul2cgp3dVh9bPvnCMXswr9dfebuRInmIPgELCp9a1SjeFgeVmAb4aQA0j8Pw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2P153MB0271 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgQ29saW4sDQoNClRoYW5rcyBmb3IgcmVwb3J0aW5nIHRoaXMuIEknbGwgc3VibWl0IGEgZml4 Lg0KDQpSZWdhcm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