Message ID | 20230608154256.562906-7-aleksandr.mikhalitsyn@canonical.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp373393vqr; Thu, 8 Jun 2023 08:54:38 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5wDjMh0wPG380Cd6DcfyFWyUMzfoQrHVYnR700NEohZ+nuXaZ2ptYI38RxuCAbO7BIl32C X-Received: by 2002:a05:6a20:12c8:b0:10f:8b61:197c with SMTP id v8-20020a056a2012c800b0010f8b61197cmr4616634pzg.54.1686239678635; Thu, 08 Jun 2023 08:54:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686239678; cv=none; d=google.com; s=arc-20160816; b=IlciwUw0T8AcrmW391Fd5NW7Bf3JeBUMMzLjSstlWaUPDOLCus/jweP4EpuagOXJ5q +jc0pjkSA/InfypOWUs1FFppj1Vay1daWuLQSDFCLyBGZgs4n9aqZbiuvkAU9EXXjSi4 90QeCqHgMgjO1vM8tGi2O7d2GY1+qMjTqUHUH9GwAEHif3EzHult3IZdtPHGaf4FXsGF 3348iqNrIsYTZFABooOibPUF4rc8Ksx5nCTn+UBnm7SY9b1IKqmZM+3QRvLVsyZnTBWW cI1SIqk/ZTVmBQi96h9TDDoTPv9aUNwVwYxm75ePGzSxnv3KJAykMp09iLq2D386vVY0 fSrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Yx9DhBwZ0J2oRahK7SO/c3VRSYe4JEpen4id9pbwqa8=; b=eih3/9al6GE+u7CCBGU0jRXDub/fK2/7BR54MjXWv346H4vexrpxC602fh5x64hn7r VSWiT0rDABriynouWsAIOj10Lq6whn1REsCTKtuRbJfgidyQuqvNNd7r9vU+5hwrzfBO AaBTKvgTAcJfKWfQCSUnPH+ALiEJbdoXzDXv/mDBqN3thg5GsSoP8A2hH3auvIlq8N6w dcaCNU7u/zeCUfO3p1N1QWT1vVsUs7MK0fTctDIcTuglo7rIU1TrmzH9M+VpBsJVrQ5v ek+OvZuWquP8ZFZ7/uchMIZ7J4U0g145me8+wNogxZlg6D1XnWoHmJUMJuKDJX2iEV4w Jx7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=bAj9D86l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 83-20020a630256000000b00542abcf2ce4si1149689pgc.623.2023.06.08.08.54.24; Thu, 08 Jun 2023 08:54:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=bAj9D86l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236951AbjFHPom (ORCPT <rfc822;literming00@gmail.com> + 99 others); Thu, 8 Jun 2023 11:44:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237153AbjFHPoU (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 8 Jun 2023 11:44:20 -0400 Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BB4B30DA for <linux-kernel@vger.kernel.org>; Thu, 8 Jun 2023 08:43:55 -0700 (PDT) Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 0F92B3F56E for <linux-kernel@vger.kernel.org>; Thu, 8 Jun 2023 15:43:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1686239022; bh=Yx9DhBwZ0J2oRahK7SO/c3VRSYe4JEpen4id9pbwqa8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=bAj9D86lm7Kww9Am/3rrNGWc0XDsrvF4EhhX9nCHOvzkEALyjt0j6G0E1dN6YwP8U PvKr6lP9yyyrChWBn1CxenfhvJcZHBVQMEXHqDCUCJ+Ccr6SxfJ2jS/OKrY7igtjgi ur+YSwAqrF2uzXrCxmIZLMiy7kLUMhI4E3UDlYFea53yXrsGNm8gxwUnih5r/cR+98 Jq8eB38LfX5IR/zjlUXPLSMlkWrKTOz2XIDJSJEEmN8nZIOImBgJRHtpFzsGiBnfCO nb5Ke+Mll6mzzekQb7NC5WgQz5Hm4TbkI1V9S9G8OM5SINRihDzqWIAY9NmXpUs+/3 dIZXTUiCNZu6g== Received: by mail-ej1-f71.google.com with SMTP id a640c23a62f3a-9744659b7b5so100326266b.3 for <linux-kernel@vger.kernel.org>; Thu, 08 Jun 2023 08:43:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686239016; x=1688831016; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Yx9DhBwZ0J2oRahK7SO/c3VRSYe4JEpen4id9pbwqa8=; b=hNJ3ZqcAjss8+mCa0iZe2Qzofz47TTGbZcZUnVEFJsEKAFp6aoI2l5z36kszsaPw2Y IqKj7M1VGRuUugEJ9E53RLqEO442M1tokYv4gPx2imVTeaZohHu61cRAJHw1FO2wqttx akgIpK0y41Q6HWZ3nevvMSxFsTQbjX/mBMPAmsZo7Jyt8BVHTWw88uYOh8Df9994l0rO oo3t5Mtcw7DAAerevjtX5zDkSdACwyWSJAaC2YiGat/nk4Hpg3Y3pk1/CfRBfEeXqjCa EEC4bA07V/y6PjaTQSmYetyqeLCfetDQZqik/aXJ1ukdmWOV0e0LQRsAqSY4DgcOXI1o c5tQ== X-Gm-Message-State: AC+VfDxOCplQQ0Z2v5vXzpTmAiI1LMQBtOIqUW7H4heKvOkrNn70urPV iGFmAg/5sYoOAvUDElxszSWL9Mg4Mj1L/TtFuobTBYzGcRA2tMauPxC1YbJmFMrvQbJXM5gMJeE QR1pWrUMA2qmEZYN2GH5vqXCq6pHgTNqwtuUXgnMJbw== X-Received: by 2002:a17:906:5d14:b0:974:61dc:107c with SMTP id g20-20020a1709065d1400b0097461dc107cmr124323ejt.44.1686239016664; Thu, 08 Jun 2023 08:43:36 -0700 (PDT) X-Received: by 2002:a17:906:5d14:b0:974:61dc:107c with SMTP id g20-20020a1709065d1400b0097461dc107cmr124301ejt.44.1686239016513; Thu, 08 Jun 2023 08:43:36 -0700 (PDT) Received: from amikhalitsyn.local (dslb-002-205-064-187.002.205.pools.vodafone-ip.de. [2.205.64.187]) by smtp.gmail.com with ESMTPSA id y8-20020aa7c248000000b005164ae1c482sm678387edo.11.2023.06.08.08.43.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Jun 2023 08:43:36 -0700 (PDT) From: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com> To: xiubli@redhat.com Cc: brauner@kernel.org, stgraber@ubuntu.com, linux-fsdevel@vger.kernel.org, Jeff Layton <jlayton@kernel.org>, Ilya Dryomov <idryomov@gmail.com>, ceph-devel@vger.kernel.org, Christian Brauner <christian.brauner@ubuntu.com>, Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>, linux-kernel@vger.kernel.org Subject: [PATCH v5 06/14] ceph: allow idmapped permission inode op Date: Thu, 8 Jun 2023 17:42:47 +0200 Message-Id: <20230608154256.562906-7-aleksandr.mikhalitsyn@canonical.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230608154256.562906-1-aleksandr.mikhalitsyn@canonical.com> References: <20230608154256.562906-1-aleksandr.mikhalitsyn@canonical.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768150457599818674?= X-GMAIL-MSGID: =?utf-8?q?1768150457599818674?= |
Series |
ceph: support idmapped mounts
|
|
Commit Message
Aleksandr Mikhalitsyn
June 8, 2023, 3:42 p.m. UTC
From: Christian Brauner <christian.brauner@ubuntu.com> Enable ceph_permission() to handle idmapped mounts. This is just a matter of passing down the mount's idmapping. Cc: Xiubo Li <xiubli@redhat.com> Cc: Jeff Layton <jlayton@kernel.org> Cc: Ilya Dryomov <idryomov@gmail.com> Cc: ceph-devel@vger.kernel.org Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com> Signed-off-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com> --- fs/ceph/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/ceph/inode.c b/fs/ceph/inode.c index 2e988612ed6c..37e1cbfc7c89 100644 --- a/fs/ceph/inode.c +++ b/fs/ceph/inode.c @@ -2408,7 +2408,7 @@ int ceph_permission(struct mnt_idmap *idmap, struct inode *inode, err = ceph_do_getattr(inode, CEPH_CAP_AUTH_SHARED, false); if (!err) - err = generic_permission(&nop_mnt_idmap, inode, mask); + err = generic_permission(idmap, inode, mask); return err; }