From: Juergen Borleis <jbe@pengutronix.de>
To: Richard Weinberger <richard@nod.at>
Cc: Andy Shevchenko <andy.shevchenko@gmail.com>,
linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org,
kernel@pengutronix.de,
Steffen Trumtrar <s.trumtrar@pengutronix.de>,
Oleksij Rempel <o.rempel@pengutronix.de>
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 [thread overview]
Message-ID: <20210216072334.7575-2-jbe@pengutronix.de> (raw)
In-Reply-To: <20210216072334.7575-1-jbe@pengutronix.de>
From: Steffen Trumtrar <s.trumtrar@pengutronix.de>
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 <o.rempel@pengutronix.de>
Co-developed-by: Juergen Borleis <jbe@pengutronix.de>
Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
---
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;
--
2.20.1
next prev parent reply other threads:[~2021-02-16 7:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-16 7:23 Juergen Borleis
2021-02-16 7:23 ` Juergen Borleis [this message]
2021-02-16 9:09 ` [PATCH v2] " Andy Shevchenko
2021-02-16 9:11 ` Andy Shevchenko
2021-02-16 9:54 ` Stephen Rothwell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210216072334.7575-2-jbe@pengutronix.de \
--to=jbe@pengutronix.de \
--cc=andy.shevchenko@gmail.com \
--cc=kernel@pengutronix.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=o.rempel@pengutronix.de \
--cc=richard@nod.at \
--cc=s.trumtrar@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®