Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp870228rwd; Thu, 8 Jun 2023 08:49:23 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6XdzEx40jd2mJpRmcMoann/UQ5diikptWj4x4TUoDBF/ZtqEHasqGX/xeVvhMYwkjM8pZI X-Received: by 2002:a17:902:ecc2:b0:1b1:dd09:6460 with SMTP id a2-20020a170902ecc200b001b1dd096460mr5667381plh.57.1686239363198; Thu, 08 Jun 2023 08:49:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686239363; cv=none; d=google.com; s=arc-20160816; b=R4y+vs0yt6Ni6MeiDXJvPxuUCC/uYtB/wMbTUymo9mW5XNvug+TLR1DkieHj+htWsA j/jmMAomjYuhtZeu57XKOiKL3mILvM4YRuJbCaXa1brfY45UwEhUQF3DNmKkPfI2XxQ6 T//I0Nmsx1cNoc1IlYpLzX3eRCwqnKzD7sqIl+OwYffbIfN4EumsAiNBBjSUSwuZbECv SO2ocNU28dBbotrbIVaArPxSVt4GIIAQI8v6GMlKvBQ4qW4S8bBPmS1cfl3krgKf+Dsd SjVYzFMurkFtbZf4hpUy4eXvrlfyYK6D/agMmQdQ7Y5pgY2dq1YeusLbHdXTjAtRJr03 n9mA== 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=/It8VSgZDTEKktJxHTMOOJHpvqL0RXNtakCJDr6cWYA=; b=WK2FOEbbsGUhQf9nqCxGg8smPnSJ3M9hHl8TYcCTddlqIgWg45VJor7eltZQYCaIYg QMGi3D86YF+hoJG4C+tdluVVHiL7PL2ALxkPxJzOlDxHcXeX6Kr+4wCqxd+agsrt9qsT F8xt4WgA5WocGi2cDAu3KZsNAcR15yFsNYRKkHGsxXbLIn/W4o1RoWUm/bTbjcs5k4uD FN+GqtPO4zHA1ueuZTaghpMJ+2I3hXlyvNtAeM554CcuyfT/fxFUQI0xpjdXB9SgstpW 2GR/rnoEjy2udYkaQ59Um6G+Ge7IA8JfggyJ9lgKkY435IudhW+N8/ftvqvlIT7b9DDH AAOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=ZhAFBfhe; 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 z10-20020a170903018a00b001a637615a89si1215043plg.561.2023.06.08.08.49.08; Thu, 08 Jun 2023 08:49:23 -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=ZhAFBfhe; 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 S237440AbjFHPot (ORCPT + 99 others); Thu, 8 Jun 2023 11:44:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237203AbjFHPo2 (ORCPT ); Thu, 8 Jun 2023 11:44:28 -0400 Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 294AB35A2 for ; Thu, 8 Jun 2023 08:43:59 -0700 (PDT) Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) (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-1.canonical.com (Postfix) with ESMTPS id E0FE73F370 for ; Thu, 8 Jun 2023 15:43:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1686239026; bh=/It8VSgZDTEKktJxHTMOOJHpvqL0RXNtakCJDr6cWYA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ZhAFBfheINB8eE2BwI9zeoKJZLRNin5AAEkC7I74PxVXoNXw2gxoGhD3ddTXopxEv PbgOnXBh8osyvi109qX6yC4dhGv5hUEbBkta3fnlUNuuQLolI3chfK8THaFUOo2ywR Ryda4hye1cUOA1TLVeAZ8Ff9qdRAFAPgYd22p325I+xj9mtuPDuXK358YngLOpZBVR GkWLzNc7PYq+WVk96hCDE5w+RP2OV3NH09EY9u5zkL71SC1XMcufUjkBq/PXhemQVi zl2MGilLnXAQtVWFGacifoojo+3m7MS80zvlc8XES7sRuBNelluZKdZdkxd2XXJj8z 57OxDV6KtDTCg== Received: by mail-ed1-f70.google.com with SMTP id 4fb4d7f45d1cf-514b05895f7so845264a12.0 for ; Thu, 08 Jun 2023 08:43:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686239024; x=1688831024; 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=/It8VSgZDTEKktJxHTMOOJHpvqL0RXNtakCJDr6cWYA=; b=ke4qHT7rDGnWThiYEbKEMavi3X2g44LcKhbx0ujdmTm49NfsRXKl+vX2iijqPpiHm+ Ldm62DFGVXcV67ZW4IrO3hdT0zz1OTp4lDxjwYqhl80LmkKK4nuJZSiKEJVJhrgWcFRP vlXPJ+4aEAm2gwjivtbIdJxnwIEzIFmW6jztE+K+bngE8koUwb7BjblbFK0jH4pEUWPV PIXxjpndt4v6+LuqWjBJxC7FQY7KHh/Hcb5DCgJkxqg+QE8+PBwgNk2xJAd8WJPqjbQC zb+zpZCoGY05L1fmLaThkIYLqqF4mxalAhp9gfFXpotD02uk8cNetAd14lIFoHusMGuw ISOw== X-Gm-Message-State: AC+VfDwx1GorwqjFxTkOp2RggacNY9uyrR8Hn2Ik1JlPlz75pKc6xzOl yx75+r2kPwhbyk9PGKfye8KZ22dnGLtwfhJFfXcrjAWF/khxtbfRrw7xRfH1wR3aqrM1lhrTrhH DPrp+yeyL6TZ2gLXl7Zgib79NOEBUOYuYl+1puX4dkg== X-Received: by 2002:aa7:d88a:0:b0:50c:cde7:285b with SMTP id u10-20020aa7d88a000000b0050ccde7285bmr7205759edq.29.1686239024658; Thu, 08 Jun 2023 08:43:44 -0700 (PDT) X-Received: by 2002:aa7:d88a:0:b0:50c:cde7:285b with SMTP id u10-20020aa7d88a000000b0050ccde7285bmr7205750edq.29.1686239024530; Thu, 08 Jun 2023 08:43:44 -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.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Jun 2023 08:43:43 -0700 (PDT) From: Alexander Mikhalitsyn To: xiubli@redhat.com Cc: brauner@kernel.org, stgraber@ubuntu.com, linux-fsdevel@vger.kernel.org, Jeff Layton , Ilya Dryomov , ceph-devel@vger.kernel.org, Christian Brauner , Alexander Mikhalitsyn , linux-kernel@vger.kernel.org Subject: [PATCH v5 09/14] ceph/acl: allow idmapped set_acl inode op Date: Thu, 8 Jun 2023 17:42:50 +0200 Message-Id: <20230608154256.562906-10-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: 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 51ffef848429..d0ca5a0060d8 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