From: Juergen Borleis <jbe@pengutronix.de>
To: linux-kernel@vger.kernel.org
Cc: richard@nod.at, linux-mtd@lists.infradead.org,
kernel@pengutronix.de,
Steffen Trumtrar <s.trumtrar@pengutronix.de>,
Oleksij Rempel <o.rempel@pengutronix.de>
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 [thread overview]
Message-ID: <20210202124838.30805-1-jbe@pengutronix.de> (raw)
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).
Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Acked-by: Juergen Borleis <jbe@pengutronix.de>
---
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
next reply other threads:[~2021-02-02 12:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-02 12:48 Juergen Borleis [this message]
2021-02-12 20:59 ` Richard Weinberger
2021-02-15 8:37 ` Jürgen Borleis
[not found] ` <CAHp75VfwD25Vfb_81eoZDG=GktSdiROtg7=2tPMDMV8k2iqdag@mail.gmail.com>
2021-02-12 21:34 ` Richard Weinberger
[not found] ` <CAHp75VdJZUd6YoJ26jw0oAEQ0-k6AVXBqzVhs3oFy5+mZXiSjw@mail.gmail.com>
2021-02-13 22:01 ` Richard Weinberger
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=20210202124838.30805-1-jbe@pengutronix.de \
--to=jbe@pengutronix.de \
--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®