From patchwork Mon Sep 26 14:08:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Brauner X-Patchwork-Id: 12988928 X-Patchwork-Delegate: paul@paul-moore.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 26EB7C07E9D for ; Mon, 26 Sep 2022 15:26:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236061AbiIZP0O (ORCPT ); Mon, 26 Sep 2022 11:26:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236763AbiIZPYM (ORCPT ); Mon, 26 Sep 2022 11:24:12 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A421F33E03; Mon, 26 Sep 2022 07:09:51 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id DC40EB80AC8; Mon, 26 Sep 2022 14:09:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B58F7C433D7; Mon, 26 Sep 2022 14:09:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1664201388; bh=b18oPKBJ3iFitrZzcDI3d11KJokB4RPI5hri3MTK7K4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KApNOAvE9cOnQBtsza3kHjy85B0EOpyJFKLNKj/1yomP6QGAaVZHGnK14CyfvrVRo BxqNu6Cq9KJTAny4pqEPkLTDxr4xpOyclCDuJBBrDduuo4TIMjSK+VH1YGSOq6mE1C nhY8hZj+O5z9u8Nd2bdt3/vJV/wnFEipCwCV8f+8Rws4aCu0ZXQBF9zDQX6cXoRH3h gVkv2jqTA8eiYIWv68lNzXSb7ZiXwVJ1HSyNeRFUL61trLRzHCKU6PAjhPIxMw6Qg9 ycYLG1tC2NBj0B6AUz45YVb2Mqmd1aN1rTRdmHTsVPSn9MLIgrpkPK6QOKLOA+FVTF ZuWErS6JqHBJg== From: Christian Brauner To: linux-fsdevel@vger.kernel.org Cc: Christian Brauner , Seth Forshee , Christoph Hellwig , Al Viro , Tyler Hicks , ecryptfs@vger.kernel.org, linux-security-module@vger.kernel.org Subject: [PATCH v2 26/30] ecryptfs: use stub posix acl handlers Date: Mon, 26 Sep 2022 16:08:23 +0200 Message-Id: <20220926140827.142806-27-brauner@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220926140827.142806-1-brauner@kernel.org> References: <20220926140827.142806-1-brauner@kernel.org> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=827; i=brauner@kernel.org; h=from:subject; bh=b18oPKBJ3iFitrZzcDI3d11KJokB4RPI5hri3MTK7K4=; b=owGbwMvMwCU28Zj0gdSKO4sYT6slMSQbbnL6Me8d14y2Fzc21caq2sbWzty6n7Xrn+b/B/Uzc/KO Tmx521HKwiDGxSArpsji0G4SLrecp2KzUaYGzBxWJpAhDFycAjCR7gRGhuNKk2fOZcjaEbe7b1rb55 mNbJum3qg4uMhkQ25bxXfhs8UM/0s11G79OKTYkd5iVxfVk8d/JnBVqu2Tc7NnR63x0TpuwQ4A X-Developer-Key: i=brauner@kernel.org; a=openpgp; fpr=4880B8C9BD0E5106FC070F4F7B3C391EFEA93624 Precedence: bulk List-ID: Now that ecryptfs supports the get and set acl inode operations and the vfs has been switched to the new posi api, ecryptfs can simply rely on the stub posix acl handlers. Signed-off-by: Christian Brauner (Microsoft) --- Notes: /* v2 */ unchanged fs/ecryptfs/inode.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fs/ecryptfs/inode.c b/fs/ecryptfs/inode.c index c3d1ae688a19..bd6ae2582cd6 100644 --- a/fs/ecryptfs/inode.c +++ b/fs/ecryptfs/inode.c @@ -1210,6 +1210,10 @@ static const struct xattr_handler ecryptfs_xattr_handler = { }; const struct xattr_handler *ecryptfs_xattr_handlers[] = { +#ifdef CONFIG_XFS_POSIX_ACL + &posix_acl_access_xattr_handler, + &posix_acl_default_xattr_handler, +#endif &ecryptfs_xattr_handler, NULL };