From patchwork Tue Feb 16 07:23:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juergen Borleis X-Patchwork-Id: 1440840 X-Patchwork-Delegate: richard@nod.at Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2001:8b0:10b:1231::1; helo=merlin.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=gWGN4JXy; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DfsvQ5gZMz9sVJ for ; Tue, 16 Feb 2021 18:25:38 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Gsky07rw/yWAZHWRWd71QnjOU4gXBqFiFyNwXPxRiNw=; b=gWGN4JXyzsC7dq0GLjRfjJjh/ zpY8zGfoPTB6Ho/pHpf0BnFG+VKq7SiVwUJyTe3UCW7QJJKi8Z6bXzMVRVy59z3ycARhNVzC4TsaM ijwEzmbVUQIeyBATOLAfQUVO5gLNDBRiLYz/EB+SbIM2D5weESjDip0QDjUQMjJvfjwYc4UxNOtT1 cFiHu47YRQYfINAiLNvz1jbGwapWgZsJvFHYYgV7hyuLEOszFolMHx6iw7Sy4K2JHi+B3Mxlu4gFx IHLiQU6cI8Wm4qT3n/JgnLiRoKUwBXOD9dSUJRotmGn46E3MgEDyhDP1l08reiDCd+Tj4o8nyXbWf u0NwAPTSA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1lBuiN-0000JP-8p; Tue, 16 Feb 2021 07:24:07 +0000 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1lBuiJ-0000I2-2K for linux-mtd@lists.infradead.org; Tue, 16 Feb 2021 07:24:03 +0000 Received: from dude02.hi.pengutronix.de ([2001:67c:670:100:1d::28]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lBuiG-0003lF-5E; Tue, 16 Feb 2021 08:24:00 +0100 Received: from jbe by dude02.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1lBuiF-0002Me-5u; Tue, 16 Feb 2021 08:23:59 +0100 From: Juergen Borleis To: Richard Weinberger Subject: [PATCH v2] fs: ubifs: set s_uuid in super block to support ima/evm uuid options Date: Tue, 16 Feb 2021 08:23:34 +0100 Message-Id: <20210216072334.7575-2-jbe@pengutronix.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210216072334.7575-1-jbe@pengutronix.de> References: <20210216072334.7575-1-jbe@pengutronix.de> MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::28 X-SA-Exim-Mail-From: jbe@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-mtd@lists.infradead.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210216_022403_147717_721682D2 X-CRM114-Status: GOOD ( 11.28 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, Oleksij Rempel , Andy Shevchenko , linux-mtd@lists.infradead.org, kernel@pengutronix.de, Steffen Trumtrar Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: Steffen Trumtrar This is required to provide uuid based integrity functionality for: ima_policy (fsuuid option) and the 'evmctl' command ('--uuid' option). Co-developed-by: Oleksij Rempel Co-developed-by: Juergen Borleis Signed-off-by: Steffen Trumtrar Reviewed-by: Andy Shevchenko --- fs/ubifs/super.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c index 138b9426c6c1..a8383ca39a47 100644 --- a/fs/ubifs/super.c +++ b/fs/ubifs/super.c @@ -2230,6 +2230,8 @@ static int ubifs_fill_super(struct super_block *sb, void *data, int silent) goto out_umount; } + import_uuid(&sb->s_uuid, c->uuid); + mutex_unlock(&c->umount_mutex); return 0;