Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1876405rwd; Fri, 9 Jun 2023 03:37:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7xbzcaoIVf7qb5wDK2iHsRqH/F2kt9PQdeFGb95BhAKVocIH7wF98bHdqcnk7Z617Jw8FE X-Received: by 2002:a17:902:d2c8:b0:1b0:348:2498 with SMTP id n8-20020a170902d2c800b001b003482498mr904863plc.2.1686307022863; Fri, 09 Jun 2023 03:37:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686307022; cv=none; d=google.com; s=arc-20160816; b=IfF02e+seasb8WugjNVRFbDipKbKvSbEs3tsGaFl6gfLaXvSnbsUeU7xK2IqnvDUeC cFB2aNay5jEugyrKNkqmiXAoniP9TCkGsQrR6puSVYx1VNx1CYiFkmhZKnWTEkxJcv+q 4X1W96IUms4k7j5rGYWj0c05T0u+20Yhh3aMPCWYf2zJGp8lT1HquDBAAZsgTPq3Ntqs ALJUIyX2cnJsu5mf0g/dJuMD0o77tHpb0RFKJXp9tWrIIf62BXQ1LMrQYPPHhxzxPHWe p8ktTchp01IZHR8xwJiZMkdSvhFsKditKDavVCpVzunIvRP9HAcaGU9wK88L9QbcdDe0 ngTA== 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=kRtya9vNnJsHnlJFsQiUMmcKKT8ZGQqP3swgCnXRiRw=; b=IsSR42yZcnVjGxCD9AgmNv3LxNhmMUv2dJWefXeVe9g1m6neGidNjaEJI0kj03NlM6 ZZ5jJARihIi6+YAymh7SzP+xKsAyTW5+JBWQhfnC2OaUYMubdQ0DUGlGG5yk+ro100fw G5z7DX3VcgNsIEvT6xItdUFb97PuCSGncLnD/AnF2upWMWdrIuXeF0IqIz5GA3ObtIZc cpwoeZVqX5B4yp55xcAwz+6+xmsBLOTExe3s+FVu1mhe7O25EQao9UaC3mFjvmYnm6IA 1fRGjS5VD1Aw32RT83XwE8a5c76qBrTX8KqNocVfIqJ1zNOYp33x34rCoeEPfCo1DYRm 1xsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=bmEwusq0; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h14-20020a170902f7ce00b001ab1a00d95dsi2537217plw.250.2023.06.09.03.36.47; Fri, 09 Jun 2023 03:37:02 -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=bmEwusq0; 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 S241892AbjFIJvw (ORCPT + 99 others); Fri, 9 Jun 2023 05:51:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241798AbjFIJvL (ORCPT ); Fri, 9 Jun 2023 05:51:11 -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 B42CE7AA4 for ; Fri, 9 Jun 2023 02:44:23 -0700 (PDT) Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) (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 470F13F576 for ; Fri, 9 Jun 2023 09:32:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1686303176; bh=kRtya9vNnJsHnlJFsQiUMmcKKT8ZGQqP3swgCnXRiRw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=bmEwusq0cnKXIIy90FwGLJgXUCarhP3s3EfiTRaTXDky+wOr+flgB6EYNucdXGErR TyAk/9Fy5jagq1Sy/sLoiFsrUkI8/vswtxmTpwylE2T/xZW9ZX/WVc6m3PfGbW41bn efz5ioFETHwNG5kNIxcZCLJrX9jY1PXmUsJDGhW/BA56UbzcG/+7oj9oCEWkKBFY/r 85iD2NQeeukpEjGVpYkISpkE3bNlL/8CdUAI3cU2rCXRC/BERPq/b9RPuR6rLI3C0p 3GOQ+tW8/z8MIjjcBpmFL+hmIPwZsyTKaaWalpINGw9P29yhS1Ci30p0D6j3zYqg5h +qb6k7XBuN2Zw== Received: by mail-ed1-f69.google.com with SMTP id 4fb4d7f45d1cf-516a043f74eso1591021a12.1 for ; Fri, 09 Jun 2023 02:32:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686303174; x=1688895174; 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=kRtya9vNnJsHnlJFsQiUMmcKKT8ZGQqP3swgCnXRiRw=; b=JmENW5jNrc1xnB56s0hBwiLFfN4PTDOi8w0sPvsAOG3j4nmzetuiid81W2CVLv6cAb 6rSQ6j1u9pVVBchX5CrPRx0J2BgAhM2vqWp+a626AOW9crxPB/TmIm92l6w0Zw6xLj3/ 9uz3jErAmWm4QyzlMWMHly34DC3pQH4ZKewM54JdUNoYNJNfcnXOIEfWUhQ/F4wm2hK/ 58Z+IY+QbR/thA2OgrcNKhEen3dl9VPzVaQlzqndJiL0dA+i19vIsXpbcRRGEK7pte+w LnwmRzX2DawWWOz5+Fvs8uFAV9c0Feirw15DRju5lUcqKnr6ghQfOm0A0AJUFI5ZLkjU 8ytw== X-Gm-Message-State: AC+VfDwNRENOinB+RggeN15c/4357XvXrcMfk9KrnE3tQ8bY9FogOHum g5kNmpavHvTjoUVHQVMOXVZ+wmWcxDJ+BK6JBqBfmg2KNt/X6W6qrDfm8cE8G5kyTOpilvBM4vt tfhM6wCRWTcJn6aX+Bn9ovN8+Xi6wAz3tlcijyuoFYg== X-Received: by 2002:a17:907:9801:b0:973:fd02:a40f with SMTP id ji1-20020a170907980100b00973fd02a40fmr1311015ejc.59.1686303174468; Fri, 09 Jun 2023 02:32:54 -0700 (PDT) X-Received: by 2002:a17:907:9801:b0:973:fd02:a40f with SMTP id ji1-20020a170907980100b00973fd02a40fmr1310997ejc.59.1686303174276; Fri, 09 Jun 2023 02:32:54 -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 e25-20020a170906081900b0094ee3e4c934sm1031248ejd.221.2023.06.09.02.32.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Jun 2023 02:32:53 -0700 (PDT) From: Alexander Mikhalitsyn To: xiubli@redhat.com Cc: brauner@kernel.org, stgraber@ubuntu.com, linux-fsdevel@vger.kernel.org, Christian Brauner , Jeff Layton , Ilya Dryomov , ceph-devel@vger.kernel.org, Alexander Mikhalitsyn , linux-kernel@vger.kernel.org Subject: [PATCH v6 09/15] ceph/acl: allow idmapped set_acl inode op Date: Fri, 9 Jun 2023 11:31:20 +0200 Message-Id: <20230609093125.252186-10-aleksandr.mikhalitsyn@canonical.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230609093125.252186-1-aleksandr.mikhalitsyn@canonical.com> References: <20230609093125.252186-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,URIBL_BLOCKED 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: X-Mailing-List: linux-kernel@vger.kernel.org From: Christian Brauner Enable ceph_set_acl() to handle idmapped mounts. This is just a matter of passing down the mount's idmapping. Cc: Xiubo Li Cc: Jeff Layton Cc: Ilya Dryomov Cc: ceph-devel@vger.kernel.org Signed-off-by: Christian Brauner Signed-off-by: Alexander Mikhalitsyn --- fs/ceph/acl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ceph/acl.c b/fs/ceph/acl.c index f53f7a758c05..d4be4c2d63c3 100644 --- a/fs/ceph/acl.c +++ b/fs/ceph/acl.c @@ -105,7 +105,7 @@ int ceph_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, case ACL_TYPE_ACCESS: name = XATTR_NAME_POSIX_ACL_ACCESS; if (acl) { - ret = posix_acl_update_mode(&nop_mnt_idmap, inode, + ret = posix_acl_update_mode(idmap, inode, &new_mode, &acl); if (ret) goto out; -- 2.34.1