Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp622423pxb; Tue, 2 Feb 2021 13:30:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJwEv4mwspyxwHJcJ00oUCxJzI1xYhI4Q3ZTbCcm9OtxUK0gU5cDlb90D0rkU415H7mzdfhf X-Received: by 2002:a17:906:a149:: with SMTP id bu9mr24730726ejb.185.1612301409501; Tue, 02 Feb 2021 13:30:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612301409; cv=none; d=google.com; s=arc-20160816; b=WmtxixW4Cush7X9ebKd40t3D0d8QA7W0Zu+OPoa3hQJzXGRJMwkp94+p9zhaUdDjpo MdnxKlUpO7RD8pwRssG9oATZK5kTKU7cEfyOkgNUmyl3EFSTf92lDX4kWNeAUoJnsFc9 GSSbEAW0xuGUDxqesHKrhuNgM80+pwgSy9pCIVzISGasLGF2YXPDPnTI6UWyQqjUkJRg nxwbrkMyqvFWUwx7sS28yWugV/KSuCWhKRRahxZCF9HqvwODqx2054jWfoo+g+qNpp1v Mipj9hyMm6OzP9nC7Wzf4bZVZaJCq57+V/TneTmD2hURW4CsSTR5cMCbPmCDHt0o86Xe NLiQ== 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 :message-id:date:subject:cc:to:from; bh=DaAd/SLrJRAhll3Ficydi4PUI6eZju6dJUWW9AaL8fM=; b=CMAvqXgHUHDVmyA/bRwhcRRYbf+cQX++31T5jHYyek0JL8fC0da0GGxMbDj9efFEQv r1uM6DDMpMjGjZTQnDoH+DeUNsYufdEg8C60/EkjctnySWNWOvgI1cvt0YaW5DY5bKKV EX1EXehLjQ3ciyTE141Eic2663TEK9EEUBkq293mQZhZbykBUCbIWLDFKuN9FZ/3oEq7 s+HcJrITRiHlz3i+vPhdmMQbrHiAOiOiWgoAjVw7J+xNoZ64krskA28k/dalWVlg9Jy6 wE7VO0WqHar+yPAUaR+hHZN8fqyuXW3Ckce5+GxZ4udcr2so/zIGD52PYcomV9nTmHUp kDXg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e21si12632131edy.284.2021.02.02.13.29.44; Tue, 02 Feb 2021 13:30:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231872AbhBBMt1 (ORCPT + 99 others); Tue, 2 Feb 2021 07:49:27 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:39557 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231716AbhBBMtW (ORCPT ); Tue, 2 Feb 2021 07:49:22 -0500 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 1l6v6m-0000gP-8U; Tue, 02 Feb 2021 13:48:40 +0100 Received: from jbe by dude02.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1l6v6k-00081d-NI; Tue, 02 Feb 2021 13:48:38 +0100 From: Juergen Borleis To: linux-kernel@vger.kernel.org Cc: richard@nod.at, linux-mtd@lists.infradead.org, kernel@pengutronix.de, Steffen Trumtrar , Oleksij Rempel Subject: [PATCH] fs: ubifs: set s_uuid in super block to support ima/evm uuid options Date: Tue, 2 Feb 2021 13:48:38 +0100 Message-Id: <20210202124838.30805-1-jbe@pengutronix.de> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Steffen Trumtrar This is required to provide uuid based integrity functionality for: ima_policy (fsuuid option) and the 'evmctl' command ('--uuid' option). Signed-off-by: Steffen Trumtrar Signed-off-by: Oleksij Rempel Acked-by: Juergen Borleis --- fs/ubifs/super.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c index cb3acfb7dd1f..b990baed4de0 100644 --- a/fs/ubifs/super.c +++ b/fs/ubifs/super.c @@ -2231,6 +2231,7 @@ static int ubifs_fill_super(struct super_block *sb, void *data, int silent) err = -ENOMEM; goto out_umount; } + memcpy(&sb->s_uuid, &c->uuid, sizeof(c->uuid)); mutex_unlock(&c->umount_mutex); return 0; -- 2.20.1