summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorSteffen Trumtrar <s.trumtrar@pengutronix.de>2021-02-16 08:23:34 +0100
committerRichard Weinberger <richard@nod.at>2021-04-15 22:00:32 +0200
commitaf61e7bf927855e9647393f6c5ac4e411ac2041e (patch)
treecf23e40e47255e9a0b640def9aea8ebe9bc16106 /fs
parentba4884a6dbf002401081a8eb0ba85e5dc87025e1 (diff)
ubifs: Set s_uuid in super block to support ima/evm uuid options
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> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'fs')
-rw-r--r--fs/ubifs/super.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c
index ddb2ca636c93..73f0ac209fb8 100644
--- a/fs/ubifs/super.c
+++ b/fs/ubifs/super.c
@@ -2232,6 +2232,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;