Message ID | ZeHr+PH8spL5F+iZ@debian-BULLSEYE-live-builder-AMD64 |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-88587-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2097:b0:108:e6aa:91d0 with SMTP id gs23csp1130752dyb; Fri, 1 Mar 2024 06:54:23 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXJTVTg2XbdQlMNwPdBYkyG3w1JQ9e9eM4JhS6UDOZyor8uZepBNjSwE5U7rmTYSOZiAhshSiQPTJQjHHexl986ky77Mw== X-Google-Smtp-Source: AGHT+IHV08J/6FxcWb/a4NrB1XDceZpulsczE+cmRPmmY9q0wUNbZrxttuA2e9uVqhOctGbz/IPd X-Received: by 2002:a17:906:fa87:b0:a44:8ea2:23fa with SMTP id lt7-20020a170906fa8700b00a448ea223famr1495299ejb.46.1709304862935; Fri, 01 Mar 2024 06:54:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709304862; cv=pass; d=google.com; s=arc-20160816; b=sjkv7Ap0pDTygkupSpDOfAkaxYiHe38ZMeCnJAJ8T1+lTl2Cm3sxHxzDIoMuDPYlo+ MTRGFPNV8WYbEs7tGAABQD6ujm1FvGNM3f+PAeM3D55iBhOWKSwqmWmDtkBnJjtBjxRH RgfObewN3UJ3Rb29l574tB3FUvQtvXcC57rLCsttWZfoFBdhRun5yZgjtYE+yWRX55v9 VtrABb2Qt0CNso5NJIpNb4wVWDDebTVeEP+gwoapRKHJdy/RLKGRF6hFnwEpMu6r5NYG 7Xd5sEfzcyp8D0QABg+SSw2wCd6dwhOYtnczc/TzM7aezfR7WxpXXb1G1eV1oCiaC5ml E4sw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:mail-followup-to:message-id:subject:cc:to:from :date; bh=1QIyvYZfKtiPqI5AFnFIb7YN3zlGFCyEvVIA2mbCsio=; fh=SKXdgWCbuyy1WS3b3HdCp5j83hWXfHGWs/LBN0BEaPc=; b=jyN5N7LDwVXnpWX3XQNzWEvm3/IU+bHrU6A6OlJB4X1W2p++/LhE3A+CSqJP7jiy+Y vs1vfs4UWxenF0ZaETc6lSrGrrG8hPRX/nnXZBZTHotSx0wHl2nbXYFK3J1fTykpKkwv zv0q2QJBivmCivB+VWW3eS3oqG3kZDXunY3EBKElWtMuiD2dsylrCbm0n1UwP0Y5wjGh WjkmFJCZaQafo8EZG2/X14qMeqTsX5pOajC7xiXXcSjHysAfpSKhE/nDI8aNFGiVjrOP K3sG++gAu2ap3nUX5nYpVAckqz0WL1YhujoEBtoNSMKXDxiw1n1SYrPmj6CYP2sBIbdL 3p0g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=astralinux.ru); spf=pass (google.com: domain of linux-kernel+bounces-88587-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88587-ouuuleilei=gmail.com@vger.kernel.org" Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id dk4-20020a170906f0c400b00a439ab2bbb9si1508399ejb.284.2024.03.01.06.54.22 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 06:54:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-88587-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=astralinux.ru); spf=pass (google.com: domain of linux-kernel+bounces-88587-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88587-ouuuleilei=gmail.com@vger.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 8CDC51F2607C for <ouuuleilei@gmail.com>; Fri, 1 Mar 2024 14:54:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3941F4087B; Fri, 1 Mar 2024 14:54:09 +0000 (UTC) Received: from new-mail.astralinux.ru (new-mail.astralinux.ru [51.250.53.244]) (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 BBC143987D; Fri, 1 Mar 2024 14:53:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=51.250.53.244 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709304847; cv=none; b=AVGOlTVGtKopB6VpGjx+qUdY3eQ5jdanPwySeyVUV8hDu1fCdOz7hSN/uYobmVcnRWC4vzJyEVKlHKrq1CtQg7Tf9zCT7ZJMeWqTV9JBx+1PFFyn0Ir1w2a8Ay722wbw6UpMQVZXvmngHQ1wuJChaMylFKAlYLbLMtJP1CAymKU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709304847; c=relaxed/simple; bh=hSEvV1uGXnbUmk4BJckyjC9QO5qiJ5UDBiW72C1lb3o=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=tLEDj2Cw/5HOHi9qvRFNHmTzWaJDHnjz782m1fS5BinPnZPYLMp2e28ycv6r/ukkIvu7FCHQr1zuOFfFjFKExk5qZKVyXKotKbx+AL03pbU10E0aDS2lySObLfdGhzLwBXuqYuOOSRyT7KlWre9ThwaPEYznt4luIIfkSyAwrQw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=astralinux.ru; spf=pass smtp.mailfrom=astralinux.ru; arc=none smtp.client-ip=51.250.53.244 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=astralinux.ru Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=astralinux.ru Received: from debian-BULLSEYE-live-builder-AMD64 (unknown [192.168.32.68]) by new-mail.astralinux.ru (Postfix) with ESMTPA id 4TmWLl1X1bzlVv2; Fri, 1 Mar 2024 17:53:51 +0300 (MSK) Date: Fri, 1 Mar 2024 17:53:44 +0300 From: Eugene Korenevsky <ekorenevsky@astralinux.ru> To: linux-cifs@vger.kernel.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH] cifs: open_cached_dir(): add FILE_READ_EA to desired access Message-ID: <ZeHr+PH8spL5F+iZ@debian-BULLSEYE-live-builder-AMD64> Mail-Followup-To: Eugene Korenevsky <ekorenevsky@astralinux.ru>, linux-cifs@vger.kernel.org, linux-kernel@vger.kernel.org Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-DrWeb-SpamScore: 0 X-DrWeb-SpamState: legit X-DrWeb-SpamDetail: gggruggvucftvghtrhhoucdtuddrgedvfedrvdehuddgtddvucetufdoteggodetrfcurfhrohhfihhlvgemucfftfghgfeunecuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhvfevuffkgggtugesthdtredttddtvdenucfhrhhomhepgfhughgvnhgvucfmohhrvghnvghvshhkhicuoegvkhhorhgvnhgvvhhskhihsegrshhtrhgrlhhinhhugidrrhhuqeenucggtffrrghtthgvrhhnpeehteefudduuddtjeffffeigedutdekteffkeetieffueefudffhfdugfffleekudenucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecukfhppeduledvrdduieekrdefvddrieeknecurfgrrhgrmhephhgvlhhopeguvggsihgrnhdquegfnffnuffgjgfgqdhlihhvvgdqsghuihhluggvrhdqtefoffeigedpihhnvghtpeduledvrdduieekrdefvddrieekmeehkeeivdeipdhmrghilhhfrhhomhepvghkohhrvghnvghvshhkhiesrghsthhrrghlihhnuhigrdhruhdpnhgspghrtghpthhtohepvddprhgtphhtthhopehlihhnuhigqdgtihhfshesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrgh X-DrWeb-SpamVersion: Vade Retro 01.423.251#02 AS+AV+AP Profile: DRWEB; Bailout: 300 X-AntiVirus: Checked by Dr.Web [MailD: 11.1.19.2307031128, SE: 11.1.12.2210241838, Core engine: 7.00.62.01180, Virus records: 12439106, Updated: 2024-Mar-01 12:56:39 UTC] X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792336055931847246 X-GMAIL-MSGID: 1792336055931847246 |
Series |
cifs: open_cached_dir(): add FILE_READ_EA to desired access
|
|
Commit Message
Eugene Korenevsky
March 1, 2024, 2:53 p.m. UTC
Since smb2_query_eas() reads EA and uses cached directory,
open_cached_dir() should request FILE_READ_EA access.
Otherwise listxattr() and getxattr() will fail with EACCES
(0xc0000022 STATUS_ACCESS_DENIED SMB status).
BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=218543
Signed-off-by: Eugene Korenevsky <ekorenevsky@astralinux.ru>
---
fs/smb/client/cached_dir.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/fs/smb/client/cached_dir.c b/fs/smb/client/cached_dir.c index 3de5047a7ff9..a0017724d523 100644 --- a/fs/smb/client/cached_dir.c +++ b/fs/smb/client/cached_dir.c @@ -239,7 +239,8 @@ int open_cached_dir(unsigned int xid, struct cifs_tcon *tcon, .tcon = tcon, .path = path, .create_options = cifs_create_options(cifs_sb, CREATE_NOT_FILE), - .desired_access = FILE_READ_DATA | FILE_READ_ATTRIBUTES, + .desired_access = FILE_READ_DATA | FILE_READ_ATTRIBUTES | + FILE_READ_EA, .disposition = FILE_OPEN, .fid = pfid, .replay = !!(retries),